LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2009, 06:10 PM   #1
luikki
LQ Newbie
 
Registered: Jan 2008
Distribution: PcLinuxOx
Posts: 12

Rep: Reputation: 0
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
 
Old 02-06-2009, 07:09 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
Try:

title windows1
root (hd1,0)
makeactive
chainloader +1
 
Old 02-06-2009, 07:48 PM   #3
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
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.
 
Old 02-07-2009, 05:46 AM   #4
luikki
LQ Newbie
 
Registered: Jan 2008
Distribution: PcLinuxOx
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
Problems with /boot/grub/grub.conf not being read properly on reboots cmeyer Linux - Software 1 10-11-2008 07:34 PM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 07:40 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 10:02 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration