Download your favorite Linux distribution at LQ ISO.
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 12-12-2006, 02:26 AM   #1
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question Grub hard drive question - root (hd0,0)

I am configuring grub and I want to know if my boot partition is /dev/hda2 does that mean the argument for root should be root (hd0,2)?
Old 12-12-2006, 02:31 AM   #2
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222

Rep: Reputation: 30
/boot should be (hd0,1) if its /dev/hda2.
Old 12-13-2006, 04:13 AM   #3
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Originally Posted by SlackDaemon
/boot should be (hd0,1) if its /dev/hda2.
So if boot is the second hda2 and root is the 3rd hda3 the it should like this:

default 0
timeout 19

root (hd0,1)
kernel /boot/kernel root=dev/hda3


(hda3 being the / partition here)
Old 12-13-2006, 05:18 AM   #4
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Yes it will work.

Never done it before myself as my distroa are always in single partitions. That mean /boot is always inside the root partition of every Linux.

However I have use regularly a kernel from Linux A to boot Linux B. To me you just pick up the kernel in hda2 to boot the Linux in hda3.

Grub always counts from 0 but the parameter root=/dev/hda3 is Linux-related and for the kernel's benefit. By that time Grub has finished its work, to pass control to the kernel and on the way for its long lunch break.

Last edited by saikee; 12-13-2006 at 05:19 AM.


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
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 06:44 AM
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
grub; hda1 == root(hd0,0) ; hda5 = ???? stupidloser Linux - General 6 12-05-2004 01:26 AM
Grub cannot find the filesystem type of my hd0 drive JimmyGourd Linux - Newbie 9 09-25-2004 12:28 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM > Forums > Linux Forums > Linux - Newbie

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