Technical article 105909

How do I create an emergency root disk with the vi editor installed on SCO OpenServer 5?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

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/a
3. Continue with root filesystem creation:
<bootroot> exit

From the Xinuos technical article database, record 105909. Reproduced with permission. The original is at www.sco.com/ta/105909, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.