You are not logged in.

#1 2013-12-15 19:14:30

drwhattheheck
Member
Registered: 2013-12-15
Posts: 1

GRUB Unable to Find Device with Root Partition After Install

Hi all,

I have a laptop I've been hoping to install Arch on.  It has two 500 GB hard drives, but I don't really need all that space and so I've been following this guide on the Arch Wiki to get my home and root partitions mirrored using RAID.  The paritions are set up like this:

# fdisk -l

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x35155db8

Device    Boot     Start       End    Blocks  Id System
/dev/sda1           2048 209717247 104857600   7 HPFS/NTFS/exFAT
/dev/sda2 *    209717248 210126847    204800  83 Linux
/dev/sda3      210126848 765872127 277872640  fd Linux raid autodetect
/dev/sda4      765872128 976773167 105450520   5 Extended
/dev/sda5      765874176 782651391   8388608  82 Linux swap / Solaris
/dev/sda6      782653440 976773167  97059864  fd Linux raid autodetect


Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf783d0ea

Device    Boot     Start       End    Blocks  Id System
/dev/sdb1           2048 209717247 104857600   7 HPFS/NTFS/exFAT
/dev/sdb2      209717248 210126847    204800  83 Linux
/dev/sdb3      210126848 765872127 277872640  fd Linux raid autodetect
/dev/sdb4      765872128 976773167 105450520   5 Extended
/dev/sdb5      765874176 782651391   8388608  82 Linux swap / Solaris
/dev/sdb6      782653440 976773167  97059864  fd Linux raid autodetect

Disk /dev/md1: 264.9 GiB, 284407365632 bytes, 555483136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/md0: 92.5 GiB, 99322167296 bytes, 193988608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partitions sda1 and sdb1 are for a seperate Windows 7 installation.  sda3 and sdb3 are in a RAID array for /home, and sda6 and sdb6 are in another array for /.

Everything seemed to go all right while installing, but I'm having issues when trying to boot into the new system.  I see the typical messages indicating that GRUB is loading.   Afterwards, my screen is blank for several seconds before receiving this:

error: device not found: 0c23c74b-0089-4ae7-9649-38c56cd90bfa.
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found
error: disk `mduuid/df9d75e2-77a7-fc54-4336-7eaf408d7be3' not found

Press any key to continue...

After following the prompt, I am taken to the GRUB menu, and I can boot into either Arch or Windows.  In Arch, I am able to log in as root and play around, and have installed vim and a couple of other packages with pacman.  However, the error messages and the delay while GRUB is attempting to locate the disks is concerning.  After running 'blkid':

/dev/sda1: LABEL="windows" UUID="62F3A51045BF1808" TYPE="ntfs" PARTUUID="35155db8-01" 
/dev/sda2: LABEL="boot" UUID="5cff03b9-7d6f-464e-a96a-dd2213bbf3c5" TYPE="ext2" PARTUUID="35155db8-02" 
/dev/sda3: UUID="2d8151fc-f96e-2783-a9d9-ce2a5bc7333c" UUID_SUB="5a73a597-5701-dea8-a627-d04c2b61dec1" LABEL="archiso:1" TYPE="linux_raid_member" PARTUUID="35155db8-03" 
/dev/sda5: LABEL="swap1" UUID="df8c74de-6a07-4b0e-a96b-3368543fc257" TYPE="swap" PARTUUID="35155db8-05" 
/dev/sda6: UUID="df9d75e2-77a7-fc54-4336-7eaf408d7be3" UUID_SUB="2eb9f1b5-3194-ff6e-02c9-28ae1c1e4d80" LABEL="archiso:0" TYPE="linux_raid_member" PARTUUID="35155db8-06" 
/dev/sdb1: LABEL="shared" UUID="05D016E43BD21063" TYPE="ntfs" PARTUUID="f783d0ea-01" 
/dev/sdb2: LABEL="junk" UUID="c63f2d40-a70d-4c11-a841-1db880a3b722" TYPE="ext2" PARTUUID="f783d0ea-02" 
/dev/sdb3: UUID="2d8151fc-f96e-2783-a9d9-ce2a5bc7333c" UUID_SUB="364f6e40-3618-c82a-a0d8-3f0c94e9fbf1" LABEL="archiso:1" TYPE="linux_raid_member" PARTUUID="f783d0ea-03" 
/dev/sdb5: LABEL="swap2" UUID="b7ba0df9-8064-44a8-a908-d79fbffe9a55" TYPE="swap" PARTUUID="f783d0ea-05" 
/dev/sdb6: UUID="df9d75e2-77a7-fc54-4336-7eaf408d7be3" UUID_SUB="904dcabb-8740-5c50-3dca-a0451d119ea4" LABEL="archiso:0" TYPE="linux_raid_member" PARTUUID="f783d0ea-06" 
/dev/md1: LABEL="home" UUID="9af32c0b-5dc7-49e6-9a0f-3ab91a3c66bd" TYPE="ext4" 
/dev/md0: LABEL="root" UUID="0c23c74b-0089-4ae7-9649-38c56cd90bfa" TYPE="ext4" 

It looks like the first message is in regards to /dev/md0, the RAID array for /.  The next six are in regards to sda6 and sdb6, the disk partitions that are in the / array.  I know nothing about GRUB, and so don't want to start tinkering with grub.cfg (see below).  Would anyone be able to help me figure out what's causing this?  I've noticed that several people on these forums suggest using Syslinux instead.  I don't mind switching at all, especially if that would help, but I've no clue how to remove GRUB at the same time. 

Thanks in advance for any help!



Here is the grub.cfg file generated by grub-mkconfig during the installation.

#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

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 msdos 
insmod diskfilter mdraid1x 
insmod ext2
set root='mduuid/df9d75e277a7fc5443367eaf408d7be3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/df9d75e277a7fc5443367eaf408d7be3'  0c23c74b-0089-4ae7-9649-38c56cd90bfa
else
  search --no-floppy --fs-uuid --set=root 0c23c74b-0089-4ae7-9649-38c56cd90bfa
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=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_msdos msdos 
insmod diskfilter mdraid1x 
insmod ext2
set root='mduuid/df9d75e277a7fc5443367eaf408d7be3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/df9d75e277a7fc5443367eaf408d7be3'  0c23c74b-0089-4ae7-9649-38c56cd90bfa
else
  search --no-floppy --fs-uuid --set=root 0c23c74b-0089-4ae7-9649-38c56cd90bfa
fi
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/starfield/dejavu_10.pf2
loadfont ($root)/usr/share/grub/themes/starfield/dejavu_12.pf2
loadfont ($root)/usr/share/grub/themes/starfield/dejavu_14.pf2
loadfont ($root)/usr/share/grub/themes/starfield/dejavu_16.pf2
loadfont ($root)/usr/share/grub/themes/starfield/dejavu_bold_14.pf2
insmod png
set theme=($root)/usr/share/grub/themes/starfield/theme.txt
export theme
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-0c23c74b-0089-4ae7-9649-38c56cd90bfa' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos 
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  5cff03b9-7d6f-464e-a96a-dd2213bbf3c5
	else
	  search --no-floppy --fs-uuid --set=root 5cff03b9-7d6f-464e-a96a-dd2213bbf3c5
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=UUID=0c23c74b-0089-4ae7-9649-38c56cd90bfa rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-0c23c74b-0089-4ae7-9649-38c56cd90bfa' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos 
	insmod ext2
	set root='hd0,msdos2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  5cff03b9-7d6f-464e-a96a-dd2213bbf3c5
	else
	  search --no-floppy --fs-uuid --set=root 5cff03b9-7d6f-464e-a96a-dd2213bbf3c5
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=UUID=0c23c74b-0089-4ae7-9649-38c56cd90bfa rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-fallback.img
}

### 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 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-62F3A51045BF1808' {
	insmod part_msdos 
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  62F3A51045BF1808
	else
	  search --no-floppy --fs-uuid --set=root 62F3A51045BF1808
	fi
	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  ${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/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

EDIT: Please disregard.  I decided to reinstall without RAID using Syslinux.  Everything appears to be working now.

Last edited by drwhattheheck (2013-12-16 16:59:11)

Offline

Board footer

Powered by FluxBB