[Bug 1118358] Re: Ubuntu Grub2 does not pick up Fedora volumes
Steve Langasek
steve.langasek at canonical.com
Sat Feb 9 18:43:27 UTC 2013
** Package changed: grub (Ubuntu) => grub2 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1118358
Title:
Ubuntu Grub2 does not pick up Fedora volumes
Status in “grub2” package in Ubuntu:
New
Bug description:
Ubuntu 12's Grub2 does not pick up Fedora 17 volumes. Fedora is more
cordial - it includes Ubunutu. Other volmes (Linux Mint and Windows
Vista) are found.
I was trying to maintain a configuration where Fedora managed Grub2.
It appears the last Ubuntu kernel update snuck in an update-grub2,
which lost the menu entry.
Not being a Grub expert, this becomes painful.
$ uname -a
Linux ubuntu-12-x64 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcffc1206
Device Boot Start End Blocks Id System
/dev/sda1 63 80324 40131 de Dell Utility
/dev/sda2 * 81920 215121919 107520000 7 HPFS/NTFS/exFAT
/dev/sda3 215123966 625141759 205008897 5 Extended
/dev/sda5 215123968 297043967 40960000 83 Linux
/dev/sda6 378968064 460888063 40960000 83 Linux
/dev/sda7 460890112 542810111 40960000 83 Linux
/dev/sda8 608364544 625141759 8388608 82 Linux swap / Solaris
/dev/sda9 297046016 362573823 32763904 83 Linux
$ sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 39.2M 0 part
├─sda2 8:2 0 102.6G 0 part
├─sda3 8:3 0 1K 0 part
├─sda5 8:5 0 39.1G 0 part /
├─sda6 8:6 0 39.1G 0 part
├─sda7 8:7 0 39.1G 0 part
├─sda8 8:8 0 8G 0 part
└─sda9 8:9 0 31.3G 0 part
sr0 11:0 1 1024M 0 rom
$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
linux /boot/vmlinuz-3.2.0-37-generic root=UUID=22e0ebcc-5de0-4e05-b4cf-f07829153d55 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-37-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
echo 'Loading Linux 3.2.0-37-generic ...'
linux /boot/vmlinuz-3.2.0-37-generic root=UUID=22e0ebcc-5de0-4e05-b4cf-f07829153d55 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-37-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 22e0ebcc-5de0-4e05-b4cf-f07829153d55
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 50D8DDE1D8DDC57E
chainloader +1
}
menuentry "Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda7) (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 8cd55e1a-4617-40cf-8ee8-330881f51edb
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8cd55e1a-4617-40cf-8ee8-330881f51edb ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Linux Mint 12 64-bit, 3.0.0-12-generic (/dev/sda7) -- recovery mode (on /dev/sda6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 8cd55e1a-4617-40cf-8ee8-330881f51edb
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=8cd55e1a-4617-40cf-8ee8-330881f51edb ro recovery nomodeset
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1118358/+subscriptions
More information about the foundations-bugs
mailing list