Click to See Complete Forum and Search --> : Grub Prpblem
HellO everyOne...
i've a problem with the boot loader (GRUB) ...after installing XP i wanted to reinstall the Grub so ....i did
root (hd0,2)
setup (hd0,0),,,(Or what ever i made many time (hd0,0) and setup (hd0) but the result of all ..the Xp line in the GRUB dosent point to the dindowz at all everytime it return me the GRUB again....
i can't load Xp anymore now ...
rootnoverify (hd0,0)
chainloader +1.........
whats wrong..??:confused:
XiaoKJ
10-12-2004, 08:47 AM
maybe you should read up.
can you at least tell us your partition table? we will need that.
moreover, is you XP partition working?
# fdisk -l
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 653 5245191 b Win95 FAT32
/dev/hda2 654 4978 34740562+ f Win95 Ext'd (LBA)
/dev/hda3 4979 4998 160650 83 Linux
/dev/hda5 654 2087 11518573+ b Win95 FAT32
/dev/hda6 2088 3681 12803773+ b Win95 FAT32
/dev/hda7 3682 4063 3068383+ 83 Linux
/dev/hda8 4064 4152 714861 83 Linux
/dev/hda9 4153 4190 305203+ 83 Linux
/dev/hda10 4191 4222 257008+ 83 Linux
/dev/hda11 4223 4247 200781 82 Linux swap
/dev/hda12 4248 4978 5871726 83 Linux
saikee
10-12-2004, 10:52 AM
If you are in Grub prompt then merely typing
rootnoverify (hd0,0)
chainloader +1
should boot the XP in hda1.
You don't need to rebuild the Grub at all.
It appears that you have Linux partitions in hda3, hda7, hda8, hda9, hda10 & hda12 and at least one of them will hold /boot. Suppose this is hda3 then at Grub prompt typing
configfile (hd0,2) /boot/grub/menu.lst
will activate your Linux (Grub counts from zero so (hd0,2)=hda3). After that while log in as root and typing
grub-install /dev/hda
will install a perfect Grub in the MBR
XiaoKJ's question of
"is you XP partition working?"
is highly relevant because Grub can't boot a XP unless it was bootable before the Grub introduction.