Bug#719283: grub-common: grub removed windows xp menu entries after I did update-grub

shirish शिरीष shirishag75 at gmail.com
Sat Aug 10 02:47:42 UTC 2013


Package: grub-common
Version: 2.00-15
Severity: important

Dear Maintainer,
I had installed Debian wheezy 7.1 freshly on this machine couple of
weeks ago. I updated and upgraded to Debian testing about one week
before. Then I had started with trying to change the background using
the various images in grub-splashimages. During one of those
'update-grub' the menu entry for Windows XP also got removed. I do not
know the reason for this. At first I thought maybe it was a user error
but I know I hadn't touched anything regarding the boot part.

The only things I had changed were in /etc/default/grub :-

GRUB_TIMEOUT=50000 (actually wanted to make it into infinity but don't know how)
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet" (No IPv6 at my end
and net connectivity is more stabler due to this )
GRUB_GFXMODE=800x600x32 (the default is 640x320 or something like that
and not pretty)
GRUB_BACKGROUND=/usr/share/images/grub/Apollo_17_The_Last_Moon_Shot_Edit1.tga
(or any one of the images given with the grub2-splashimages debian
package)

OR

GRUB_THEME="/usr/share/grub/themes/starfield/theme.txt (the only theme
provided by debian atm).

This is all I was playing with.

Later I also upgraded to grub 2.00-15 thinking perhaps the error will
not be there but still was stuck in the same thing.

I asked people in Debian forums and was fortunate enough to find a
solution to my problems. Please see
http://forums.debian.net/viewtopic.php?f=10&t=106335 for the whole
thread.

Looking forward to understand as to what could have triggered the
removal of Windows XP menu entry. Please lemme know if any info. is
needed.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/87d82d2b-dc1a-4f01-8ba4-c68290598b23 / ext4
rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda8 /data ext4 rw,relatime,data=ordered 0 0
/dev/sda7 /home ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST1000DM003-9YN162_S1DC5K41
*********************** END /boot/grub/device.map

*********************** BEGIN /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
  load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
else
  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=800x600x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_IN
  insmod gettext
fi
terminal_output gfxterm
set timeout=50000
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
else
  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-simple-87d82d2b-dc1a-4f01-8ba4-c68290598b23' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
	else
	  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
	fi
	echo	'Loading Linux 3.10-2-amd64 ...'
	linux	/boot/vmlinuz-3.10-2-amd64
root=UUID=87d82d2b-dc1a-4f01-8ba4-c68290598b23 ro  ipv6.disable=1
quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.10-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option
'gnulinux-advanced-87d82d2b-dc1a-4f01-8ba4-c68290598b23' {
	menuentry 'Debian GNU/Linux, with Linux 3.10-2-amd64' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.10-2-amd64-advanced-87d82d2b-dc1a-4f01-8ba4-c68290598b23'
{
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
		else
		  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
		fi
		echo	'Loading Linux 3.10-2-amd64 ...'
		linux	/boot/vmlinuz-3.10-2-amd64
root=UUID=87d82d2b-dc1a-4f01-8ba4-c68290598b23 ro  ipv6.disable=1
quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.10-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.10-2-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-3.10-2-amd64-recovery-87d82d2b-dc1a-4f01-8ba4-c68290598b23'
{
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
		else
		  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
		fi
		echo	'Loading Linux 3.10-2-amd64 ...'
		linux	/boot/vmlinuz-3.10-2-amd64
root=UUID=87d82d2b-dc1a-4f01-8ba4-c68290598b23 ro single
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.10-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.10-1-amd64' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.10-1-amd64-advanced-87d82d2b-dc1a-4f01-8ba4-c68290598b23'
{
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
		else
		  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
		fi
		echo	'Loading Linux 3.10-1-amd64 ...'
		linux	/boot/vmlinuz-3.10-1-amd64
root=UUID=87d82d2b-dc1a-4f01-8ba4-c68290598b23 ro  ipv6.disable=1
quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.10-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.10-1-amd64 (recovery mode)'
--class debian --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-3.10-1-amd64-recovery-87d82d2b-dc1a-4f01-8ba4-c68290598b23'
{
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6
--hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6
--hint='hd0,msdos6'  87d82d2b-dc1a-4f01-8ba4-c68290598b23
		else
		  search --no-floppy --fs-uuid --set=root 87d82d2b-dc1a-4f01-8ba4-c68290598b23
		fi
		echo	'Loading Linux 3.10-1-amd64 ...'
		linux	/boot/vmlinuz-3.10-1-amd64
root=UUID=87d82d2b-dc1a-4f01-8ba4-c68290598b23 ro single
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.10-1-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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.
#
#
#From http://forums.debian.net/viewtopic.php?f=10&t=106335&p=508083#p508083
menuentry "Windows XP" {
insmod ntfs
insmod chain
set root=(hd0,msdos1)
chainloader +1
}

menuentry "chainloading to ntldr" {
search -f --set /ntldr
ntldr /ntldr
}### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Aug 10 04:13
ata-HL-DT-ST_DVDRAM_GH24NS95_KASD5942243 -> ../../sr0
lrwxrwxrwx 1 root root  9 Aug 10 04:13 ata-ST1000DM003-9YN162_S1DC5K41
-> ../../sda
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Aug 10 04:13
ata-ST1000DM003-9YN162_S1DC5K41-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Aug 10 04:13
scsi-SATA_ST1000DM003-9YN_S1DC5K41-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Aug 10 04:13 wwn-0x5000c50061a41fe6 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part1 ->
../../sda1
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part2 ->
../../sda2
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part5 ->
../../sda5
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part6 ->
../../sda6
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part7 ->
../../sda7
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part8 ->
../../sda8
lrwxrwxrwx 1 root root 10 Aug 10 04:13 wwn-0x5000c50061a41fe6-part9 ->
../../sda9
lrwxrwxrwx 1 root root  9 Aug 10 04:13 wwn-0x5001480000000000 -> ../../sr0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Aug 10 04:13
27edd738-b3d3-47c8-88f3-db4e75ff7b72 -> ../../sda9
lrwxrwxrwx 1 root root 10 Aug 10 04:13
6786c6f7-825c-4e08-bcc6-665a116caa75 -> ../../sda8
lrwxrwxrwx 1 root root 10 Aug 10 04:13
87d82d2b-dc1a-4f01-8ba4-c68290598b23 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 10 04:13 A218874F18872181 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 10 04:13 E044A65244A62B6C -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 10 04:13
d53edcea-f87b-403d-9029-af1bd3a1ded4 -> ../../sda7
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (600, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  gettext-base        0.18.3-1
ii  libc6               2.17-7
ii  libdevmapper1.02.1  2:1.02.74-7
ii  libfreetype6        2.4.9-1.1
ii  libfuse2            2.9.2-4
ii  liblzma5            5.1.1alpha+20120614-2
ii  zlib1g              1:1.2.8.dfsg-1

Versions of packages grub-common recommends:
ii  os-prober  1.63

Versions of packages grub-common suggests:
ii  console-setup  1.94
ii  desktop-base   7.0.3
pn  grub-emu       <none>
pn  multiboot-doc  <none>
pn  xorriso        1.2.2-2

-- Configuration Files:
/etc/grub.d/40_custom changed:
exec tail -n +3 $0
menuentry "Windows XP" {
insmod ntfs
insmod chain
set root=(hd0,msdos1)
chainloader +1
}
menuentry "chainloading to ntldr" {
search -f --set /ntldr
ntldr /ntldr
}

-- no debconf information
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



More information about the Pkg-grub-devel mailing list