LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2012, 02:38 AM   #1
ukernel
LQ Newbie
 
Registered: Dec 2011
Distribution: Arch Linux
Posts: 19

Rep: Reputation: Disabled
GRUB2 can't find root device


Hello,

When I try to boot my not new install of Arch Linux, it says "Cannot find root device [uuid]. I have tried to chroot and make a new config with grub-mkconfig and even format the boot partition. There are no logs from the day when the problem started to occur.
The machine is a MacBook Air 4,2 and the problem started to occur after a error occurred under an update to kernel 3.2.

/etc/fstab:
Code:
# 
# /etc/fstab: static file system information
#
# <file system>					               <dir>		<type>	<options>					                   <dump>	<pass>
none                                                                       /tmp		         tmpfs	nodev,nosuid,noexec,nodiratime,size=1G           0	                0
# DEVICE DETAILS: /dev/sda1 UUID=70D6-1701 LABEL=EFI
# DEVICE DETAILS: /dev/sda5 UUID=3363a86d-62ea-4992-8a15-cdff471665d4 LABEL=boot
# DEVICE DETAILS: /dev/sda6 UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b LABEL=root
# DEVICE DETAILS: /dev/sda7 UUID=8bba23a9-a35e-4d60-87ec-5c96527a9b10 LABEL=home
UUID=b704b054-8280-4d22-b7a8-692af41a9947 /boot 		ext2 	defaults,noatime 				0 	1
UUID=70D6-1701 					                 /boot/efi 	vfat 	defaults,noatime,discard 			0 	1
UUID=8bba23a9-a35e-4d60-87ec-5c96527a9b10  /home 		ext4 	defaults,noatime,discard 			0 	2
UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b 	 / 		        ext4 	defaults,noatime,discard 			0 	1
Code:
#
# 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
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 {
true
}

set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root e70bc54a-ebe6-43ee-9674-c9ba269b9d3b
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_mba_ahci ###
setpci -d 8086:1c03 90.b=60
### END /etc/grub.d/01_mba_ahci ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux custom' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root b704b054-8280-4d22-b7a8-692af41a9947
	echo	'Loading Linux mba4 ...'
	linux	/vmlinuz-linux-mba4 root=UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-mba4.img
}
menuentry 'Arch Linux, with Linux custom Fallback' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root b704b054-8280-4d22-b7a8-692af41a9947
	echo	'Loading Linux mba4 ...'
	linux	/vmlinuz-linux-mba4 root=UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-mba4-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root b704b054-8280-4d22-b7a8-692af41a9947
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux Fallback' --class archlinux --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='(hd0,gpt5)'
	search --no-floppy --fs-uuid --set=root b704b054-8280-4d22-b7a8-692af41a9947
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=e70bc54a-ebe6-43ee-9674-c9ba269b9d3b ro  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/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/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 ###
Thanks.

Last edited by ukernel; 01-26-2012 at 02:41 AM.
 
Old 01-26-2012, 03:52 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Can the machine still boot with the old kernel?
Looks like uuid changed and it isn't finding the original one. Before you format the boot partition did you take note of the uuid?

Regards
 
Old 01-26-2012, 04:20 AM   #3
ukernel
LQ Newbie
 
Registered: Dec 2011
Distribution: Arch Linux
Posts: 19

Original Poster
Rep: Reputation: Disabled
I put the new uuid for the boot partition in fstab. The machine can't boot with any kernel I've tried, and I tried lts, 3.1.9 and 3.2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6.26.3: VFS cannot open root device, can't find root device dimm0k Linux - Kernel 1 09-21-2008 04:19 PM
SuSe9 reboot problem after autoinstallation : not able to find root device deepbluenpurple SUSE / openSUSE 0 06-07-2006 05:28 AM
Kernel panic: can't find root device jagot Linux - Software 14 08-08-2005 12:54 AM
on install says cannot find root device danger_mouse_69 Linux - Newbie 4 11-13-2004 03:17 PM
canot find root device azi Slackware 2 05-16-2004 08:30 AM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration