Bug#702731: /usr/lib/grub/i386-pc/grub-install: grub-install always tries to write to sda

Rolf Heinrichs rolf.o1.heinrichs at gmx.net
Sun Mar 10 20:33:03 UTC 2013


Package: grub-pc-bin
Version: 1.99-27
Severity: important
File: /usr/lib/grub/i386-pc/grub-install
Tags: d-i

Dear Maintainer,

Installing Wheezy RC1 x86 on ASUS DR-TLS/Dual PIII with SCSI disks, an USB 
stick and a SATA HD: the installer detected the USB key as sda, the SATA HD 
as sdb and the first SCSI disk as system disk as sdc. / and /boot and the 
basic system were installed ok on sdc. 

install-grub tried to write to the USB stick and left the PC without usable 
system. Did not ask for the disk to write to. 

Repeated installation with USB key and SATA HD, the expert install did not 
allow for a shortcut. That fixed the problem. 

install-grub should ask for the disk where to install.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874 / ext4 rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0
/dev/sdc2 /boot ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/sdd1 /home ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/sdb1 /media/RH087 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/usb-SanDisk_Cruzer_Blade_20054858820A2270C808-0:0
(hd1)	/dev/disk/by-id/ata-Hitachi_HDS721010CLA332_JP2911HD00WSMC
(hd2)	/dev/disk/by-id/scsi-SSEAGATE_ST373454LW_3KP48TJN
(hd3)	/dev/disk/by-id/scsi-SFUJITSU_MAS3184NC_A0L0P34009N0
(hd4)	/dev/disk/by-id/scsi-1HITACHI_HUS103073FL3600_V3VB1SBA
(hd5)	/dev/disk/by-id/scsi-1SEAGATE_ST3146855LW_3LN3D13T
*********************** 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 [ "${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 {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos5)'
search --no-floppy --fs-uuid --set=root 1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd2,msdos2)'
  search --no-floppy --fs-uuid --set=root e194760e-405f-4b18-8042-d4130ebf656b
  set locale_dir=($root)/grub/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd2,msdos5)'
search --no-floppy --fs-uuid --set=root 1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874
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, mit Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd2,msdos2)'
	search --no-floppy --fs-uuid --set=root e194760e-405f-4b18-8042-d4130ebf656b
	echo	'Linux 3.2.0-4-686-pae wird geladen …'
	linux	/vmlinuz-3.2.0-4-686-pae root=UUID=1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874 ro  quiet
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, mit Linux 3.2.0-4-686-pae (Wiederherstellungsmodus)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd2,msdos2)'
	search --no-floppy --fs-uuid --set=root e194760e-405f-4b18-8042-d4130ebf656b
	echo	'Linux 3.2.0-4-686-pae wird geladen …'
	linux	/vmlinuz-3.2.0-4-686-pae root=UUID=1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874 ro single 
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/initrd.img-3.2.0-4-686-pae
}
### 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 ###
menuentry "Microsoft Windows 2000 Professional (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd2,msdos1)'
	search --no-floppy --fs-uuid --set=root FE8CBE3A8CBDED71
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### 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 ###
*********************** 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 Mar 10 19:37 ata-Hitachi_HDS721010CLA332_JP2911HD00WSMC -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 10 19:37 ata-Hitachi_HDS721010CLA332_JP2911HD00WSMC-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Mar 10 20:37 ata-PLEXTOR_DVD-ROM_PX-130A -> ../../sr0
lrwxrwxrwx 1 root root  9 Mar 10 19:37 scsi-1HITACHI_HUS103073FL3600_V3VB1SBA -> ../../sde
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-1HITACHI_HUS103073FL3600_V3VB1SBA-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 Mar 10 19:37 scsi-1SEAGATE_ST3146855LW_3LN3D13T -> ../../sdf
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-1SEAGATE_ST3146855LW_3LN3D13T-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-1SEAGATE_ST3146855LW_3LN3D13T-part5 -> ../../sdf5
lrwxrwxrwx 1 root root  9 Mar 10 19:37 scsi-SATA_Hitachi_HDS7210_JP2911HD00WSMC -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-SATA_Hitachi_HDS7210_JP2911HD00WSMC-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Mar 10 19:37 scsi-SFUJITSU_MAS3184NC_A0L0P34009N0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 10 19:38 scsi-SFUJITSU_MAS3184NC_A0L0P34009N0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 Mar 10 19:37 scsi-SSEAGATE_ST373454LW_3KP48TJN -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-SSEAGATE_ST373454LW_3KP48TJN-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 10 19:38 scsi-SSEAGATE_ST373454LW_3KP48TJN-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-SSEAGATE_ST373454LW_3KP48TJN-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-SSEAGATE_ST373454LW_3KP48TJN-part5 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Mar 10 19:37 scsi-SSEAGATE_ST373454LW_3KP48TJN-part6 -> ../../sdc6
lrwxrwxrwx 1 root root  9 Mar 10 19:37 usb-SanDisk_Cruzer_Blade_20054858820A2270C808-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 10 19:37 usb-SanDisk_Cruzer_Blade_20054858820A2270C808-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Mar 10 19:37 wwn-0x5000cca373c06837 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 10 19:37 wwn-0x5000cca373c06837-part1 -> ../../sda1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Mar 10 19:38 13d7274c-de27-4e3c-9fd5-f255b417f5d0 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Mar 10 19:37 1b3ecaf7-b33d-43c1-8b47-ed91a3cb9874 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Mar 10 19:37 52F1-A9EF -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 10 19:37 788062FE8062C1EC -> ../../sdf5
lrwxrwxrwx 1 root root 10 Mar 10 19:37 C860506A6050616C -> ../../sde1
lrwxrwxrwx 1 root root 10 Mar 10 19:37 FE8CBE3A8CBDED71 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 10 19:37 a9fc37fa-b44c-49ee-a891-8665116752ec -> ../../sdc6
lrwxrwxrwx 1 root root 10 Mar 10 19:38 e194760e-405f-4b18-8042-d4130ebf656b -> ../../sdc2
lrwxrwxrwx 1 root root 10 Mar 10 19:37 e57cbf43-7976-4e1e-9e3d-84d70610a107 -> ../../sda1
*********************** END /dev/disk/by-uuid

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

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc-bin depends on:
ii  grub-common         1.99-27
ii  libc6               2.13-38
ii  libdevmapper1.02.1  2:1.02.74-6

grub-pc-bin recommends no packages.

Versions of packages grub-pc-bin suggests:
pn  desktop-base  <none>

-- no debconf information



More information about the Pkg-grub-devel mailing list