利用BusyBox定制Linux Live CD# # Makefile for the Linux 2.4 unionfs # # this should point to where your kernel headers are #LINUXSRC = /lib/modules/`uname -r`/build # Chirico change below - put in your location LINUXSRC = /home/chirico/kernel/BUILD/linux-2.6.11 After this change, run "make", which will produce "unionfs.ko". # make I copied "unionfs.ko" to the "_install/unionfs" directory. When you boot-up your cd, you can load this module manually. # insmod /unionfs/unionfs.ko After loading successfully, you see it in "/proc/modules" # cat /proc/modules Now, create the 3 directories. # mkdir -p /Fruits /Vegetables /mnt/healthy And mount # mount -t unionfs -o dirs=/Fruits:/Begetables \
none /mnt/healthy
By the way, you can combine more than two directories. For example you could have done the following command.
# mount -t unionfs -o dirs=/Fruits:/Vegetables:/etc \
none /mnt/healthy
To see the full power of Unionfs, you should create files in each of the individual directories. The real power of Unionfs comes with NFS. See the proj_unionfs.tar.gz or cdrom_linux_boot_unionfs.iso. There is a special "/sbin/nfsmount", copied from Fedora Core 3 "/bin/mount", that will work with version 4 of NFS. Do NOT copy over the BusyBox mount command. $ /sbin/nfsmount -t nfs 192.168.1.182:/home /home2 See (TIP 104) on the How_to_Linux_and_Open_Source.txt tips in the reference on setting up the server to test the configuration.
This is the boot loader. This is the first program run from the CD. Note the following directory layout in "proj1/staging_iso_image/" $ cd proj1/staging_iso_image
$ tree .
.
`-- boot
`-- isolinux
|-- boot.cat
|-- isolinux.bin
|-- isolinux.cfg
|-- linux26
`-- menu.txt
There are two directories here "boot" and "isolinux", with all of the files under "isolinux". A description of each file is shown below: boot.cat - The El Torito specification requires a "boot catalog" to be created. STEP 10: mkisofs - command to make CD image The following command is run from the "proj1" directory. It is helpful to look at the "createiso" file for the complete process, which includes the command for building images/initrd.bin in the compressed format. $ mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -o \
iso/cdrom_linux_boot_proj1.iso staging_iso_image/boot
http://sourceforge.net/project/filemodule_monitor.php?filemodule_id=145435
(f.1) Can you store additional data on the cdrom and read it after boot-up? How? You must have the correct "major" and "minor" numbers for your cdrom device. For example, I have a "Second IDE hard disk/CD-ROM interface." See http://souptonuts.sourceforge.net/devices.txt 更多相关文章
|
推荐文章
精彩文章
|