# # Make a bootable compact flash # # /boot/grub/grub.boot-cf.txt ( was GRUB-Install-Boot.CF.sh.txt ) # # # # Original File: # ------------- # http://linux-boot.net/Loaders/Examples/GRUB-Install-Boot.sh # http://Linux-Boot.net/Loaders/Grub/Examples/grub.boot.cf.sh.txt # # # 27-Sep-04 amo Date-of-Birth # 20-Aug-05 amo Modified for CompactFlash # 14-Sep-05 amo Changed from GRUB-Install-Boot.CF.sh.txt to grub.boot-cf.txt # # # # hda ( hd0 ) == compact flash # # # # ---------------------- # # mount the compactflash # # ---------------------- # mount /dev/hda1 /mnt/hd # # # # # Copy some grub files # # # cp -p /boot/grub/device.map /mnt/hd/boot/grub/ # cp -p /boot/grub/menu.lst /mnt/hd/boot/grub/ # cp -p /boot/grub/stage1 /mnt/hd/boot/grub/ # cp -p /boot/grub/stage2 /mnt/hd/boot/grub/ # cp -p /boot/grub/jfs_stage1_5 /mnt/hd/boot/grub/ # cp -p /boot/grub/e2fs_stage1_5 /mnt/hd/boot/grub/ # # grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 grub> kernel /boot/vmlinuz-2.4.31ow.i586 root=/dev/hda1 [Linux-bzImage, setup=0x1400, size=0x14893e] grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub> quit # # End of file