Mailinglist Archive: opensuse (3506 mails)
| < Previous | Next > |
Re: [SLE] Grub loading Stage2 read error
- From: rmyster <rmyster@xxxxxxxxx>
- Date: Sun, 17 Sep 2006 15:25:39 +0000 (UTC)
- Message-id: <1158506603.23610.43.camel@xxxxxxxxx>
On Sun, 2006-09-17 at 10:42 -0400, Paul Abrahams wrote:
> On Sunday 17 September 2006 10:08 am, rmyster wrote:
> > On Sat, 2006-09-16 at 23:38 -0400, Paul Abrahams wrote:
> > > When I execute the root / kernel /initrd commands you listed from the
> > > grub command line, I get that Error 16.
> >
> > Get to a grub prompt (grub>)and let us know the output of the following:
>
> I've shortened the output to just the relevant parts (I hope) since I had to
> transcribe it manually.
>
> >
> > find /boot/grub/stage1
>
> (hd0,6)
> (hd0,7)
> >
> > find boot/grub/stage2
>
> (hd0,6)
> (hd0,7)
>
> > find /grub/stage1
>
> (hd0,7)
>
> > find /grub/stage2
>
> (hd0,7)
> >
It looks like you installed grub in two locations. Is it possible you
installed it to both the /boot and root partitions? In other words, did
you install grub multiple times to multiple locations?
> > geometry (hd0)
>
> Partition 0 Filesystem type unknown, type 0x7
> . . .
> Partition 6 Reiserfs, type 0x83
> Partition 7 Ext2fs, type 0x83
> ...
>
> > geometry (hd1)
>
> Selected disk does not exist [it exists on Carl's machine but not on mine]
> >
> > Then these in successive order:
> >
> > root (hd0,0)
>
> filesystem type unknown, partition type 0x7
> >
Ok, this was an error on my part, I should have said
root (hd0,7), not (hd0,0)
> > kernel /vmlinuz
> > (followed by the tab key, not enter to see all possible options)
>
> Actually I need /vmlinuz(<tab> here. The result is then the same as from
> geometry(hd0)
>
> >
> > kernel /boot/vmlinuz
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
> >
> > initrd /initrd
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
> > initrd /boot/initrd
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
Try it again with:
root (hd0,7)
kernel /vmlinuz (followed by tab key)
kernel /boot/vmlinuz (followed by tab key)
initrd /initrd (followed by tab key)
initrd /boot/initrd (followed by tab key)
This or the one below should produce results and if you complete the
kernel command with one of the entries showed with the tab complete
option. It should give output resembling(but not necessarily identical)
to the two lines below if you type in the correct name followed by
enter:
grub> kernel /vmlinuz-2.6.16.21-0.13-default
[Linux-bzImage, setup=0x1e00, size=0x12ba91]
just guessing, if grub was installed to the actual boot partition, your
path will be something like above and if it ended up on the root
partition, it will look more like /boot/vmlinuz......
I don't think you can check the initrd image in a similar manner to
above on a booted system due to memory issues but the initrd entry
should match the kernel image.
If you get to a grub prompt at startup and point to the correct path and
image, you should be able to boot the system
grub> root (hd0,7) [enter]
grub> kernel /vmlinuz-path root=/dev/hda7 resume=... vga=... [enter]
grub> initrd /initrd-match to above [enter]
grub> boot
If it boots without errors, then these are the entries needed in your
menu.lst file. If you get no boot or a kernel panic message, there is a
problem with the boot image or path.
alternatively
root (hd0,6)
kernel /vmlinuz (followed by tab key)
kernel /boot/vmlinuz (followed by tab key)
initrd /initrd (followed by tab key)
initrd /boot/initrd (followed by tab key)
> On Sunday 17 September 2006 10:08 am, rmyster wrote:
> > On Sat, 2006-09-16 at 23:38 -0400, Paul Abrahams wrote:
> > > When I execute the root / kernel /initrd commands you listed from the
> > > grub command line, I get that Error 16.
> >
> > Get to a grub prompt (grub>)and let us know the output of the following:
>
> I've shortened the output to just the relevant parts (I hope) since I had to
> transcribe it manually.
>
> >
> > find /boot/grub/stage1
>
> (hd0,6)
> (hd0,7)
> >
> > find boot/grub/stage2
>
> (hd0,6)
> (hd0,7)
>
> > find /grub/stage1
>
> (hd0,7)
>
> > find /grub/stage2
>
> (hd0,7)
> >
It looks like you installed grub in two locations. Is it possible you
installed it to both the /boot and root partitions? In other words, did
you install grub multiple times to multiple locations?
> > geometry (hd0)
>
> Partition 0 Filesystem type unknown, type 0x7
> . . .
> Partition 6 Reiserfs, type 0x83
> Partition 7 Ext2fs, type 0x83
> ...
>
> > geometry (hd1)
>
> Selected disk does not exist [it exists on Carl's machine but not on mine]
> >
> > Then these in successive order:
> >
> > root (hd0,0)
>
> filesystem type unknown, partition type 0x7
> >
Ok, this was an error on my part, I should have said
root (hd0,7), not (hd0,0)
> > kernel /vmlinuz
> > (followed by the tab key, not enter to see all possible options)
>
> Actually I need /vmlinuz(<tab> here. The result is then the same as from
> geometry(hd0)
>
> >
> > kernel /boot/vmlinuz
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
> >
> > initrd /initrd
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
> > initrd /boot/initrd
> > (followed by the tab key, not enter to see all possible options)
>
> same as geometry(hd0)
Try it again with:
root (hd0,7)
kernel /vmlinuz (followed by tab key)
kernel /boot/vmlinuz (followed by tab key)
initrd /initrd (followed by tab key)
initrd /boot/initrd (followed by tab key)
This or the one below should produce results and if you complete the
kernel command with one of the entries showed with the tab complete
option. It should give output resembling(but not necessarily identical)
to the two lines below if you type in the correct name followed by
enter:
grub> kernel /vmlinuz-2.6.16.21-0.13-default
[Linux-bzImage, setup=0x1e00, size=0x12ba91]
just guessing, if grub was installed to the actual boot partition, your
path will be something like above and if it ended up on the root
partition, it will look more like /boot/vmlinuz......
I don't think you can check the initrd image in a similar manner to
above on a booted system due to memory issues but the initrd entry
should match the kernel image.
If you get to a grub prompt at startup and point to the correct path and
image, you should be able to boot the system
grub> root (hd0,7) [enter]
grub> kernel /vmlinuz-path root=/dev/hda7 resume=... vga=... [enter]
grub> initrd /initrd-match to above [enter]
grub> boot
If it boots without errors, then these are the entries needed in your
menu.lst file. If you get no boot or a kernel panic message, there is a
problem with the boot image or path.
alternatively
root (hd0,6)
kernel /vmlinuz (followed by tab key)
kernel /boot/vmlinuz (followed by tab key)
initrd /initrd (followed by tab key)
initrd /boot/initrd (followed by tab key)
| < Previous | Next > |