Problem
I have successfully installed SCO OpenServer Enterprise System Release 5.0.5 on my computer system and created the emergency set of boot and root floppy disks. The problem occurs when I am prompted to insert the root floppy after booting from the boot floppy. I get the error message:
Panic: exit cannot execute /etc/init pid1 status 0x00000200I selected "generic" when creating my emergency floppy set because I have several systems and I don't want to create an emergency set for each system.
Cause
Status 0x00000200, in this context, can be interpreted as system error number 2 (errno=2), which means "No such file or directory." The cause is that /etc/init is missing from the rootfs. During the creation of the root part of the generic set, there are several files that are not copied due to an error in the /usr/lib/mkdev/fd script. Warnings similar to this are displayed on the console:
Copying files to RAM Disk ...cpio: WARNING: Cannot obtain information about file
: "etc/fscmd.d/HTFS/mkfs".
cpio: WARNING: Cannot obtain information about file: "etc/fscmd.d/HTFS/fsck".
cpio: WARNING: Cannot obtain information about file: "etc/fscmd.d/HTFS/mount".
cpio: WARNING: Cannot obtain information about file: "etc/fscmd.d/HTFS/fsstat".
cpio: WARNING: Cannot obtain information about file: "usr/lib/libc.so.1".
cpio: WARNING: Cannot obtain information about file: "usr/lib/libsocket.so.1".
cpio: WARNING: Cannot obtain information about file: "usr/lib/librpcsvc.so".
cpio: WARNING: Cannot obtain information about file: "lib/libprot.so.1".
cpio: WARNING: Cannot obtain information about file: "etc/TIMEZONE".
cpio: WARNING: Cannot obtain information about file: "etc/badtrk".
cpio: WARNING: Cannot obtain information about file: "etc/cmos".
cpio: WARNING: Cannot obtain information about file: "etc/divvy".
cpio: WARNING: Cannot obtain information about file: "etc/dkinit".
cpio: WARNING: Cannot obtain information about file: "etc/emulator".
cpio: WARNING: Cannot obtain information about file: "etc/fsck".
cpio: WARNING: Cannot obtain information about file: "etc/fdisk".
cpio: WARNING: Cannot obtain information about file: "etc/group".
cpio: WARNING: Cannot obtain information about file: "etc/hdboot0".
cpio: WARNING: Cannot obtain information about file: "etc/hdboot1".
cpio: WARNING: Cannot obtain information about file: "etc/ioctl.syscon".
cpio: WARNING: Cannot obtain information about file: "etc/init".
cpio: WARNING: Cannot obtain information about file: "etc/masterboot".
cpio: WARNING: Cannot obtain information about file: "etc/mkdev".
cpio: WARNING: Cannot obtain information about file: "etc/mkfs".
cpio: WARNING: Cannot obtain information about file: "etc/mknod".
cpio: WARNING: Cannot obtain information about file: "etc/mount".
cpio: WARNING: Cannot obtain information about file: "etc/passwd".
cpio: WARNING: Cannot obtain information about file: "etc/umount".
cpio: WARNING: Cannot obtain information about file: "etc/umountall".
cpio: WARNING: Cannot obtain information about file: "etc/default/boot".
cpio: WARNING: Cannot obtain information about file: "bin/cpio".
cpio: WARNING: Cannot obtain information about file: "bin/cp".
cpio: WARNING: Cannot obtain information about file: "bin/dd".
cpio: WARNING: Cannot obtain information about file: "bin/dparam".
cpio: WARNING: Cannot obtain information about file: "bin/echo".
cpio: WARNING: Cannot obtain information about file: "bin/expr".
cpio: WARNING: Cannot obtain information about file: "bin/false".
cpio: WARNING: Cannot obtain information about file: "bin/mv".
cpio: WARNING: Cannot obtain information about file: "bin/ln".
cpio: WARNING: Cannot obtain information about file: "bin/ls".
cpio: WARNING: Cannot obtain information about file: "bin/rm".
cpio: WARNING: Cannot obtain information about file: "bin/sed".
cpio: WARNING: Cannot obtain information about file: "bin/sh".
cpio: WARNING: Cannot obtain information about file: "bin/sync".
cpio: WARNING: Cannot obtain information about file: "bin/telinit".
cpio: WARNING: Cannot obtain information about file: "lib/std_funcs".
cpio: WARNING: Cannot obtain information about file: "usr/bin/awk".
cpio: WARNING: Cannot obtain information about file: "bin/cat".
cpio: WARNING: Cannot obtain information about file: "bin/grep".
cpio: WARNING: Cannot obtain information about file: "bin/sort".
cpio: WARNING: Cannot obtain information about file: "bin/tail".
cpio: WARNING: Cannot obtain information about file: "bin/head".
cpio: WARNING: Cannot obtain information about file: "bin/mkdir".
cpio: WARNING: Cannot obtain information about file: "bin/uname".
cpio: WARNING: Cannot obtain information about file: "usr/lib/mkdev/.hdfuncs".
cpio: WARNING: Cannot obtain information about file: "usr/lib/mkdev/.scsi".
cpio: WARNING: Cannot obtain information about file:
"usr/lib/mkdev/.nodefuncs".
cpio: WARNING: Cannot obtain information about file: "etc/conf/bin/path_map.sh"
.
cpio: WARNING: Cannot obtain information about file: "usr/bin/getopt".
cpio: WARNING: Cannot obtain information about file: "usr/lib/mkdev/hd".
cpio: WARNING: Cannot obtain information about file: "usr/lib/mkdev/ida".
cpio: WARNING: Cannot obtain information about file: "etc/perms/extmd". Solution
This problem is resolved in SCO OpenServer Release 5.0.6.
For earlier releases, use one of these two workarounds:
The first workaround is to create the root floppy of the generic set prior to creating the boot floppy.
The second workaround is to modify the /usr/lib/mkdev/fd script. Find the portion of the file shown below. Then, using your favorite text editor, change it from this:
esac
echo "$FS_UTILS" | cpio -pLdum /mnt 2>&1 |grep -v blocks# Copy the core utils over
if [ -c /dev/mcdaemon ]
then
echo "$core_utils_mc" | cpio -pLdum /mnt 2>&1 |grep -v blocks
fito this:esac
cd /
echo "$FS_UTILS" | cpio -pLdum /mnt 2>&1 |grep -v blocks# Copy the core utils over
if [ -c /dev/mcdaemon ]
then
echo "$core_utils_mc" | cpio -pLdum /mnt 2>&1 |grep -v blocks
fiA "cd /" was added at line 939 of the /usr.lib.mkdev/fd script in this example. To easily get to this line with the vi editor, open the file by entering the following command at the prompt:
# vi /usr/lib/mkdev/fdOnce the file is open use the "shift :" key sequence to search for line 939. Then open a line between line 938 and line 939 and insert the "cd /" command. Save the file.
See also
The manual page for mkdev(ADM)