# # /boot/grub/Grub-Install.sh.txt # # Original File: # ------------- # http://Linux-Boot.net/Loaders/Grub/Examples/Grub-Install.sh.txt # # # 20-Aug-05 amo Date-of-Birth # # # # hda ( hd0 ) == compact flash # # # # mount the compactflash # mount /dev/hda1 /mnt/hd # # mkdir -p /mnt/hd/boot/grub # # 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/ # # # # # Copy the filesystem you're using # # # cp -p /boot/grub/jfs_stage1_5 /mnt/hd/boot/grub/ # cp -p /boot/grub/e2fs_stage1_5 /mnt/hd/boot/grub/ # cp -dpar /opt/Bootable/Patches.RootFS/Patches-2005/boot/grub /mnt/hd/boot # # grub --batch < 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