# # InitRD-RootFS.HOWTO.txt # ----------------------- # # - how to make an initrd # - how to make a loop-based rootfs # # - put the initrd.gz and rootfs.gz onto compact flash or USB # # # Original Files # -------------- # http://Linux-Boot.net/Bootable/Scripts/InitRD-RootFS.HOWTO.txt # http://linux-boot.net/InitRD # http://linux-boot.net/RootFS # # - aliases ( same script, with different names ) # InitRD-Howto.sh.txt # RootFS-Howto.sh.txt # # # Demo Files # ========== # # # # - you will need to know how to edit the initrd.gz and rootfs.gz files # # ( you will need to use your own kernel for your hardware ) # # # http://linux-boot.net/Bootable/InitRD initrd.gz # http://linux-boot.net/Bootable/RootFS rootfs.gz # http://linux-boot.net/Bootable/Patches.X11 x11.tgz + KDE.tgz # # # ==================== # Minimum Requirements # ==================== # Development System: # - requires ramdisk, ext3, jfs # # # # # - you will need to know how to edit the initrd.gz and rootfs.gz files # # ( you will need to use your own kernel for your hardware ) # # # # # Target Media ( CompactFlash(/dev/hda) or USB-memory-stick(/dev/sda) ) # # # # # # /////////////////////////////////////////////////////////////////// # # we each of the partitions to be approximately the same BLOCK sizes # # /////////////////////////////////////////////////////////////////// # # # # cylinder/head/sector will be different from different manufacturers # # # # # # 64MB CompactFlash ( no X11 ) ( fdisk -l /dev/hda ) # ================== # Disk /dev/hda: 64 MB, 64225280 bytes # 8 heads, 32 sectors/track, 490 cylinders # Units = cylinders of 256 * 512 = 131072 bytes # # Device Boot Start End Blocks Id System # --> /dev/hda1 1 184 23536 83 Linux # 24MB for /boot # --> /dev/hda2 185 490 39168 83 Linux # 40MB scratch area for creating /dev/loop # /dev/hda3 491 4999 39168 83 Linux # optional rest of the disk for user customizations # # # 1GB USB Memory stick w/ KDE ( fdisk -l /dev/sda ) # ==================== # Disk /dev/sda: 1024 MB, 1024966656 bytes # 32 heads, 63 sectors/track, 993 cylinders # Units = cylinders of 2016 * 512 = 1032192 bytes # # /dev/sda1 * 1 32 32224+ 83 Linux # /dev/sda2 33 95 63504 83 Linux # /dev/sda3 96 127 32256 83 Linux # /dev/sda4 128 993 872928 5 Extended # /dev/sda5 128 516 392080+ 83 Linux 57MB = X11 --> 140MB of memory # /dev/sda6 517 548 32224+ 82 Linux swap # /dev/sda7 549 993 448528+ 83 Linux 125MB = KDE --> 425MB of memory # # # Additional Features in the future # ================================== # - Add httpd # - Add wifi # # # 20-Nov-00 amo Date-of-Birth # 17-Mar-05 amo Created Howto, Added bootUSB in addition to bootCF # 25-Mar-05 amo Cleanup docs, Renamed to InitRD-HOWTO.txt # 21-Aug-05 amo Cleanup docs, added partition scheme # 26-Aug-05 amo Cleanup docs for X11/KDE # # # # Start with a Clean Build environment # ------------------------------------ # InitRD-RootFS.sh.txt -clean # # # # # Create a InitRD ( enough to install the RootFS ) # --------------- # - if you need to do additional tasks, add it to InitRD.txt # # # create a compact flash ( /dev/hda ) InitRD-RootFS.sh.txt -dev hda -initcf # # # create a usb memory stick ( /dev/sda ) # InitRD-RootFS.sh.txt -dev sda -initusb # # # # Create a RootFS # --------------- # - if you want some additional apps, add it to RootFS.txt # InitRD-RootFS.sh.txt -rootfs # # # ======================================================================= # # # # Now Copy the initrd and rootfs to make the standalone bootable media # # # ======================================================================= # # # Create a standalone bootable CDROM # ----------------------------------------- # Make.RD.Loop.sh -bootcd # # # # Create a standalone bootable CompactFlash with grub # ----------------------------------------- # InitRD-RootFS.sh.txt -dev hda -initusb -rootfs -bootcf -Grub # # # # Create a standalone bootable USB stick with grub # ----------------------------------------- # InitRD-RootFS.sh.txt -dev sda -initusb -rootfs -bootusb -Grub # # # Create a standalone bootable floppy # ----------------------------------------- # Make.RD.Loop.sh -bootfd # # # ////////////////////////// # # # Create a standalone bootable USB stick with X11 # ----------------------------------------------- # InitRD-RootFS.sh.txt -dev sda -initusb -rootfs -bootusb -Grub -X11 # # # Create a standalone bootable USB stick with X11 + KDE # ----------------------------------------------------- # InitRD-RootFS.sh.txt -dev sda -initusb -rootfs -bootusb -Grub -X11 -KDE # # # # Use Lilo or Grub to make the FD/CF/CD/USB bootable # -------------------------------------------------- # # # End of file