Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-21-2007, 08:58 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 10

Rep: Reputation: 0
Unhappy Why does GRUB hate me?

I'm currently running a dual boot setup with NTLDR as my boot loader with the assistance of BOOTPART.

I have 3 hard drives in the following setup
/dev/hdc - 40GB The drive I install Linux on
/dev/sda - 320GB Windows
/dev/sdb - 250GB Temp

When I first install Ubuntu 6.10 and reach step 6 of 6 where it asks me where to install GRUB, the default option is (hd0) -- If I leave this unchanged, it wipes out NTLDR. So instead I tell it to install to the first partition on my 40GB drive, so I change (hd0) to /dev/hdc1

When it comes time to reboot, NTLDR menu shows the two options of XP or Linux. I choose Linux which then boots GRUB which quicky issues me the error "no image found" -- This is normal because this is how I've had to work with it for the last two years.

All I do, is press "E" to edit the default boot information and change root (hd0,0) to (hd2,0) and then Ubuntu boots fine.

This is where it gets confusing.

In my /boot/grub/ is shows me the following

(hd0) /dev/hdc
(hd1) /dev/sda
(hd2) /dev/sdb

Now if you recall, (hd2) or /dev/sdb is a plain old Temp drive with NO active partitions or MBRs.

All I really want to know is, what option can I use during the installation of GRUB that would let Ubuntu just boot without me having to make the constant menu.lst adjustments.

I've been tempted to install GRUB to (hd2), but knowing my luck with GRUB. It will probably actually install GRUB on my /dev/sdb

ARGH! Someone please help me!

Thank you.
Old 01-22-2007, 02:53 AM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Is there any reason why you are using NTLDR as a boot loader? You will probably have better luck if you install GRUB to the MBR.

Maybe change your /boot/grub/menu.lst to the correct values?

Old 01-22-2007, 06:56 AM   #3
LQ Newbie
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I use NTLDR because I reinstall Windows many more times than I do Linux. As such, it's much easier to add the Linux partition back to BOOT.INI as opposed to having XP remove GRUB and wipe my MBR everytime I reinstall Windows.

I've made the adjustments in the menu.lst but I'm still just trying to figure out why GRUB is making things so confusing.
Old 01-22-2007, 07:33 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
I am puzzled about something here. According to the hd0 maps to /dev/hdc (The Linux drive). If NTLDR (and mbr boot code) for Windows is on sda (hd1), then how is the system booting Windows?

If you are concerned about constantly re-installing Windows and wiping out GRUB, then simply put GRUB on a floppy...
Old 01-22-2007, 07:49 AM   #5
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
IMHO it is much easier to use GRUB for multiboot rather than NTLDR.
Even tho Windows will overwrite the MBR each time you install, it much easier to use linux recue and re-install grub to the MBR.
Old 01-22-2007, 10:12 AM   #6
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Perhaps you can "have your cake & eat it too".

What would happen if you point your BIOS at the GRUB disk except when you are re-installing "Winders"?

If you made a copy of the MBR: [code]
dd if=/dev/sda of=<grub.mbr> bs=512 count=1[code] then it would be easy to restore after an NTLDR wipe out. [code]
dd of=/dev/sda if=<grub.mbr> bs=512 count=1[code]

As for your menu.lst ("without me having to make the constant menu.lst adjustments."), why are you using "E" on boot if you have made adjustments? You are aware that edits ("E") during boot are not permanent -- you have to edit the actual menu.lst for that? (My apologies if you already know this. )

One trial-and-error way to find out what's wrong would be to temporarily put 2 additional Linux stanzas in menu.lst for each of the 2 HD's that are not currently pointed to. Determine which one works & adjust accordingly.
Old 01-22-2007, 07:09 PM   #7
LQ Newbie
Registered: Nov 2005
Posts: 10

Original Poster
Rep: Reputation: 0
This is a section from my menu.lst -- It must be some type of magic because from the looks of it in relation to my, it doesn't look like ANYTHING should be working.


title Ubuntu, kernel 2.6.17-10-generic
root (hd2,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdc1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic


# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1


If I were to use GRUB as my primary boot loader, how would I go about restoring the dual boot functionality once Windows takes over after reinstallation? I no longer have a floppy disk drive, which is probably also another reason I use NTLDR because it's easier to fix with BOOTPART while I'm in XP.

I've also had really bad experiences with LILO when I used Linux for the first time back in 1998. I think it was Debian 2.0. Anyway, it took me almost a month to salvage my data and restore my computer to working order again. Maybe GRUB is easier to use, I haven't really given it a chance. But I'm scared of LILO and consequently, any Linux based boot managers.
Old 01-24-2007, 03:30 AM   #8
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
I'm not overly familiar with ubuntu, but can't you boot using the install CD then choose a rescue environment which will give you a command prompt.

On Redhat systems you do the above then:

chroot /mnt/sysimage
grub-install /dev/hda

Thats all there is to it. sorry for Redhat/Fedora 'answer' but not upto speed with debian as yet.



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
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Hate Grub but can't get rid of it... fannymites Linux - Software 11 07-12-2005 09:57 PM
I hate GRUB stealth_banana Linux - Software 4 05-22-2004 03:07 AM
I hate it when... Tarts General 27 10-20-2003 04:32 PM
I hate it linuxdoesntwork Linux - Newbie 3 06-29-2003 04:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 PM.

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