Skip to contentSkip to conversation

grub2: After current update update-grub messes up device names, making the system unbootable.

DISCUSSION Robert Millan 2 participants 6 messages May 8, 2007 – May 10, 2007 7 messages not in the archive

lore
Share & tools
lore
#3 lore raw
In reply to a message not in the archive
Quoted 1 line · Szántó Dániel

Root partition is /dev/md0.

Ah, you should have mentioned that you're using software RAID or the likes.

RAID is supported but it is not too mature. Please can you run "grub-probe -v -t device /boot/grub" and send the output?

I'm also forwarding this to upstream mailing list. Keep them in CC.

GRUB maintainers: Szántó got /dev/sda1 instead of /dev/md0 when running grub-probe -t device.

Quoted 3 lines

For clarification I have attached the original and the updated /boot/grub/grub.cfg, with comments cut away, as well as /etc/fstab and /etc/mtab

/etc/fstab and /etc/mtab are not used now, only grub-probe.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#5 lore raw
In reply to a message not in the archive
Quoted 10 lines · Szántó Dániel
Quoted 6 lines · Robert Millan
Quoted 1 line · Szántó Dániel

Root partition is /dev/md0.

Ah, you should have mentioned that you're using software RAID or the likes.

RAID is supported but it is not too mature. Please can you run "grub-probe -v -t device /boot/grub" and send the output?

Sorry for not pointing out RAID, I'm not yet an expert at reporting bugs :) Anyway, I have attached the result.

Actualy you forgot it ;-)

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#6 lore raw
In reply to Robert Millan
Quoted 5 lines · Robert Millan
Quoted 1 line · Szántó Dániel

Root partition is /dev/md0.

Ah, you should have mentioned that you're using software RAID or the likes.

Quoted 7 lines

RAID is supported but it is not too mature. Please can you run "grub-probe -v -t device /boot/grub" and send the output?

I'm also forwarding this to upstream mailing list. Keep them in CC.

GRUB maintainers: Szántó got /dev/sda1 instead of /dev/md0 when running grub-probe -t device.

Is it really mounted correctly? What is the content of /proc/mount?

Okuji

#8 lore raw
In reply to a message not in the archive

retitle 422459 update-grub generates broken grub.cfg when /boot is a separate partition thanks

Quoted 10 lines · Szántó Dániel
Quoted 4 lines

Is it really mounted correctly? What is the content of /proc/mount?

Okuji

Here it is:

ananasz:~# cat /proc/mounts 
[...]
/dev/sda1 /boot ext3 rw,data=ordered 0 0

Here it is. /dev/sda1 _is_ the right device, but your grub.cfg is still wrong.

What do you see during boot?

Can you try "ln -s . /boot/boot" and confirm this works around the problem?

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#10 lore raw

Re: grub2: update-grub generates broken grub.cfg when /boot is a separate partition

In reply to a message not in the archive
Quoted 11 lines · Szántó Dániel
Quoted 7 lines · Robert Millan
Quoted 3 lines
ananasz:~# cat /proc/mounts 
[...]
/dev/sda1 /boot ext3 rw,data=ordered 0 0

Here it is. /dev/sda1 _is_ the right device, but your grub.cfg is still wrong.

What do you see during boot?

What details should I give? The output of dmesg with the correct grub.cfg or the error message I get when trying to boot with the wrong one?

The error message.

Quoted 4 lines
Quoted 1 line

Can you try "ln -s . /boot/boot" and confirm this works around the problem?

Nothing changes, after symlinking /boot to /boot/boot update-grub generates exactly the same grub.cfg.

Does it boot now?

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#12 lore raw

Re: grub2: update-grub generates broken grub.cfg when /boot is a separate partition

In reply to a message not in the archive
Quoted 4 lines · Szántó Dániel
Quoted 3 lines · Robert Millan
Quoted 1 line · Szántó Dániel

On Wed, May 09, 2007 at 09:15:48AM +0200, Robert Millan wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Can you try "ln -s . /boot/boot" and confirm this works around the problem?

Nothing changes, after symlinking /boot to /boot/boot update-grub generates exactly the same grub.cfg.

Does it boot now?

No,

Ah. Well, I spotted a problem with update-grub not generating relative paths when /boot is a separate partition.

But it seems you hit other bugs related with RAID. I'm afraid I can't comment on these.

Quoted 16 lines

It gives the same error message:
Booting "Debian GNU/Linux, linux 2.6.20-1-amd64"

error: you need to load the kernel first

Press any key to continue...

If I edit the grub command line and settings to set root to hd0,0 and the linux kernel paramter to root=/dev/md0, I get the same error if the cursor is below the last line. If the cursor is at the end of the last line I get
error: Out of memory
instead.
I
DTR

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.