Mailing List Archive

grub config
Grub still confuses me, here is my setup:

Hda1 - windows xp
Hda2 - swap
Hda3 - reiserfs

Only one harddrive in this laptop, would the root be hd0,2? 2 being the
3rd partition? My thought being partitions start at zero and so partition
3 would be 2, correct?

TIA

nick




--
gentoo-user@gentoo.org mailing list
Re: grub config [ In reply to ]
There is an excellent primer on grub's naming convention here:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10

This is part of the gentoo installation handbook. In your setup, your
(hd0,2) is correct. Note that the parentheses are required.

Dave

Quoting nick@computernick.com:

> Grub still confuses me, here is my setup:
>
> Hda1 - windows xp
> Hda2 - swap
> Hda3 - reiserfs
>
> Only one harddrive in this laptop, would the root be hd0,2? 2 being
> the
> 3rd partition? My thought being partitions start at zero and so
> partition
> 3 would be 2, correct?
>
> TIA
>
> nick
>
>
>
>
> --
> gentoo-user@gentoo.org mailing list
>
>


--
gentoo-user@gentoo.org mailing list
Re: grub config [ In reply to ]
gentoo-user@lists.gentoo.org wrote:

> Grub still confuses me, here is my setup:
>
>
> Hda1 - windows xp
> Hda2 - swap
> Hda3 - reiserfs
>
>
> Only one harddrive in this laptop, would the root be hd0,2? 2 being the
> 3rd partition? My thought being partitions start at zero and so partition
> 3 would be 2, correct?
>
>
> TIA
>
>
> nick
>
> i'm not very familliar with the grub naming sheme too, but i've a tipp
> for you how to avoid spending to much time thinking about it:
> at first make a grub boot floppy, which just boot's you into a grub
> console from where you can boot your system manually. you do this with
> the following commands (to data on the floppy is lost - the exact path
> may vary)
>
> # cd /usr/share/grub/i386-pc
> # dd if=stage1 of=/dev/fd0 bs=512 count=1
> 1+0 records in
> 1+0 records out
> # dd if=stage2 of=/dev/fd0 bs=512 seek=1
> 153+1 records in
> 153+1 records out
> #
>
> then find out how to boot your system manually with this floppy; this
> is not that difficult, because the grub console supports tabbing,
> that means, you can try root (hdx, y) and then "tab" for your kernel
> (in fact you can also use the find command) . when you've found your
> kernel, it's also important that you supply grub with the correct
> root=/dev/hdx option; but that also works, if you whatch closly at the
> messages about your harddisks when the kernel starts (maybe directly
> into a panic *gg*) and then make an educated guess.
>
> when you are that far, update your grub.conf in boot/grub (don't
> forget to mount boot) with the appropriate settings. then, boot into
> your grub floppy again, insert another floppy , enter root (hdx, y)
> and setup (fd0). after that restart to find out if your new, and much
> more userfriendly floppy works. note that i really advise you to make
> these steps from your grub floppy promt, and not from the grub promt
> you get when you enter grub while allready inside a running linux
> system, because i found out that the x's and y's there could be
> differnt, to be exactly, not adequate (don't ask me why).
>
> when your new floppy is ok, you can insert the old one and enter setup
> hd0 to install grub permanently on the boot sector of your first
> harddrive.
> also look at http://www.gnu.org/software/grub/manual/grub.html
>
> regards,
> antonio
>
>
>
>
>
>
>
>
>
>
>
> --
> gentoo-user@gentoo.org <mailto:gentoo-user@gentoo.org> mailing list
>
>


--
gentoo-user@gentoo.org mailing list