I hope someone can help me with this.
I recently upgraded my Redhat from 7.0 to 7.2 on a dual boot machine. I primarily use Win98. During the install, I mistakenly chose not to load GRUB. The old version of LILO would not work, and it was necessary to boot to Linux using a boot floppy. I went ahead and ran the grub-install, but installed it to the MBR rather than to the Linux root. (doh!) Before the upgrade, I was using Boot Magic which comes bundled with Partition Magic. LILO was then chainloaded if I chose to boot Linux.
Now, I'm unable to boot into Windows. I've been struggling with trying to get the right combination in grub.conf, but no luck as far as Windows is concerned. Redhat will now boot without the floppy, however.
Below is the result of fdisk -l /dev/hda and the current state of my grub.conf file.
Disk /dev/hda: 255 heads, 63 sectors, 3720 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 991 7960176 b Win95 FAT32
/dev/hda2 992 3720 21920692+ f Win95 Ext'd (LBA)
/dev/hda5 992 994 24066 83 Linux
/dev/hda6 995 1027 265041 82 Linux swap
/dev/hda7 1028 1666 5132736 83 Linux
/dev/hda8 1667 2684 8177053+ b Win95 FAT32
/dev/hda9 2685 3720 8321638+ b Win95 FAT32
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,4)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda7
initrd /initrd-2.4.7-10.img
title Windows 98
;map (hd0,0) (hd0,1)
;map (hd0,1) (hd0,0)
unhide (hd0,0)
;hide (hd0,4)
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
title DOS Boot Disk
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader (fd0)+1
What do I need to change to get Windows back?
BTW, I tried FDISK /MBR from a Windows boot floppy, but no luck.
Thanks,
Andy
I recently upgraded my Redhat from 7.0 to 7.2 on a dual boot machine. I primarily use Win98. During the install, I mistakenly chose not to load GRUB. The old version of LILO would not work, and it was necessary to boot to Linux using a boot floppy. I went ahead and ran the grub-install, but installed it to the MBR rather than to the Linux root. (doh!) Before the upgrade, I was using Boot Magic which comes bundled with Partition Magic. LILO was then chainloaded if I chose to boot Linux.
Now, I'm unable to boot into Windows. I've been struggling with trying to get the right combination in grub.conf, but no luck as far as Windows is concerned. Redhat will now boot without the floppy, however.
Below is the result of fdisk -l /dev/hda and the current state of my grub.conf file.
Disk /dev/hda: 255 heads, 63 sectors, 3720 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 991 7960176 b Win95 FAT32
/dev/hda2 992 3720 21920692+ f Win95 Ext'd (LBA)
/dev/hda5 992 994 24066 83 Linux
/dev/hda6 995 1027 265041 82 Linux swap
/dev/hda7 1028 1666 5132736 83 Linux
/dev/hda8 1667 2684 8177053+ b Win95 FAT32
/dev/hda9 2685 3720 8321638+ b Win95 FAT32
default=0
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,4)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda7
initrd /initrd-2.4.7-10.img
title Windows 98
;map (hd0,0) (hd0,1)
;map (hd0,1) (hd0,0)
unhide (hd0,0)
;hide (hd0,4)
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
title DOS Boot Disk
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader (fd0)+1
What do I need to change to get Windows back?
BTW, I tried FDISK /MBR from a Windows boot floppy, but no luck.
Thanks,
Andy