Problem
When booting a system off emergency boot/root floppy disk drives, it is often necessary to clean and mount the hard drive to repair files in the root filesystem. However, using the vi editor from emergency disks is often difficult or impossible.
Solution
It is possible to create an emergency root filesystem that includes the vi editor. To do this, take these steps:
1. Proceed to create the root filesystem, selecting the choices appropriate to your system.
2. After creating the basic image in ramdisk, the system responds with the following, giving you the opportunity to add files to the floppy disk:
Do you want to place extra files on the root filesystem? (y/n) y
You can copy files into /mnt to customize your root filesystem floppy disk.
After you finish, type "exit 0" to continue.
You have <####> free blocks (512 bytes each) available on the disk.
Do _not_ type "exit 0" as prompted as this will terminate creating
the emergency disk. After creating the directories and copying
the files indicated below, only type "exit" to leave the shell and
continue creating the root filesystem disk.<bootroot> cp /usr/bin/vi /mnt/usr/bin<bootroot> mkdir -p /mnt/usr/lib/terminfo/a<bootroot> cd /usr/lib/terminfo/a<bootroot> cp ansi /mnt/usr/lib/terminfo/a3. Continue with root filesystem creation:<bootroot> exit