While that may work, /usr/bin/sed is typically installed from an AIX installp package, i.e. not as part of the Linux toolbox. I wonder what else is missing from the installation on this LPAR.
Sr. Software Engineer
Original Message:
Sent: Thu December 07, 2023 09:00 AM
From: wang chen
Subject: mkcd is failed to convert the mksysb image to cd
Thank you all of your input.
the image is not include the sed binary which is in the /opt/freware
I put the sed binary into /usr/bin/sed and remake the image.
again, Thank you'all
------------------------------
wang chen
Original Message:
Sent: Thu December 07, 2023 06:08 AM
From: Nigel Griffiths
Subject: mkcd is failed to convert the mksysb image to cd
The first problem in the /usr/bin/sed: not found.
Have you mucked up the shell environment?
Try running this as the root user.
On my AIX
demo42:nag:/home/nag $ whence sed
/usr/bin/sed
demo42:nag:/home/nag $ echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/nag/bin:/usr/bin/X11:/sbin:.:/opt/freeware/bin
Hope this helps,
------------------------------
Nigel Griffiths
Original Message:
Sent: Wed December 06, 2023 11:50 PM
From: wang chen
Subject: mkcd is failed to convert the mksysb image to cd
Hi ,
I am trying to mkcd for a mksysb backup image, get below error
mkcd -m /home/<mksysb backup image> -S -L -I /backup
itializing mkcd log: /var/adm/ras/mkcd.log...
Verifying command parameters...
Creating temporary file system: /mkcd/cd_fs...
Populating the CD or DVD file system...
Building chrp boot image...
/usr/sbin/bosboot[62]: /usr/bin/sed: not found
/usr/sbin/bosboot[17]: /usr/bin/sed: not found
/usr/sbin/bosboot[51]: /usr/bin/sed: not found
Filesystem Helper: Implementation-specific error, code = (112)
0301-155 bosboot: mkfs failed for /tmp/bosboot_13828604_30617/Bootram.fs.
mv: 0653-401 Cannot rename /mkcd/cd_fs/14418428/cd.bi to /mkcd/cd_fs/14418428/ppc/chrp/bootfile.exe:
A file or directory in the path name does not exist.
0512-300 mkcd: Error in routine: build_boot_images.
I've been use it in several servers, just got issue on this AIX 7.2 server.
Cleaning up...
Removing temporary file system: /mkcd/cd_fs...
I appreciate your help.
------------------------------
wang chen
------------------------------