
# fsck /dev/hd4
# mount /dev/hd4 /mnt
# cp /mnt/mysed /usr/sbin/sed
# cp /mnt/mychmod /usr/sbin/chmod
3. Change the getrootfs script:
# cd /usr/sbin
# cat getrootfs | sed ″s/importvg -y rootvg/importvg -fy rootvg/″ >myfs
# chmod 777 myfs
# umount /mnt
4. Run new myfs script:
# myfs hdisk0 (whole bunch of messages)
# mount
node mounted mounted over vfs date options
---- ------- ------------ --- ---- -------
/dev/ram0 / jfs Oct 14 rw
/dev/hd4 / jfs Oct 14 rw...
/dev/hd2 /usr jfs Oct 14 rw...
/dev/hd3 /tmp jfs Oct 14 rw...
•
Make changes to allow normal boot:
1. In /etc/filesystems comment out the lines in the /var stanza
type=bootfs
and mount ...