Using the DiskOnChip with Linux OS
Press <ESC>, ‘:’, ‘w’, ‘q’ to save the file. It is possible to add more devices here (for more information, refer to the man pages).
6.For RedHat and Caldera it is also necessary to copy the configuration file for the pam library (responsible for making authentic users):
#
/diskonchip/etc/pam.d/other
Note: Appendix I explains how to create your own root file system manually. Although this is more complicated than using the above mentioned sample script, it is highly recommended.
All modules should be placed in /lib/modules/. It is necessary to include at least the programs insmod, rmmod and lsmod. If it is required to load the modules automatically, then also include modprobe, depmod and swapout. When using kerneld, include it along with /etc/conf.modules.
Some system programs, such as login, complain when the file /var/run/utmp and the directory /var/log do not exist. To solve this, type the following commands:
#mkdir
#touch /diskonchip/var/run/utmp
After all the needed libraries and programs are set up, run ldconfig to remake /etc/ld.so.cache on the root file system. The cache tells the loader where to find the libraries. To remake ld.so.cache, type the following command:
#cd /diskonchip
#chroot /diskonchip /sbin/ldconfig
The command chroot is necessary, because ldconfig always remakes the cache for the root file system.
5.1.4 Copying the Kernel, Updating the Boot Sector and Rebooting
To copy the kernel and to update the boot loader files.
1.Type the following commands:
#mkdir /diskonchip/boot
#cp /usr/src/linux/arch/i386/boot/zImage /diskonchip/boot/doc2000
#rdev /diskonchip/boot/doc2000 /dev/fla1
#
15 |