Grub update menu.lst faulty new version out

Asked by jeroen

In my current installation 7.10 grub-update corrupts my menu.lst.
Probably because it misinterprets my fstab.
it inserts the text
# kopt=root=UUID=2ef4eaf5-6442-4012-aabd-f257301399d7 ro
in menu.lst
it should be something like
# kopt=root=/dev/sdb1
I can manually change it but update-grub changes it back to the wrong text.

from my fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=2ef4eaf5-6442-4012-aabd-f257301399d7 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
UUID=07D6-0B19 /media/sda1 vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/sda2
UUID=1EEC142AEC13FAAB /media/sda2 ntfs defaults,umask=007,gid=46 0 1
/dev/sda3 /media/sda3 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/sdb3 /media/spare vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/sdb2
UUID=cdcf6f2b-2926-4191-adcd-5d84ea20b770 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

I believe the new grub package 0.97-33 should fix this problem
synaptic shows the latest version of grub is 0.97-29
can anyone make the new package available to fix this problem ?
Or say if that could fix the problem ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
jeroen
Solved:
Last query:
Last reply:
Revision history for this message
jeroen (jjkeizer) said :
#1

Debian Bug report logs - #460177
update-grub updates menu.lst with incorrect boot device

Revision history for this message
rojanu (rojanu) said :
#2

Actualy update-grub is using the UUID of the disk rather than /dev/sdb1
I don't see any problems with that it should work just as well

/dev/sdb1 is same thing as UUID=2ef4eaf5-6442-4012-aabd-f257301399d7

Revision history for this message
jeroen (jjkeizer) said :
#3

I agree since yesterday I discovered the UUID was not the problem. The parameter groot in menu.lst was not correctly assumed by update-grub. once I corrected it in the menu.lst the message:

"Cannot determine root device. Assuming /dev/hda1"

remains but grub installed fine now.

I still think update-grub may need some improvement but not so critical.

Greetings

Revision history for this message
rojanu (rojanu) said :
#4

Grub actually does not use SDA it maps SDA to HDA and uses HDA

Revision history for this message
laksdjfaasdf (laksdjfaasdf) said :
#5

I have a big problem with update-grub in Hardy with current updates.

Have a look at my menu.lst which I posted in another bug report:

https://bugs.launchpad.net/ubuntu/+source/grub/+bug/202009/comments/14

I better should have posted it here directly...