Bug#627587: grub-pc: grub-probe: error: cannot stat `/dev/root'.

Adrian Bunk bunk at stusta.de
Sun May 22 10:02:01 UTC 2011


Package: grub-pc
Version: 1.99-4
Severity: grave

<--  snip  -->

# apt-get install grub-pc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  grub-common grub-pc-bin grub2-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
Recommended packages:
  os-prober
The following NEW packages will be installed:
  grub-pc-bin grub2-common
The following packages will be upgraded:
  grub-common grub-pc
2 upgraded, 2 newly installed, 0 to remove and 468 not upgraded.
Need to get 3,557 kB of archives.
After this operation, 2,273 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.debian.org/debian/ unstable/main grub2-common amd64 1.99-4 [94.1 kB]
Get:2 http://ftp.debian.org/debian/ unstable/main grub-pc-bin amd64 1.99-4 [815 kB]
Get:3 http://ftp.debian.org/debian/ unstable/main grub-pc amd64 1.99-4 [95.0 kB]
Get:4 http://ftp.debian.org/debian/ unstable/main grub-common amd64 1.99-4 [2,553 kB]
Fetched 3,557 kB in 17s (201 kB/s)                                             
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n] 
Preconfiguring packages ...
Selecting previously deselected package grub2-common.
(Reading database ... 254132 files and directories currently installed.)
Unpacking grub2-common (from .../grub2-common_1.99-4_amd64.deb) ...
Replacing files in old package grub-pc ...
Replacing files in old package grub-common ...
Selecting previously deselected package grub-pc-bin.
Unpacking grub-pc-bin (from .../grub-pc-bin_1.99-4_amd64.deb) ...
Replacing files in old package grub-pc ...
Preparing to replace grub-pc 1.98+20100804-14 (using .../grub-pc_1.99-4_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-common 1.98+20100804-14 (using .../grub-common_1.99-4_amd64.deb) ...
Unpacking replacement grub-common ...
Processing triggers for install-info ...
install-info: warning: no info dir entry in `/usr/share/info/latex2rtf.info.gz'
Processing triggers for man-db ...
Setting up grub-common (1.99-4) ...
Installing new version of config file /etc/grub.d/10_linux ...
Installing new version of config file /etc/grub.d/30_os-prober ...
Installing new version of config file /etc/grub.d/00_header ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
Setting up grub2-common (1.99-4) ...
Setting up grub-pc-bin (1.99-4) ...
Setting up grub-pc (1.99-4) ...
Replacing config file /etc/default/grub with new version
grub-probe: error: cannot stat `/dev/root'.
grub-probe: error: cannot stat `/dev/root'.
grub-probe: error: cannot stat `/dev/root'.
/usr/sbin/grub-probe: error: cannot stat `/dev/root'.
/usr/sbin/grub-probe: error: cannot stat `/dev/root'.
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

<--  snip  -->

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/root / ext2 rw,relatime,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** 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='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### 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_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.39' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.39 ...'
	linux	/boot/vmlinuz-2.6.39 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.39 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.39 ...'
	linux	/boot/vmlinuz-2.6.39 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.6' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.6 ...'
	linux	/boot/vmlinuz-2.6.38.6 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.6 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.6 ...'
	linux	/boot/vmlinuz-2.6.38.6 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.4' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.4 ...'
	linux	/boot/vmlinuz-2.6.38.4 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.4 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.4 ...'
	linux	/boot/vmlinuz-2.6.38.4 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.3' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.3 ...'
	linux	/boot/vmlinuz-2.6.38.3 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.3 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.3 ...'
	linux	/boot/vmlinuz-2.6.38.3 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.2' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.2 ...'
	linux	/boot/vmlinuz-2.6.38.2 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38.2 ...'
	linux	/boot/vmlinuz-2.6.38.2 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38 ...'
	linux	/boot/vmlinuz-2.6.38 root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 2.6.38 ...'
	linux	/boot/vmlinuz-2.6.38 root=/dev/sda1 ro single 
}
menuentry 'Debian GNU/Linux, with Linux 0.test' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 0.test ...'
	linux	/boot/vmlinuz-0.test root=/dev/sda1 ro  
}
menuentry 'Debian GNU/Linux, with Linux 0.test (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	echo	'Loading Linux 0.test ...'
	linux	/boot/vmlinuz-0.test root=/dev/sda1 ro single 
}
### 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,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set ac28828f-e074-4c34-a906-9509710bde32
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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
ls: cannot access /dev/disk/by-id: No such file or directory
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
ls: cannot access /dev/disk/by-uuid: No such file or directory
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 6.0.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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.36.1    Debian configuration management sy
ii  grub-common                  1.99-4      GRand Unified Bootloader (common f
ii  grub-pc-bin                  1.99-4      GRand Unified Bootloader, version 
ii  grub2-common                 1.99-4      GRand Unified Bootloader (common f
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

grub-pc recommends no packages.

grub-pc suggests no packages.

-- Configuration Files:
/etc/grub.d/05_debian_theme changed [not included]

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
* grub-pc/install_devices_failed: true
  grub-pc/chainload_from_menu.lst: true
  grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/sda
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default:
  grub-pc/mixed_legacy_and_grub2: true





More information about the Pkg-grub-devel mailing list