Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->Linux技术 ->Linux安全 ->正文

利用BusyBox定制Linux Live CD

来源:Linux时代 作者:Mike Chirico  时间:2007-04-22 点击: [收藏] [投稿]
for the match on that, which tells me I need "22 block 0" for the mknod command. To get this mounted, all the commands are listed here below.

    # mkdir /cdrom
    # mknod -m 600 /dev/hdc b 22 0
    # mount -t iso9660 -r /dev/hdc /cdrom

(f.2) What are all the steps needed for Unionfs?

You should download and burn http://prdownloads.sourceforge.net/souptonuts/cdrom_linux_boot_unionfs.iso

After you boot from the cd, issue the following command to load the unionfs kernel module.

   # insmod /unionfs/unionfs.ko

Now assuming you have an "ext3" filesystem on "/dev/hda2", mount it

   # mkdir /h
   # mount -t ext3 /dev/hda2 /h

Assuming the above filesystem has "/h/etc", "/h/bin", "/h/lib" and "/h/usr" these directories can be union mounted on top of "/etc","/bin", "/lib" and "/usr" as follows:

   # mount -t unionfs -o dirs=/etc:/h/etc=ro none /etc
   # mount -t unionfs -o dirs=/bin:/h/bin=ro none /bin
   # mount -t unionfs -o dirs=/lib:/h/lib=ro none /lib
   # mount -t unionfs -o dirs=/usr:/h/usr=ro none /usr
 

So what does this do? Well, now you can use gcc, emacs and a lot of the applications on the hard drive.

(f.3) How do I create the compressed initrd.bin file?

This is done in the script createiso.


ERRATA AND DOCUMENT UPDATES:

To receive email when when substantial updates occur, or corrections are found, click here.

REFERENCES:

Websites For Downloading Software

BusyBox (No need to install tinylogin, everything is included here)
http://www.busybox.net

Isolinux ( software can be found on www.kernel.org )
http://www.kernel.org/pub/linux/utils/boot/syslinux

Linux Kernel
http://www.kernel.org

OpenSSH
http://www.openssh.com

SoupToNuts
http://sourceforge.net/project/showfiles.php?group_id=79320&package_id=145435

Linux from Scratch
http://www.linuxfromscratch.org

Recommended Reading

Virtual Filesystem: Building A Linux Filesystem From An Ordinary File
http://freshmeat.net/articles/view/1387
or
http://prdownloads.sourceforge.net/souptonuts/README_Virtual_FS.html

"Building Embedded Linux Systems", by Karim Yaghmour O'Reilly, 2003
ISBN 0-596-00222-X, pages 416.

BusyBox FAQ
http://www.busybox.net/FAQ.html

100+ Linux Tips
http://souptonuts.sourceforge.net/how_to_linux_and_open_source.htm

Kernel Korner - Unionfs: Bringing Filesystems Together
http://www.linuxjournal.com/article/7714

Related Websites

      http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD-ROM.html
      http://aurach.ewu.edu/ield/ield_course/lectures/ield_ch3.html
      http://lfs.osuosl.org/lfs/view/stable/chapter01/chapter01.html#ch-scatter-how
      http://www.linuxfromscratch.org/
      http://www.dobit.com/emblin/embhowto.htm
      http://tldp.org/LDP/intro-linux/html/sect_04_02.html
      http://www.linux4.be/~jroark/howto/ramdisk.html
      http://linuxdevices.com/articles/AT9416075241.html
      http://www.linux.org/docs/ldp/howto/Bootdisk-HOWTO/troubleshooting.html
      http://gnubox.dyndns.org:8080/~sunil/knoppix.php
      http://www.linuxjournal.com/article/7383
      http://www.uclibc.org/
      http://www-106.ibm.com/developerworks/web/library/wa-cranky37.html

原文链接:http://souptonuts.sourceforge.net/cdrom.htm



 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:基于FreeBSD5.4全能服务器安装v1.01   下一篇:使用 Perl 自动化 UNIX 系统管理

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号