You are not logged in.

#1 2012-12-06 10:35:28

ETNyx
Member
From: Czech republic
Registered: 2010-06-08
Posts: 29

[ERROR,LUKS,BOOT,DISK] Can't boot -> cat't find root device

Hi everyone,

sometimes (1/20 times, its pretty much random) i can't boot to my system got this message (retyping). Im using LUKS encryption, partitons are ext4, system is fully upgraded and disk SMART test look fine.

"early booting stage"
...
Running hook [Encrypt]
Waiting 10 seconds for device /dev/sda2 ...
Waiting 10 seconds for device /dev/mapper/root ...
ERROR: device /dev/mapper/root no found skip fsck
ERROR: unable to find root device /dev/mapper/root/

then start somemething called "recovery shell" (sometimes helps reboot, sometimes punch to table and reboot to windows :-D)

Due to most of successful boots i gues my mkinitcpio and image are allright, any way my mkinitcpio.conf

MODULES="ext4"
BINARIES=""
FILES=""
HOOKS="base udev sata autodetect pata scsi usb usbinput numlock encrypt filesystems fsck"

I should provide any additionl infomation just ask. should someone help me?

Last edited by ETNyx (2012-12-07 10:21:09)

Offline

#2 2012-12-08 16:36:52

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: [ERROR,LUKS,BOOT,DISK] Can't boot -> cat't find root device

Hi
I think you have to put lvm2 after encrypt into hooks.

Offline

#3 2012-12-08 17:30:09

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

Re: [ERROR,LUKS,BOOT,DISK] Can't boot -> cat't find root device

Surprise: lvm2 is needed only if you use lvm. There's no reason to add it here.

Looks more like /dev/sda2 is never found, so the cryptdevice is never setup. Are there other physical disks? Have you tried using a UUID for the cryptdevice instead of a kernel name?

Offline

#4 2012-12-09 12:37:39

ETNyx
Member
From: Czech republic
Registered: 2010-06-08
Posts: 29

Re: [ERROR,LUKS,BOOT,DISK] Can't boot -> cat't find root device

Hi, thx for your answers.

First of all i dont use lvm.

Yes there is another physical disk. So i will try to switch defining my discs by UUID, I didnt used it yet so, I propably should change all of records, isnt it? Thats mean grub,crypttab a fstab or there is anything else? And I also looks over net how to get UUID i found this cmd is it correct because some parttion have got another format of UUID (i suggest its made by Windows they are ntfs formated). For example:

sudo blkid /dev/sda3
/dev/sda3: UUID="0072C16772C161D0" TYPE="ntfs" 
sudo blkid /dev/sda6
/dev/sda6: UUID="ee1a4eb7-0a91-4881-8535-2e7f72280a5f" TYPE="crypto_LUKS" 

is that correct way?

Offline

Board footer

Powered by FluxBB