Bug#514201: grub-pc: update-grub failing only reporting "exiting with value 1" when problems with /boot/grub/device.map

Arthur Marsh arthur.marsh at internode.on.net
Thu Feb 5 06:09:04 UTC 2009


Package: grub-pc
Version: 1.96+20080724-14
Severity: normal


I had an update-grub fail only reporting "exiting with value 1".

I eventually found the problem that /boot/grub/device.map was 
inaccurate, due to having to use different device names as I sometimes 
have usb drives plugged in when booting which can use the /dev/sda name 
like the SCSI disk.

My working /boot/grub/device.map is:

(hd0)   /dev/hda
(hd1)   /dev/disk/by-id/scsi-SIBM_DCAS-34330W_F3T92021

I use the /dev/disk/by-id/* path for the real SCSI disk, and 
/dev/disk/by-label/* path for any usb drives, but others might be using 
/dev/disk/by-uuid/*.

Could someone please fix the update-grub script to better report a 
failure due to problems with /boot/grub/device.map?

Arthur. 

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/026a3f5c-0064-4ae7-869e-519d2cee05e7 / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/hda1 /victoriac vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8 0 0
/dev/sdb1 /scsic vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8 0 0
/dev/hda3 /mirror3 ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/hda7 /victoriad vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8 0 0
/dev/sdb5 /scsid vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8 0 0
/dev/sda1 /mnt/usbdrive vfat rw,nosuid,nodev,noexec,uid=65534,gid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=utf8 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)   /dev/disk/by-id/scsi-SIBM_DCAS-34330W_F3T92021
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=10
terminal console
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.28-1-686" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.28-1-686 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro  
	initrd	/boot/initrd.img-2.6.28-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.28-1-686 (single-user mode)" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.28-1-686 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro single 
	initrd	/boot/initrd.img-2.6.28-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.28" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.28 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro  
	initrd	/boot/initrd.img-2.6.28
}
menuentry "Debian GNU/Linux, linux 2.6.28 (single-user mode)" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.28 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro single 
	initrd	/boot/initrd.img-2.6.28
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.26-1-686 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro  
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (single-user mode)" {
	set root=(hd0,5)
	search --fs-uuid --set 026a3f5c-0064-4ae7-869e-519d2cee05e7
	linux	/boot/vmlinuz-2.6.26-1-686 root=UUID=026a3f5c-0064-4ae7-869e-519d2cee05e7 ro single 
	initrd	/boot/initrd.img-2.6.26-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 95/98/Me (on /dev/hda1)" {
	set root=(hd0,1)
	chainloader +1
}
menuentry "Windows 95/98/Me (on /dev/sdb1)" {
	set root=(hd1,1)
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]   1.5.24           Debian configuration management sy
ii  grub-common             1.96+20080724-14 GRand Unified Bootloader, version 
ii  libc6                   2.7-18           GNU C Library: Shared libraries
ii  liblzo2-2               2.03-1           data compression library
ii  libncurses5             5.7+20090124-1   shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)
ii  os-prober                     1.28       utility to detect other OSes on a 

-- debconf-show failed





More information about the Pkg-grub-devel mailing list