menu.lst is overwritten
Bug #136621 reported by
Andrew Frank
This bug report is a duplicate of:
Bug #21412: Default update-grub behaviour is not intuitive with respect to user modifications.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
New
|
Undecided
|
TJ |
Bug Description
updating (especially automatic updates) seem to overwrite menu.lst completely. this is inacceptable if the menu.lst ist edited (for example to allow to different ubuntu on the same hard disk in different partitions).
today (1.9.07) the automatic update for 7.04 (feisty) required a restart. at this time the menu item for 7.04 (which goes to sda5 in my case) was overwritten with the UUID for the sda7, where 7.10 resides). it then tried to start the 7.10 code with the 7.04 related kernel (2.6.20-16, which i think was updated).
the update for the new 7.04 kernel should have only edited the related entry.
--
general suggestion : publish a method how two ubuntu on one disk coexist!
To post a comment you must log in.
As documented, grub-update will re-write everything between:
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
and
### END DEBIAN AUTOMAGIC KERNELS LIST
Any boot menu entries you want to retain should be placed outside this block, at the end of the file.
Example:
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic 2.6.20- 16-generic root=UUID= f8f56c60- 4507-47ff- beaf-bb87352f31 28 ro vga=791 quiet splash img-2.6. 20-16-generic
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode) 2.6.20- 16-generic root=UUID= f8f56c60- 4507-47ff- beaf-bb87352f31 28 ro single img-2.6. 20-16-generic
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
title Ubuntu, kernel 2.6.20- 15-generic- x32 2.6.20- 15-generic- x32 root=UUID= f8f56c60- 4507-47ff- beaf-bb87352f31 28 ro vga=791 quiet splash img-2.6. 20-15-generic- x32
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.20- 15-generic- x32 (recovery mode) 2.6.20- 15-generic- x32 root=UUID= f8f56c60- 4507-47ff- beaf-bb87352f31 28 ro single img-2.6. 20-15-generic- x32
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
title Ubuntu, memtest86+
root (hd0,4)
kernel /memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
title Ubuntu Gutsy Tribe-5, kernel 2.6.22-10-generic 2.6.22- 10-generic root=UUID= 9bab8491- 9029-4c78- a6f4-cd953cd7d9 b4 ro quiet splash img-2.6. 22-10-generic
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
quiet
savedefault
title Ubuntu Gutsy Tribe-5, kernel 2.6.22-10-generic (recovery mode) 2.6.22- 10-generic root=UUID= 9bab8491- 9029-4c78- a6f4-cd953cd7d9 b4 ro single img-2.6. 22-10-generic
root (hd0,4)
kernel /vmlinuz-
initrd /initrd.
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Sony Windows Recovery Tool
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista Home Premium
root (hd0,1)
savedefault
makeactive
chainloader +1