Bug#760148: grub-common: grub-mount hangs forever, trying to mount ext4 partition, causing 100% CPU load

Johannes Rohr jorohr at gmail.com
Mon Sep 1 10:08:15 UTC 2014


Package: grub-common
Version: 2.02~beta2-11
Severity: important
Tags: d-i

I have an Arch Linux install on /dev/sda9. 

When OS Prober is run, grub-mount /dev/sda9 /var/lib/os-prober/mount just hangs forever, causing 100% CPU load. There are no issues with other partitions, it seems.

Here are my partitions:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0a39d74a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4196351     2097152    7  HPFS/NTFS/exFAT
/dev/sda2   *     4196352   339740671   167772160    7  HPFS/NTFS/exFAT
/dev/sda3       339740672   371197951    15728640    7  HPFS/NTFS/exFAT
/dev/sda4       371197952  1953523711   791162880    5  Extended
/dev/sda5       371200000   528486399    78643200   83  Linux
/dev/sda6       528488448   545265663     8388608   82  Linux swap / Solaris
/dev/sda7       545267712  1803558911   629145600   83  Linux
/dev/sda8      1803560960  1804584959      512000   83  Linux
/dev/sda9      1804587008  1953523711    74468352   83  Linux

Here is the output of dumpe2fs:

dumpe2fs 1.42.11 (09-Jul-2014)
Filesystem volume name:   Arch Linux
Last mounted on:          /
Filesystem UUID:          0c69c8b7-7766-4d34-9c7a-cdc3a94417f0
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              4661248
Block count:              18617088
Reserved block count:     930854
Free blocks:              8160164
Free inodes:              4312299
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1019
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Sat Apr  5 09:32:23 2014
Last mount time:          Mon Sep  1 11:31:31 2014
Last write time:          Mon Sep  1 11:31:31 2014
Mount count:              129
Maximum mount count:      -1
Last checked:             Sat Apr  5 09:32:23 2014
Check interval:           0 (<none>)
Lifetime writes:          756 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      4a30a179-9df6-4d65-a1a8-3bb6d185e9d6
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x000cabe7
Journal start:            0



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/4ba7d001-60e1-4e5d-b936-0d74eda2e679 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda7 /home ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** 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
  set have_grubenv=true
  load_env
fi
set default="${saved_entry}"

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,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  4ba7d001-60e1-4e5d-b936-0d74eda2e679
else
  search --no-floppy --fs-uuid --set=root 4ba7d001-60e1-4e5d-b936-0d74eda2e679
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  4ba7d001-60e1-4e5d-b936-0d74eda2e679
else
  search --no-floppy --fs-uuid --set=root 4ba7d001-60e1-4e5d-b936-0d74eda2e679
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 ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4ba7d001-60e1-4e5d-b936-0d74eda2e679' {
	savedefault
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  4ba7d001-60e1-4e5d-b936-0d74eda2e679
	else
	  search --no-floppy --fs-uuid --set=root 4ba7d001-60e1-4e5d-b936-0d74eda2e679
	fi
	echo	'Linux 3.14-2-amd64 wird geladen …'
	linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=4ba7d001-60e1-4e5d-b936-0d74eda2e679 ro  quiet acpi_osi=Linux
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/boot/initrd.img-3.14-2-amd64
}
submenu 'Erweiterte Optionen für Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-4ba7d001-60e1-4e5d-b936-0d74eda2e679' {
	menuentry 'Debian GNU/Linux, mit Linux 3.14-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-advanced-4ba7d001-60e1-4e5d-b936-0d74eda2e679' {
	savedefault
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  4ba7d001-60e1-4e5d-b936-0d74eda2e679
		else
		  search --no-floppy --fs-uuid --set=root 4ba7d001-60e1-4e5d-b936-0d74eda2e679
		fi
		echo	'Linux 3.14-2-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=4ba7d001-60e1-4e5d-b936-0d74eda2e679 ro  quiet acpi_osi=Linux
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.14-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.14-2-amd64-recovery-4ba7d001-60e1-4e5d-b936-0d74eda2e679' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  4ba7d001-60e1-4e5d-b936-0d74eda2e679
		else
		  search --no-floppy --fs-uuid --set=root 4ba7d001-60e1-4e5d-b936-0d74eda2e679
		fi
		echo	'Linux 3.14-2-amd64 wird geladen …'
		linux	/boot/vmlinuz-3.14-2-amd64 root=UUID=4ba7d001-60e1-4e5d-b936-0d74eda2e679 ro single 
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/boot/initrd.img-3.14-2-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/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### 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.
### 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 ###

### BEGIN /etc/grub.d/42_other ###
# 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.
menuentry 'Fedora' {
	savedefault
	set root=(hd0,msdos8)
	configfile /grub2/grub.cfg
}
### END /etc/grub.d/42_other ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
Personalities : 
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  1 11:58 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Sep  1 11:34 ata-HGST_HTS721010A9E630_JG40006PGSK4GC-part9 -> ../../sda9
lrwxrwxrwx 1 root root  9 Sep  1 11:34 ata-MATSHITADVD-RAM_UJ892_HG97_464508 -> ../../sr0
lrwxrwxrwx 1 root root  9 Sep  1 11:34 wwn-0x5000cca6accab4e4 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  1 11:58 wwn-0x5000cca6accab4e4-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Sep  1 11:34 wwn-0x5000cca6accab4e4-part9 -> ../../sda9
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep  1 11:34 0c69c8b7-7766-4d34-9c7a-cdc3a94417f0 -> ../../sda9
lrwxrwxrwx 1 root root 10 Sep  1 11:34 24e194f9-8b51-43a2-a96c-519808dd692e -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  1 11:34 25c98b3c-8683-488d-b00b-8b493104be79 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  1 11:58 4ba7d001-60e1-4e5d-b936-0d74eda2e679 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  1 11:34 64F23464F2343C9C -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep  1 11:34 CA300E62300E55BB -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  1 11:34 FAD61F8FD61F4B71 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  1 11:34 da418035-d8dd-4431-9172-37ab828b2613 -> ../../sda8
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (450, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (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-common depends on:
ii  gettext-base        0.19.2-1
ii  libc6               2.19-9
ii  libdevmapper1.02.1  2:1.02.88-1
ii  libfreetype6        2.5.2-1.1
ii  libfuse2            2.9.3-15
ii  liblzma5            5.1.1alpha+20120614-2
ii  libpng12-0          1.2.50-2
ii  zlib1g              1:1.2.8.dfsg-1

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

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

-- no debconf information



More information about the Pkg-grub-devel mailing list