[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GRUB no long gives menu on boot



On Fri, Aug 3, 2012 at 4:48 PM, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
> On Fri, Aug 3, 2012 at 11:24 AM, Tom H <tomh0665@gmail.com> wrote:
>> On Thu, Aug 2, 2012 at 9:15 PM, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
>>>
>>> I have the following setup which worked well after performing a squeeze install:
>>>
>>> /boot -> Software RAID5
>>> / -> LVM on top of Software RAID5
>>>
>>> I lost a disk of my RAID array a few months ago and ever since
>>> replacing it and rebuilding the arrays, I no longer get a menu of
>>> kernels to boot from in GRUB. Instead I get a prompt.
>>>
>>> I have tried reinstalling GRUB from a Squeeze rescue flash drive, but
>>> there is no change.
>>
>> How did you uninstall grub?
>
> I never uninstalled grub.
>
> There was/is a bug in grub that it cannot read a degraded RAID array.
> That was biting me at one point, but I replaced the drive and rebuilt
> the array.
>
>> What's the output of
>> http://sourceforge.net/projects/bootinfoscript/files/bootinfoscript/



>  => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
>     34 of the same hard drive for core.img. core.img is at this location and
>     looks for (vg_01_ziggurat-root)/boot/grub on this drive.
>  => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
>     34 of the same hard drive for core.img. core.img is at this location and
>     looks for (vg_01_ziggurat-root)/boot/grub on this drive.
>  => No boot loader is installed in the MBR of /dev/sdc.
>  => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdd and looks at sector
>     34 of the same hard drive for core.img. core.img is at this location and
>     looks for (vg_01_ziggurat-root)/boot/grub on this drive.

1) You should install grub to /dev/sdc with either grub-install or grub-setup.

2) I'm surprised at the "looks for (vg_01_ziggurat-root)/boot/grub". I
would've expected a "looks for looks for (md/0/grub)".

How are you booting from the grub prompt?

Is it a regular or a rescue grub prompt?

What's the output of "ls" and "set" at the grub prompt?



> menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian
> --class gnu-linux --class gnu --class os {
>         insmod raid
>         insmod raid5rec
>         insmod mdraid
>         insmod part_gpt
>         insmod ext2
>         set root='(md/0)'
>         search --no-floppy --fs-uuid --set 154508d7-d29f-4ab6-8e85-a0365d32c5df
>         linux   /vmlinuz-2.6.32-5-686 root=/dev/mapper/vg_01_ziggurat-root ro  quiet
>         initrd  /initrd.img-2.6.32-5-686
> }

This menuentry looks OK to me.

(Is "/dev/md0" a symlink to "/dev/md/0" or the other way around?)


Reply to: