LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2006, 01:09 PM   #1
zdenisl
Member
 
Registered: Nov 2005
Distribution: CentOS-4
Posts: 41

Rep: Reputation: 15
Grub questions


My /boot partition is on /dev/md0

my grub.conf has the following line:

kernel /vmlinuz-2.6.9-42.EL ro root=/dev/md1 rhgb quiet

My kernel is in /boot which is mounted on /dev/md0. Why does my grub.conf say /dev/md1? They system boots but this is confusing..

Another strange thing I noticed is when setup (hd0) is run from the grub prompt after root (hd0,0) I get:

Checking if "/boot/grub/stage1" exists... no

If I cd /boot/grub I can see the stage1 file there.
From grub I do a:

find (hd0,0)/boot/grub/stage1 and I get file not found.

Again, system boots.

Any thoughts? I'm trying to install the MBR on both hda and hdb so my system will boot if a disk fails but I want to figure this out before I depend on the MBR install with stage1 missing..


Thanks
 
Old 10-21-2006, 01:15 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
kernel /vmlinuz-2.6.9-42.EL ro root=/dev/md1 rhgb quiet
The root "/boot" is specified above, it's probably hd(0,0) if it's md0 where your grub is, so it refers /vmlinuz-... where / actually means hd(0,0). Your boot partition lies in md0 as you said, but the actual system root partition is probably in md1 (the next partition), so it points the filesystem root there, if I figured this out right. /boot is just mounted into the filesystem root, but it doesn't necessarily reside on the same partition.
 
Old 10-21-2006, 02:22 PM   #3
zdenisl
Member
 
Registered: Nov 2005
Distribution: CentOS-4
Posts: 41

Original Poster
Rep: Reputation: 15
Interesting.. so correct me if I'm not understanding this correctly.

My / partition is /dev/md1 (which it is)
My /boot partition is /dev/md0

Since /boot is mounted under / grub needs to reference the partition for / (/dev/md1) to traverse the directory down to /boot which is /dev/md0.

Is that how it works?
That would mean the "root=/dev/xxxx" would always be the device of the root partition regardless of where the kernel was mounted (i.e. /boot).

Also - any thoughts on the stage1 not found issue?
 
  


Reply



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
Gentoo GRUB Questions cheetahman Linux - Distributions 2 05-27-2006 05:51 PM
grub booting questions jiawj Red Hat 6 12-31-2004 05:54 AM
grub questions siegecraft4 Linux - Newbie 7 07-17-2004 10:56 PM
grub questions.... oubipaws Linux - Software 10 07-25-2003 11:43 AM
Grub Questions? veraMOB Linux - General 2 07-17-2003 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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