You are not logged in.

#1 2013-08-15 19:20:28

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

[SOLVED]Unable find root device UUID not found

Arch is in sda10 as my first installation effort, but on trying to boot I am dropped into an emergency shell [rootfs /] after the message "unable to find root device" "UUID=....<number>.... not found, skipping fsck."  With the shell I observed that /etc/fstab is empty, although I had followed the Beginner's Guide to create it.  The guide says not to run the command that created it again but rather to edit the fstab.  But I can't figure out how to do that using the emergency shell.  I couldn't get nano, I got a sort-of vi but couldn't work it.

My assumption is that boot won't happen if there is no fstab, right?

Another point: in the installation I installed grub but I did not follow the instruction to update-grub (because I already have grub updated in my debian "wheezy").
Also I failed to follow an instruction about enabling a swap partition because I already have one.

Will appreciate help in fixing this.

Last edited by hilltownboy (2013-08-17 01:44:27)

Offline

#2 2013-08-15 20:16:23

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [SOLVED]Unable find root device UUID not found

I'm no guru and I can't give you all the answers to your questions.  However, I will try to point you into the correct directions and apologies in advance if I screw up. smile

1)  What filesystem(s) are you using?  If its btrfs then the "skipping fsck" regarding the root partition isn't relevant to your issues.  More importantly, can you chroot in to your install and copy your /etc/fstab to a usb key or paste site or something and post it here in

 code tags

please.  (Reply to my post and you'll see what I'm talking about.)  The simplest way I know to accomplish a chroot properly is to look at the Beginner's Guide; the first half of it gets you to install then chroot into your new install.  A more "hold-your-hand" method is to search for Tmxgta on this forum, download that ISO, put it on a disk/key and boot it.  It will walk you through a full install or can be used to help you chroot in.

2) The emergency shell is precisely that:  a very limited shell that allows you to mount partitions manually and fix issues.  In your case, if you try to go to that shell again, you can mount your root partition (/dev/sda10 in this case, I believe) and use nano to edit /etc/fstab.  How to do that is also covered in the wiki.

3)  You're correct:  without a valid fstab  file your install will ... well ... stall. smile

4)  I'm not a grub user so I can't help much but if you look at the wiki (search for grub or grub2, whichever you have) and you'll find guide(s) to dual-boot or chain-load other distributions.  The swap can also be used by all of your linux installations you just have to add the /dev/sdXx node to your current fstab.  If you look at your Debian install's fstab (assuming it works) should tell you where the swap partition is and how to mount it in Arch.  You'll also need to enable it (swapon /dev/sdXx).

Welcome to the forums & good luck.  big_smile

Offline

#3 2013-08-15 23:56:21

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Unable find root device UUID not found

hilltownboy wrote:

My assumption is that boot won't happen if there is no fstab, right?

Poor assumption. Early userspace depends on the kernel commandline to mount root. /etc/fstab isn't relevant.

Offline

#4 2013-08-16 00:18:10

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]Unable find root device UUID not found

MoonSwan, thanks for your help, especially #2.  The emergency shell mounted /dev/sda10 to /tmp. However I could not find nano there, so I am still stuck.
Re the other items: #1, all my partitions are ext3 (except the original Windows that I never use); #3, right; #4, I believe that I have grub2 under control (also grub legacy in one partiton) but I need to check the grub file in Arch and enable it as you say.

Offline

#5 2013-08-16 00:36:19

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]Unable find root device UUID not found

hilltownboy wrote:

Another point: in the installation I installed grub but I did not follow the instruction to update-grub (because I already have grub updated in my debian "wheezy").

Which instructions did you follow? The Beginners' Guide includes no such instruction since there is no such command in Arch.

Rather than installing grub in Arch, if you want to dual boot Debian and Arch, say, boot into Debian and update grub.cfg. Or install grub for Arch and uninstall it in Debian. But it will be easier to use Debian's grub to maintain it because Debian uses versioned kernels.

In the emergency shell, fstab is empty because the root partition is not mounted. As explained above, fstab is irrelevant at this point since your root partition is not being found. To fix this, boot into Debian and update grub's config. If grub has trouble finding Arch, try mounting Arch's partition(s) before running it. If that fails, use the alternative explained in the wiki which uses a custom stanza under /etc/default/grub.d for Arch which will avoid the problem. See https://wiki.archlinux.org/index.php/Grub#Dual-booting. But use /etc/grub.d/40_custom on Debian to create an entry for Arch.

EDIT: What exactly did you do to install grub? Did you just do pacman -S grub? Or did you also install it to disk? If you installed it to disk, the above won't work. If not, it should but then I'm not sure how you are booting Arch at all? (Are you booting Arch at all?)

Last edited by cfr (2013-08-16 00:40:56)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-08-16 03:12:53

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]Unable find root device UUID not found

Thanks, cfr.  Grug2 is working from my Debian and lists Arch along with the other OS entries (including one that only functions with legacy grub).  When Arch is selected a screen comes up and one of the first messages is "Booting", but then it is "unable to find the root device" but lists its UUID.

I apologize for update-grub, my memory failed me; I should have said grub-install (that most likely would have made grub point to Arch instead of where I have it set up on Debian and working just fine).  I did pacman  -S grub as per the Beginners' Guide.  Presumably a copy of grub is now in Arch.  Shouldn't that copy tell Arch where to go?  But how can one get the emergency shell to inspect and if necessary fix that grub?

You must be right about fstab being irrelevant at this stage.

Offline

#7 2013-08-16 03:20:15

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED]Unable find root device UUID not found

Post grub.cfg. This will be the grub.cfg you generated in Debian.

You didn't install grub in Arch to disk - that's good. That means Arch's grub is effectively out of the picture and won't complicate things.

You could, I think, if you really, really insisted launch Arch's grub from Debian's. But I don't know why you would want to do that. If you did want to do that, you would have bigger issues than not being able to boot an OS.

What you need to do is fix Arch's booting from Debian because Debian is in charge of grub.

Are you sure it listed the right UUID? Along with grub.cfg, post the output of lsblk -f.

You must be right about fstab being irrelevant at this stage.

Not me. falconindy must be right. falconindy is always right.

Last edited by cfr (2013-08-16 03:21:54)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-08-16 15:10:16

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]Unable find root device UUID not found

lsblk -f
NAME    FSTYPE LABEL MOUNTPOINT
sda                  
├─sda1               
├─sda2               
├─sda3               
├─sda5               
├─sda6               [SWAP]
├─sda7               
├─sda8               /
├─sda9               /home/norman/data
└─sda10              /mnt
sr0                  

Arch section of Debian grub.cfg:

menuentry "Arch Linux, with Linux core repo kernel (on /dev/sda10)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos10)'
	search --no-floppy --fs-uuid --set=root 80b293fd-b886-4e19-aa20-8384cb5b8aa0
	linux /boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 rw quiet
	initrd /boot/initramfs-linux.img
}
menuentry "Arch Linux, with Linux core repo kernel (Fallback initramfs) (on /dev/sda10)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos10)'
	search --no-floppy --fs-uuid --set=root 80b293fd-b886-4e19-aa20-8384cb5b8aa0
	linux /boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 rw quiet
	initrd /boot/initramfs-linux-fallback.img
}

I put Arch (sda10) into Debian (sda8) /mnt so now I can read what is in there and forget about the emergency shell.  The grub from pacman -S grub is in Arch's /boot but as you say it is probably unnecessary because /boot seems to have instructions:

/mnt/boot$ ls
grub  initramfs-linux-fallback.img  initramfs-linux.img  vmlinuz-linux

Thanks for reviewing this.  I haven't a clue as to why Arch doesn't boot and don't know how to check if the above root=UUID is wrong.  Presumably it was inserted by the Arch installation.

Offline

#9 2013-08-16 15:29:47

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [SOLVED]Unable find root device UUID not found

As you will notice, the Arch entry shows shows different UUID's:

--set=root 80b293fd-b886-4e19-aa20-8384cb5b8aa0
root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 

in Debian (as root) use the 'blkid' command to check which UUID is the correct one for sda10,
and correct the wrong one in grub.cfg. Do not do a grub-update afterwards, because it will be
likely there will be wrong UUID's again.

Offline

#10 2013-08-16 17:30:51

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]Unable find root device UUID not found

Henk, I replaced the root=UUID with the set=root UUID as you directed and Arch now starts to boot.  But it hangs up as follows (quoting the screen):

Arch Linux 3.10.6-2-ARCH (tty1)

arch login [10.176344] kvm: disabled by bios

[ 30.615067] sd 6:0:0:0: [sdb] No Caching mode page present
[ 30.615133] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 30.621086] sd 6:0:0:0: [sdb] No Caching mode page present
[ 30.621184] sd 6;0:0:0: [sdb] Assuming drive cache; write through

I don't understand kvm nor the reference to sdb.  On my system sdb is an external drive which is turned off (on only when I use it).
Also I am wondering if the cache problem is because I have not enabled SWAP. l

Offline

#11 2013-08-16 18:31:49

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: [SOLVED]Unable find root device UUID not found

Is your external drive still connected to the pc? Try it after unplugging the device.

As for kvm:
https://wiki.archlinux.org/index.php/KVM
from this page:

KVM requires that the virtual machine host's processor has virtualization support (named VT-x for Intel processors and AMD-V for AMD processors)

This something you can look for in the BIOS; check if it is enabled for your processor.

Offline

#12 2013-08-16 20:39:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]Unable find root device UUID not found

hilltownboy wrote:

Henk, I replaced the root=UUID with the set=root UUID as you directed and Arch now starts to boot.  But it hangs up as follows (quoting the screen):

Arch Linux 3.10.6-2-ARCH (tty1)

arch login [10.176344] kvm: disabled by bios

[ 30.615067] sd 6:0:0:0: [sdb] No Caching mode page present
[ 30.615133] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 30.621086] sd 6:0:0:0: [sdb] No Caching mode page present
[ 30.621184] sd 6;0:0:0: [sdb] Assuming drive cache; write through

I don't understand kvm nor the reference to sdb.  On my system sdb is an external drive which is turned off (on only when I use it).
Also I am wondering if the cache problem is because I have not enabled SWAP. l


That's not hanging; it's your prompt being overwritten. Just clear the screen and login.

If you want to avoid this, the only current workaround is adding quiet to your kernel line.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2013-08-17 01:39:22

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: [SOLVED]Unable find root device UUID not found

Thanks all.  Clearing the screen (by hitting Enter) brought up the root login as jasonwryan says.  I can now learn about post-installation, which is good for me as a do-it-yourselfer but maybe a nuisance for all you good people who are nice enough to answer what must often seem like silly questions.

Last edited by hilltownboy (2013-08-17 01:41:37)

Offline

#14 2013-09-22 17:13:21

donatom
Member
From: West Coast (California)
Registered: 2012-12-23
Posts: 30

Re: [SOLVED]Unable find root device UUID not found

Henk,

I had the same non-booting problem in a multiboot machine. As you indicated, it was because of a grub.cfg menuentry with two different uuid's for my arch root partition. I couldn't edit  grub.cfg since it is read-only in Debian, so I copied the menu-entry in grub.cfg and pasted it into /etc/grub.d/40_custom, made sure both uuid's for arch root partition were identical (and correct). Then I ran (in Debian) "update-grub", rebooted and selected the arch grub entry at the end of the grub menu (there are now two arch entries, the first which is automatically generated  contains the erroneous uuid's). Arch booted up perfectly. By editing the /etc/grub.d/40_custom file, the correction will not be written over (after a kernel update, etc).

Thanks for noting how to correct the problem. It worked great for me and will be helpful for many other Arch users! I spent several hours googling, chrooting, tinkering without success until I came across your post. Thanks again.

Offline

Board footer

Powered by FluxBB