LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-28-2003, 01:46 PM   #1
chrisrose21044
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
(hd0,1)

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

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 device.map? 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 device.map (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 02:28 PM.
 
Old 09-29-2003, 08:57 AM   #2
chrisrose21044
LQ Newbie
 
Registered: Sep 2003
Location: Maryland
Posts: 19

Original Poster
Rep: Reputation: 0
Hey,
Just as an update, I finally solved this problem on my own.
My device.map 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.)
 
  


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

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

All times are GMT -5. The time now is 10:57 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
Open Source Consulting | Domain Registration