| Code Sample |
| default 0 timeout 5 color cyan/blue white/blue |
| Code Sample |
| LABEL example KERNEL linux24 APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt24.gz quiet BOOT_IMAGE=knoppix |
| Code Sample |
| title example kernel /boot/linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 quiet BOOT_IMAGE=knoppix initrd /boot/minirt.gz |
| Code Sample |
| default 0 timeout 5 color cyan/blue white/blue title dsl kernel /boot/linux ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet BOOT_IMAGE=knoppix initrd /boot/minirt.gz |
| Code Sample |
| # mount /dev/sda1 /mnt |
| Code Sample |
| # cp /boot/grub/stage1 /mnt/boot/grub # cp /boot/grub/fat_stage1_5 /mnt/boot/grub # cp /boot/grub/stage2 /mnt/boot/grub |
| Code Sample |
| # touch /mnt/boot/grub/mark |
| Code Sample |
| # grub |
| Code Sample |
| grub> find /boot/grub/mark (hd1,0) grub> root (hd1,0) Filesystem type is fat, partition type 0xe grub> setup (hd1) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/fat_stage1_5" exists... yes Running "embed /boot/grub/fat_stage1_5 (hd1)"... 15 sectors are embedded. succeeded Runnung "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub> quit |
| Code Sample |
| # rm /mnt/boot/grub/mark # umount /mnt |
| Code Sample |
| title bartpe chainloader +1 |