Boot (GRUB and tips)

Remove grub and install windows on Master Boot Record
#Download mbrfix
mbrfix /drive 0 fixmbr

 

Manually start Windows from Grub

#hd0 -> the disk
#1 -> the windows partition (0 may be a recovery partition on Sony)

>rootnoverify (hd0, 1)
>makeactive
>chainloader +1
>boot

 

Example file

[/boot/grub/grub.conf]
default=0
timeout=10
Red Hat Enterprise Linux AS (2.4.21-4.EL)
    root (hd0,1)
    kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/ hda=ide-scsi
    intrd /boot/initrd-2.4.21-4.EL.img 
Red Hat Linux 9 (2.4.21-4.EL)
    root (hd0,4)
    kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/1 hda=ide-scsi
    intrd /boot/initrd-2.4.21-8
Windows XP
    rootnoverify (hd0,0)
    chainloader +1

 

Make your own image

>convert -geometry 640x480 -colors 14 image.jpg image.xpm

use my cool image image.xpm.gz

 

Change VGA resolution

# vga=xxx sets the framebuffer console to a specific resolution.
# Here is a table you can use so it can help you decide
# what resolution you want to use:
# colour depth | 640x480  800x600  1024x768 1280x1024
# 256 (8bit) |  769      771       773      775
# 32000 (15bit) |  784      787       790      793
# 65000 (16bit) |  785      788       791      794
# 16.7 Mill. (24bit) |  786      789       792      795

 

 

My current grub.conf working

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/hdc5
# initrd /boot/initrd-version.img
#boot=/dev/hdc
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/image.xpm.gz
title Red Hat Linux 9 (2.4.20-8) . . . . . . . . . . . . . . .
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/1 hda=ide-scsi video=vesa vga=794
initrd /boot/initrd-2.4.20-8.img
title Red Hat Enterprise Linux AS (2.4.21-4.EL) . . . . . . . . . .
root (hd0,1)
kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/ hda=ide-scsi
initrd /boot/initrd-2.4.21-4.EL.img
title Windows XP . . . . . . . . . . . . . . . . . . . .
rootnoverify (hd0,0)
chainloader +1