LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me with grub (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-with-grub-702826/)

luikki 02-06-2009 05:10 PM

help me with grub
 
following a fresh install of xp (on second boot disk sata seagate 320 gb - showing only 200 gb in the file attached) and of pclinuxos (on first boot disk sata western digital 250 gb) i messed up grub... and can't boot to xp.
need your help.
thanks

fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x053c053c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 1913 24320 179992260 5 Extended
/dev/sda5 1913 2549 5116671 7 HPFS/NTFS
/dev/sda6 2550 8923 51199123+ 7 HPFS/NTFS
/dev/sda7 8924 15297 51199123+ 7 HPFS/NTFS
/dev/sda8 15298 24320 72477216 7 HPFS/NTFS

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x29273347

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2119 17020836 83 Linux
/dev/sdb2 2120 30401 227175165 5 Extended
/dev/sdb5 2120 2628 4088511 82 Linux swap / Solaris
/dev/sdb6 2629 10372 62203648+ 83 Linux
/dev/sdb7 10373 30401 160882911 83 Linux

grub:

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=b2ec9648-ed14-464c-b39f-ccc05915e28c acpi=on resume=UUID=88e779cb-27ef-4afe-9b04-50e0f472ee5c splash=silent vga=791
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=b2ec9648-ed14-464c-b39f-ccc05915e28c acpi=on resume=UUID=88e779cb-27ef-4afe-9b04-50e0f472ee5c
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=b2ec9648-ed14-464c-b39f-ccc05915e28c failsafe acpi=on
initrd (hd0,0)/boot/initrd.img

title windows1
root (hd2,0)
makeactive
chainloader +1

kilgoretrout 02-06-2009 06:09 PM

Try:

title windows1
root (hd1,0)
makeactive
chainloader +1

CJS 02-06-2009 06:48 PM

Which Windows entry you should use depends on which drive you are booting on start up, and also you didn't mention which NTFS partition has Windows on it. It looks like XP might be on sda1, so how about trying:
Code:

title      Windows XP (hd0)
root      (hd0,0)
chainloader +1

title      Windows XP (hd1)
rootnoverify    (hd1,0)
map        (hd0) (hd1)
map        (hd1) (hd0)
chainloader +1

If neither of those work, let me know what exactly happens when you try them from the Grub menu.

luikki 02-07-2009 04:46 AM

thanks kilgoretrout and CJS!
i got boot back to normal by using:

title Windows XP (hd1)
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

once again, thanks!
regards


All times are GMT -5. The time now is 05:19 AM.