public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  grub
@ 2006-07-20 23:35 James
  2006-07-20 23:52 ` Hemmann, Volker Armin
  0 siblings, 1 reply; 8+ messages in thread
From: James @ 2006-07-20 23:35 UTC (permalink / raw
  To: gentoo-user

Hello,

I have mostly completed the installation of a new amd64 laptop.
(big compile left to complete).
The system boots if I use the command line option of grub (c):

root (hd0,1)
kernel /kernel-2.6.16-gentoo-r13
boot
<system then boots; Issueing the second command, grub finds the
kernel with a few characters and a tab>


The system will not boot from any of the entries I've tried in
grub.conf:
Notice I've tried all sorts of partitions for the root=/dev/ entry.

#0
title=Gentoo Linux 2.6.16-gentoo-r13
root(hd0,1)
kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda1  vga=791

#1
title=Gentoo Linux 2.6.16-gentoo-r13
root(hd0,1)
kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda2  vga=791

#2
title=Gentoo Linux 2.6.16-gentoo-r13
root(hd0,1)
kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda5  vga=791

#3
title=Gentoo Linux 2.6.16-gentoo-r13
root(hd0,1)
kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda6  vga=791

df <shows>
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda6             40964440   1207148  39757292   3% /
udev                    512540       224    512316   1% /dev
/dev/hda2               313200     36700    276500  12% /boot
/dev/hda7             23542444     32840  23509604   1% /usr/local
none                    512540         0    512540   0% /dev/shm


while the fstab <shows>:
dev/hda2   /boot       reiserfs    noatime,notail      1 2
/dev/hda5   none        swap    sw                      0 0
/dev/hda6   /           reiserfs    noatime             0 1
/dev/hda7   /usr/local  reiserfs    noatime             0 1
none        /dev/shm  tmpfs   nodev,nosuid,noexec  0 0
proc        /proc     proc         defaults        0 0

/dev/hda1 is an unmounted NTFS partition for installing XP at
a later date.

I ran 'grub-install /dev/hd0' and the /boot/grub/device.map
looks like this:
(fd0)   /dev/fd0
(hd0)   /dev/hda


Any ideas what I missed?  I pretty much followed the Gentoo Handbook
for amd64..

James


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user]  grub
  2006-07-20 23:35 [gentoo-user] grub James
@ 2006-07-20 23:52 ` Hemmann, Volker Armin
  2006-07-21  0:27   ` Richard Fish
  0 siblings, 1 reply; 8+ messages in thread
From: Hemmann, Volker Armin @ 2006-07-20 23:52 UTC (permalink / raw
  To: gentoo-user

On Friday 21 July 2006 01:35, James wrote:
> Hello,
>
> I have mostly completed the installation of a new amd64 laptop.
> (big compile left to complete).
> The system boots if I use the command line option of grub (c):
>
> root (hd0,1)
> kernel /kernel-2.6.16-gentoo-r13
> boot
> <system then boots; Issueing the second command, grub finds the
> kernel with a few characters and a tab>
>
>
> The system will not boot from any of the entries I've tried in
> grub.conf:
> Notice I've tried all sorts of partitions for the root=/dev/ entry.
>
> #0
> title=Gentoo Linux 2.6.16-gentoo-r13
> root(hd0,1)
> kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda1  vga=791

wrong

>
> #1
> title=Gentoo Linux 2.6.16-gentoo-r13
> root(hd0,1)
> kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda2  vga=791

wrong

>
> #2
> title=Gentoo Linux 2.6.16-gentoo-r13
> root(hd0,1)
> kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda5  vga=791

wrong

>
> #3
> title=Gentoo Linux 2.6.16-gentoo-r13
> root(hd0,1)
> kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda6  vga=791

looks good, but try this:
kernel (hd0,1)/boot/vmlinuz root=/dev/hda6

hope it helps.

if you use make install a vmlinuz symlink is created, so you don't need all 
your kernels in grub.conf. Only vmlinuz and vmlinuz.old.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] grub
  2006-07-20 23:52 ` Hemmann, Volker Armin
@ 2006-07-21  0:27   ` Richard Fish
  2006-07-21  0:57     ` [gentoo-user] grub James
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Fish @ 2006-07-21  0:27 UTC (permalink / raw
  To: gentoo-user

On 7/20/06, Hemmann, Volker Armin <volker.armin.hemmann@tu-clausthal.de> wrote:
> looks good, but try this:
> kernel (hd0,1)/boot/vmlinuz root=/dev/hda6

Actually since you have a separate /boot filesystem, it would be more
accurate to use:

kernel (hd0,1)/vmlinuz root=/dev/hda6

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user]  Re: grub
  2006-07-21  0:27   ` Richard Fish
@ 2006-07-21  0:57     ` James
  2006-07-21  3:02       ` Richard Fish
  2006-07-21  8:44       ` Neil Bothwick
  0 siblings, 2 replies; 8+ messages in thread
From: James @ 2006-07-21  0:57 UTC (permalink / raw
  To: gentoo-user

Richard Fish <bigfish <at> asmallpond.org> writes:


> > looks good, but try this:
> > kernel (hd0,1)/boot/vmlinuz root=/dev/hda6

> Actually since you have a separate /boot filesystem, it would be more
> accurate to use:

> kernel (hd0,1)/vmlinuz root=/dev/hda6

Yes both work. as well as what I decided to use

kernel (hd0.1)/kernel-2.6.16-gentoo-r13 root=/dev/hda6

I like keeping the explicit kernel nanes around because
I test many different things across many different systems,
so as to not confuse myself and track kernel versions with
various patches  and drivers.

Why didn't the old syntax work? (separate partition for /boot)
kernel /kernel-2.6.16-gentoo-r13 
When it worked from the command line of grub?
It's also the syntax I use on many other systems.

Thanks Hemmann and Richard,


James




-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: grub
  2006-07-21  0:57     ` [gentoo-user] grub James
@ 2006-07-21  3:02       ` Richard Fish
  2006-07-21  7:59         ` Adrian Frith
  2006-07-21  8:44       ` Neil Bothwick
  1 sibling, 1 reply; 8+ messages in thread
From: Richard Fish @ 2006-07-21  3:02 UTC (permalink / raw
  To: gentoo-user

On 7/20/06, James <wireless@tampabay.rr.com> wrote:
> Why didn't the old syntax work? (separate partition for /boot)
> kernel /kernel-2.6.16-gentoo-r13
> When it worked from the command line of grub?

To be honest, I'm not sure.  Can you try something like this:

root (hd0,1)
title Gentoo Linux 2.6.16-gentoo-r13
    kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda6

Notice:
1. the space after "root"
2. that root is now a 'global' setting
3. technically it is not "title=foo", but "title foo".

If I had to make a guess, I suspect the space between root and the
device specification is the important change.

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] Re: grub
  2006-07-21  3:02       ` Richard Fish
@ 2006-07-21  7:59         ` Adrian Frith
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian Frith @ 2006-07-21  7:59 UTC (permalink / raw
  To: gentoo-user

On Thu, 2006-07-20 at 20:02 -0700, Richard Fish wrote:
<snip>
> root (hd0,1)
> title Gentoo Linux 2.6.16-gentoo-r13
>     kernel /kernel-2.6.16-gentoo-r13 root=/dev/hda6
> 
<snip>
> 3. technically it is not "title=foo", but "title foo".

Strange thing is that the Handbook actually has "title=foo" in its GRUB
example at
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 completely contrary to correct grub syntax.

I guess I should file a bug.

Regards,
Adrian

-- 
Adrian Frith
adrian@frith.co.za | adrian@clug.org.za | frtadr003@cs.uct.ac.za
083 393 1257 | 021 531 8719 | http://frith.co.za/~adrian/

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user]  Re: grub
  2006-07-21  0:57     ` [gentoo-user] grub James
  2006-07-21  3:02       ` Richard Fish
@ 2006-07-21  8:44       ` Neil Bothwick
  2006-07-21 16:50         ` James
  1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2006-07-21  8:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

On Fri, 21 Jul 2006 00:57:31 +0000 (UTC), James wrote:

> Why didn't the old syntax work? (separate partition for /boot)
> kernel /kernel-2.6.16-gentoo-r13 
> When it worked from the command line of grub?

Probably because you had a space after root on the command line, but not
in grub.conf. If you'd told us the error message GRUB gave, it might be
possible to guess the cause more accurately.


-- 
Neil Bothwick

Life is like an analogy.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user]  Re: grub
  2006-07-21  8:44       ` Neil Bothwick
@ 2006-07-21 16:50         ` James
  0 siblings, 0 replies; 8+ messages in thread
From: James @ 2006-07-21 16:50 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil <at> digimed.co.uk> writes:


> > Why didn't the old syntax work? (separate partition for /boot)
> > kernel /kernel-2.6.16-gentoo-r13 
> > When it worked from the command line of grub?

> Probably because you had a space after root on the command line, but not
> in grub.conf. If you'd told us the error message GRUB gave, it might be
> possible to guess the cause more accurately.


Sorry,
It gave no error at all, the screen went black and the system did nothing
(locked-up), like it could not find the bootsector, thus requiring it to need a
manual power-cycle.

The system is busy compling xorg-x11, kde-meta et. al.

When it finishes, I shall test Richard's theory and let you guys know
what I learn, paying attention to the various combinations of spaces
and no spaces.

Thanks for all the help (from everyone),

James






-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-07-21 17:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 23:35 [gentoo-user] grub James
2006-07-20 23:52 ` Hemmann, Volker Armin
2006-07-21  0:27   ` Richard Fish
2006-07-21  0:57     ` [gentoo-user] grub James
2006-07-21  3:02       ` Richard Fish
2006-07-21  7:59         ` Adrian Frith
2006-07-21  8:44       ` Neil Bothwick
2006-07-21 16:50         ` James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox