GRUB issues(Warning NOOB) SOLVED

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
User avatar
crossfire139
Level 1
Level 1
Posts: 17
Joined: Mon Jun 04, 2007 7:41 pm
Location: Wellington, New Zealand

GRUB issues(Warning NOOB) SOLVED

Postby crossfire139 » Mon Jun 04, 2007 8:23 pm

I have WinXP Pro installed on a SATA drive and originally had Feisty installed on an IDE drive. GRUB bootloader worked fine and I was able to boot up to either OS. I am paranoid about losing the info on the Win drive and disconnected the SATA disk before installing Cassandra over Feisty (I thought I did the same thing when installing Feisty). Now however, only Cassandra appears in GRUB. I can still boot to the Win drive if I disconnect the IDE drive so the Win installation is still OK. Is it possible from this point to get GRUB to recognise the SATA drive and include Win in the boot options. At present only the IDE drive is listed in the GRUB device map.
Thanks

User avatar
BlahBlah_X
Level 4
Level 4
Posts: 275
Joined: Thu Apr 05, 2007 5:27 pm
Location: Walrus Teeth

Postby BlahBlah_X » Mon Jun 04, 2007 9:55 pm

You will have to edit the grub file.

Here is an easy howto:
http://www.tuxmachines.org/node/16701

User avatar
crossfire139
Level 1
Level 1
Posts: 17
Joined: Mon Jun 04, 2007 7:41 pm
Location: Wellington, New Zealand

Postby crossfire139 » Tue Jun 05, 2007 6:10 pm

Thanks for the help.
Have edited the grub file and the link to Win XP appears in the bootloader but clicking it causes an Error 13. I think it is a problem with accessing the SATA drive and have been trying to solve it with no luck. Have to resort to asking for help again.

hda is dedicated to Cassandra
sda1 is WinXP Pro

Following is the content of menu.lst

title Linux Mint, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Linux Mint, kernel 2.6.20-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Linux Mint, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Linux Mint, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Linux Mint, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

title Other Operating Systems
root

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


device.map
(hd0) /dev/hda
(hd1) /dev/hdb


All advice much appreciated.
Thanks

User avatar
Boo
Level 8
Level 8
Posts: 2363
Joined: Mon Mar 26, 2007 7:48 am

Postby Boo » Tue Jun 05, 2007 10:36 pm

this is what you want for the xp part:

title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

windows has to think it is on the first hard disk, but you have it on the second.
So you trick it by logically swapping the hard disks around, the map part.

:D
Image
Now where was i going? Oh yes, crazy!

User avatar
crossfire139
Level 1
Level 1
Posts: 17
Joined: Mon Jun 04, 2007 7:41 pm
Location: Wellington, New Zealand

Postby crossfire139 » Tue Jun 05, 2007 11:46 pm

Thanks, making progress.
Though it doesn't help when I don't give all the information......Duuh!

hda - Cassandra
hdb - NTFS storage
sda - WinXP Pro
sdb - NTFS storage

After applying corrections from Boo, attempts to run WinXP from GRUB return an error
NTLDR is missing
If I disconnect hdb Win boots from GRUB just fine.
Looks to my confused eye like a disk mapping problem but I don't understand enough about how it works to correct it.
Have to ask for help again.




title Linux Mint, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Linux Mint, kernel 2.6.20-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Linux Mint, kernel 2.6.20-15-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Linux Mint, kernel 2.6.20-15-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=2cff1121-3a04-4cb7-abe1-f215f236d1bd ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Linux Mint, memtest86+
root (hd0,0)

kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

title Other Operating Systems
root

title Windows XP Pro
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

User avatar
Boo
Level 8
Level 8
Posts: 2363
Joined: Mon Mar 26, 2007 7:48 am

Postby Boo » Tue Jun 05, 2007 11:56 pm

the error just says it can not find windows to boot (NT Loader).
well swap a bit more:

title Windows XP Pro
root (hd2,0)
savedefault
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1

well it sounds right...

:D
Image
Now where was i going? Oh yes, crazy!

User avatar
crossfire139
Level 1
Level 1
Posts: 17
Joined: Mon Jun 04, 2007 7:41 pm
Location: Wellington, New Zealand

Postby crossfire139 » Wed Jun 06, 2007 1:28 am

Bingo!
All good. Thanks for the help....and for being patient.

:oops: :D


Return to “Installation & Boot”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests