[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: still no luck with grub
From: |
cr |
Subject: |
Re: still no luck with grub |
Date: |
Sun, 25 Jan 2004 13:17:26 +1300 |
On Sun, 25 Jan 2004 11:16, Daniel Senderowicz wrote:
> >kernel (hd0,0)/vmlinuz root=/dev/hdc6
> >^....(1).............^ ^.....(2)....^
> >
> >1) This is telling grub where to find vmlinuz
> >2) Are linux kernel parameters, and are not used by grub at all.
>
> I didn't quite understand the part of root=/dev/hdc6.
With respect, that was possibly not a good example, but it only matters as
far as Linux is concerned, Grub doesn't care.
As a better example I'll take yours:
kernel /vmlinuz-2.4.20-28.9smp ro root=LABEL=/
The *only* bit that Grub cares about is
kernel /vmlinuz-2.4.20-28.9smp
The rest ( ro root=LABEL=/ ) is just parameters it passes to Linux. Grub
doesn't care what that says. Linux does.
(To explain the first example, if you had a system like mine, with several
drives and OS's scattered around, *then* you might get a Grub menu entry like
this:
title Fedora Core 1 on /hdb6
root (hd1,5)
kernel /boot/vmlinuz root=/dev/hdb6 ro
In that case, booting Linux from /hdb6, the 'root (hd1,5)' is a Grub
command that points Grub at the right place, but the 'root=/dev/hdb6' is
just another Linux parameter that Grub passes to Linux, otherwise Linux will
assume it's booting from /hda1 and have a 'kernel panic' when it can't find
itself).
> I'm getting to boot from the harddisk by simply typing:
>
> grub> configfile (hd0,0)/grub/grub.conf
>
> After that I get the grub screen with the menu which will proceed
> as it is supposed to.
>
> So if the "configfile" command does the job, how come is not being
> done automatically? Can you please shed some light on this? Again,
> many thanks for your help.
>
> Regards,
>
> Dan
I assume from your post, that when you start your PC, you end up in Grub but
it won't go any further.
I think this means that Grub is looking in the wrong place for a grub.conf
or menu.lst file.
(My system doesn't seem to have a grub.conf, but all its files including
menu.lst live in /hda1/boot/grub. It happens to be a FAT16 directory
with Win98 in it, not that that makes any difference to Grub, but in DOS
terms that's C:\boot\grub)
I suggest the following with some caution, because I'm not a Grub expert, but
I find when I shuffle drives around the following works. Put grub.conf or
menu.lst in the same dircetory as the other Grub files. Then (I'm quoting
from the Grub manual):
boot from a Grub floppy (or in your case, the hard drive)
> root (hd0,0)
> find /boot/grub/stage1 (or wherever your Grub files are)
> setup (hd0) to reinstall GRUB in the MBR
I think this should point Grub at the right location to find your grub.conf
file. I'd make a Grub boot floppy before trying this though, just in case
something goes wrong.
cr
> >Daniel Senderowicz wrote:
> >> OK, I did a bit of progress here. I manage to boot the system
> >> with the kernel of the hard disk by simply typing the same
> >> commands written in the "grub.conf" file, that is:
> >>
> >> grub> root (hd0,0)
> >> grub> kernel /vmlinuz-2.4.20-28.9smp ro root=LABEL=/
> >> grub> initrd /initrd-2.4.20-28.9smp.img
> >>
> >> But my question still remains: why doesn't it do it
> >> automatically?
> >>
> >> Dan
> >
> >It is not working because you are using the syntax wrongs.
> >
> >root (hd0,0) <- This is telling grub the device and partition that the
> >vmlinuz is stored on. This is "NOT your linux root partition". It
> >depends which partition the /boot directory is stored. vmlinuz should
> >really be in the /boot directory.
> >grub then finds the grub config by looking in (hd0,0)/grub.
> >So, if you don't have a root partition, and the /boot directory is on
> >the root partition, the grub root command should be: -
> >root (hd0,0)/boot
> >
> >kernel (hd0,0)/vmlinuz root=/dev/hdc6
> >^....(1).............^ ^.....(2)....^
> >
> >1) This is telling grub where to find vmlinuz
> >2) Are linux kernel parameters, and are not used by grub at all.
> >
> >Cheers
> >James
> >
> >
> >_______________________________________________
> >Bug-grub mailing list
> >address@hidden
> >http://mail.gnu.org/mailman/listinfo/bug-grub
>
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-grub
- Re: still no luck with grub, (continued)
- Re: still no luck with grub, Norman B. Robinson, 2004/01/06
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/06
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/22
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/22
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/23
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/23
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/24
- Re: still no luck with grub,
cr <=
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/31
- Re: still no luck with grub, Daniel Senderowicz, 2004/01/31