Error in installation of GRUB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-installer (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
After making enough free space on my SATA drive (which also had WinXP), I
installed Ubuntu. Great.
Asked if I wanted to install GRUB into the MBR. I said "Yes".
Rebooted, got the error message "Error loading operating system." The only way
to fix my problem was to load a LiveCD and use QtParted to set my XP's NTFS
partition to "Active", at which point XP would boot fine but I couldn't get into
Ubuntu.
Played around with it for a long time, aksed for help on the forums etc., got
nowhere.
Eventually I got fed up (I just wanted to get used to Linux) and installed SuSE
9.1 Personal. Installed it into the same free space, it set itself as the active
partition, asked for info about the GRUB (which I specified "Overwrite MBR" and
"Make MBR partition active", finished install, rebooted and everything worked
fine. I could choose SuSE or XP and both booted no problem.
So I thought "Maybe this will work if I reinstall Ubuntu now." So, I did.
And... GRUB worked! Well, kind of.
GRUB loaded now, giving me a menu. If I chose XP, then XP would boot no problem.
If I chose any of the three default Ubuntu options, I got "Error 22: No such
partition".
My solution:
I removed my IDE storage drive (i.e. now there is ust my SATA OS drive) and
reinstalled Ubuntu. This time, it worked no problems whatsoever. Put my IDE
drive back in and it still worked. Both Ubuntu and XP boot fine now.
The problem:
The installer had set my menu.lst file to something like (please note: I've
re-ordered stuff to look better):
/*
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
chainloader +1
title Ubuntu 5.04 Hoary Hedgehog
root (hd1,1)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
title Ubuntu 5.04 (recovery mode)
root (hd1,1)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
title Ubuntu 5.04, memtest86+
root (hd1,1)
kernel /boot/memtest86
savedefault
boot
*/
when the WORKING version looks like this (same modifications.. not the "root"
commands):
/*
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 5.04 Hoary Hedgehog
root (hd0,1)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
title Ubuntu 5.04 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-
initrd /boot/initrd.
savedefault
boot
title Ubuntu 5.04, memtest86+
root (hd0,1)
kernel /boot/memtest86
savedefault
boot
*/
SuSE worked fine but Ubuntu did not. That is the only reason I am posting this
here; if both installers had messed up because of my extra IDE storage drive,
then I would have said "oops, guess you just can't do it that way", but since
SuSE didn't have any problems, then neither should Ubuntu. Also, SuSE gave me
the specific options for overwriting the MBR and settings its "bootable" status,
which Ubuntu did not.. that was the fix to the original problem I was having.
Changed in grub-installer: | |
status: | Unconfirmed → Confirmed |
Changed in grub-installer: | |
assignee: | kamion → nobody |
Ubuntu 5.04 downloaded from site mirrors on July 12, 2005.
Hardware configuration:
Motherboard: ABIT NF7-S rev 2.0
1xCD- RW on onboard ATA 2
1xWestern Digital 120GB ATA133 on Promise SATA150 TX2Plus addon
Memory: 768MB Kingmax DDR400
Processor: AthlonXP 2500+
Video card: Sapphire ATI Radeon 9600XT
Disk Drives: 1xDVD-ROM + 1xDVD+-RW on onboard ATA 1
Hard Drives: 1xMaxtor 40GB DiamondMax on onboard Silicon Image Sil 3112
SATARaid Controller (using the PATA to SATA converter that came with my mobo)
card (has 2xSATA connectors and 1xATA133 connector)
Please contact if more information is required.