Securing-Optimizing-RH-Linux-1_2_91
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
91
Formatting ... done
Verifying ... done
2. Copy the file vmlinuz from the /boot directory to the floppy disk:
[root@deep /]# cp /boot/vmlinuz /dev/fd0
cp: overwrite `/dev/fd0'? y
The vmlinuz file is a symbolic link that point to the real Linux kernel.
3. Determine the kernels root device with the following command:
[root@deep /]# rdev
/dev/sda12 /
The kernels root device is the disk partition where the root file system is located. In this
example, the root device is dev/sda12; the device name may be different on your
system.
4. Set the kernels root device with the following command:
[root@deep /]# rdev /dev/fd0 /dev/sda12
To set the kernels root device, use the device reported by the rdev command utility in
the previous step.
5. Mark the root device as read-only with the following command:
[root@deep /]# rdev -R /dev/fd0 1
This causes Linux initially to mount the root file system as read-only. By setting the root
device as read-only, you avoid several warning and error messages.
6. Now put the boot floppy in the drive A: and reboot your system with the following
command:
[root@deep /]# reboot
Update your /dev entries
If you have added a new devices to your system or have done recently a major kernel upgrade (a
major kernel upgrade is for example when you pass from kernel version 2.2.9 to 2.2.15 directly), it
may be important to update your /dev entries to avoid problems related to missing devices. We
can accomplish this task with the MAKEDEV script utility that scan the /dev directory where all
devices that interfaces with drivers in the kernel are keep. A special option named update allow
the MAKEDEV utility to create new devices that you are configured in your kernel and delete
those which are no longer configured.
·
To update your /dev entries, execute the following commands:
[root@deep /]# cd /dev
[root@deep /dev]# ./MAKEDEV update