l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2005 May 20 09:26

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] grub not finding root partition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] grub not finding root partition



På fredag, 20 maj 2005, skrev Peter Jay Salzman:
[...]
> I really wish grub used standard device names.  :(
> 
> root filesystem is on /dev/hda6
> boot partition is on /dev/hdb1
> 
>    title		Debian GNU/Linux, kernel 2.6.11
>    root		(hd1,0)
>    kernel		/vmlinuz-2.6.11 root=/dev/hda6 ro 
>    savedefault
>    boot
> 
> So I take it that "root (hd1,0)" doesn't mean "where to find root filesysetm",
> but rather, "where to find the kernel".
> 
> And I'm guessing that "root=/dev/hda6 ro" must be kernel arguments, which
> would mean "root=/dev/hda6" gives the location of the root filesystem.
> 
> If this is the case, then the word "root" has two meanings in the grub
> config file, which is really awful.  :(

Yes, that is exactly right. The line "root (hd1,0)" sets the Grub root,
which is the partition where the grub directory is located, which contains
the secondary stages of grub. Grub is too big to fit into the MBR so it must
load extra pieces of itself from the filesystem.

The "root=..." and everything else after the kernel-image filename are just
arguments to the kernel. Grub does not parse this appended text at all but
just passes it to Linux when booting. This is confusing when you are used to
Lilo because Lilo supports a lilo command "root=/dev/hda6" that appears on
a seperate line from the kernel, but is appended to the kernel arguments
when booting. One could equivalently write append="root=/dev/hda6" in
lilo.conf.

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system usually rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.