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 09-28-2003, 02:46 PM   #1
LQ Newbie
Registered: Sep 2003
Location: Maryland
Posts: 19

Rep: Reputation: 0
Unhappy grub, hard drive mapping, booting

So I am trying to use grub to rewrite my MBR and reboot to linux. (I had previously been sharing disks between linux and Windows and got a corrupted disk.)

I have a partition / and a separate /boot partition.
I have grub in /boot/grub.
I don't have a recovery disk so I boot linux from the CDRom, using linux rescue, and it sets an image up in /mnt/sysimage.

Using grub, I can find stage 1 like this;
find /grub/stage1

Then I do this, as instructed by the grub manual;
root (hd0,1)

What setup actually runs is this;
install /grub/stage1 d (hd0) /grub/stage2 p /grub/grub.conf

This looks good to me - I have a link from menu.lst to grub.conf.

However, if I cycle the power now and try it without the linux CD, I see grub startup, it gives me a menu, I pick a version of linux, and it says;

root (hd1,1)
kernel /vmlinuz-2.4.20-20.7 ro root=/dev/hdc1 hdb=ide-scsi

Error 15; file not found

The kernel command looks right, but why, oh why, is it setting root to (hd1,1) ? Could it be something in my Or /etc/fstab? I don't know how to diagnose this problem beyond recognizing that it's not using the root that I set prior to running setup in grub.

I have tried the same install command (that setup creates) but without the 'd' argument, I get the same result when I reboot (still looking for (hd1,1)).

I have tried setting up (in boot/grub) with either of
these two lines (obviously not both at the same time)
(hd0) /dev/hdc
(hd1) /dev/hdc

PLEASE HELP! Any insight would be greatly appreciated!!!

Last edited by chrisrose21044; 09-28-2003 at 03:28 PM.
Old 09-29-2003, 09:57 AM   #2
LQ Newbie
Registered: Sep 2003
Location: Maryland
Posts: 19

Original Poster
Rep: Reputation: 0
Just as an update, I finally solved this problem on my own.
My was wrong (after I had switched the drives around) and I had forgotten that grub-install uses that file. After I fixed device.mmap, and reran grub-install, I was able to get grub to boot. Yay! (Big sigh, much relief.)


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Hard Drive to /dev mapping rdhochhalter SUSE / openSUSE 4 11-02-2005 07:37 PM
Installed GRUB on 3rd hard drive, how do I boot 1st drive? jesusphreak Linux - Newbie 4 04-06-2005 10:34 AM
GRUB errors, booting on 2nd hard drive p1800 Linux - Newbie 14 12-02-2004 02:05 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration