[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

HELP- Grub problem, I can't load WInXP



I'm sure that to many people on this list, not being able to run WinXP would 
be considered a good thing (TM), but trust me, I have lots of important 
reasons for needing it :)

Anyway, here is the deal:
I have a few drives, one with win98 (don't ask!), one with win xp, and one 
with Debian Sid. I had grub happily booting everything until recently when 
WinXP experienced some HDD corruption and I had to do a repair. Obviously, 
this repair overwrote the MBR and I was left with the normal Windows dual 
boot option of WinXP and Win98.

I used Knoppix to chroot to my Debian install and run grub-install /dev/hda1 
in order to put the MBR back. This worked, grub's menu comes up at boot-time 
and runs Debian fine. It's using the original menu.1st, but the entries for 
Windows just don't work (I don't care if Win98 doesn't work, it's WinXP that 
is very important to me). When selecting WinXP from grub's menu, I get:

-----------------------------------------------------
root            (hd0,0)
savedefault
makeactive
chainloader     +1

GRUB Loading Stage2...
-----------------------------------------------------

and it returns back to the grub menu again.


Of course, I could just run another windows repair but I'd lose Debian/Grub 
again so I'd rather fix grub.

I took a backup of the /boot/grub directory before running grub-install and 
the only file that seems to have changed is the stage2 file.


Anyway, here is the setup:
/boot/grub$ fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        4079    32764536    c  W95 FAT32 (LBA)
/dev/hda2            4080       19457   123523785    f  W95 Ext'd (LBA)
/dev/hda5            4080        4601     4192933+   b  W95 FAT32
/dev/hda6            4602       19457   119330788+   7  HPFS/NTFS

Disk /dev/hdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1        3060    24579418+   c  W95 FAT32 (LBA)
/dev/hdc2            3061       10011    55833907+   f  W95 Ext'd (LBA)
/dev/hdc5            3061        6120    24579418+   b  W95 FAT32
/dev/hdc6            6121       10011    31254426    b  W95 FAT32

Disk /dev/hdf: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdf1               1       14593   117218241    7  HPFS/NTFS

Disk /dev/hdg: 76.8 GB, 76869918720 bytes
255 heads, 63 sectors/track, 9345 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1   *           1           4       32098+  83  Linux
/dev/hdg2               5         126      979965   83  Linux
/dev/hdg3             127        1342     9767520   83  Linux
/dev/hdg4            1343        4199    22948852+   5  Extended
/dev/hdg5            1343        2558     9767488+  83  Linux
/dev/hdg6            2559        3774     9767488+  83  Linux
/dev/hdg7            3775        3956     1461883+  83  Linux
/dev/hdg8            3957        4199     1951866   82  Linux swap / Solaris


WinXP is on hda1, Debian is on hdg*. I did originally make the mistake of 
running grub-install /dev/hdg1 (rather than hda1), but I re-ran grub-install 
and it all seemed fine. The entries in menu.1st are the same auto-detected 
values from Debian's original installation, and are:

title           Debian GNU/Linux, kernel 2.6.12-custom
root            (hd3,0)
kernel          /vmlinuz-2.6.12-custom root=/dev/hdg2 ro
savedefault
boot


title           Debian GNU/Linux, kernel 2.6.8-2-386
root            (hd3,0)
kernel          /vmlinuz-2.6.8-2-386 root=/dev/hdg2 ro
initrd          /initrd.img-2.6.8-2-386
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root            (hd3,0)
kernel          /vmlinuz-2.6.8-2-386 root=/dev/hdg2 ro single
initrd          /initrd.img-2.6.8-2-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title           Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title           Windows NT/2000/XP
root            (hd0,0)
savedefault
makeactive
chainloader     +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda5
title           Windows 95/98/Me
root            (hd0,4)
savedefault
makeactive
chainloader     +1



Can anybody please help???

Many thanks in advance,
Andy




Reply to: