You are not logged in.

#1 2016-07-25 23:26:09

nrz
Member
Registered: 2016-07-24
Posts: 19

[Solved] Unable to find root device problem

I have encrypted disk, which is split into lvm2 volumes.

mkinitcpio.conf

HOOKS="base udev autodetect keyboard keymap encrypt lvm2 usr block filesystems"

My laptop with the similar partition layout just works:

Device       Start       End   Sectors   Size Type
/dev/sda1     2048      4095      2048     1M BIOS boot
/dev/sda2  1052672   3149823   2097152     1G Linux filesystem
/dev/sda3  3149824 625142414 621992591 296.6G Linux filesystem

What could be the problem?

Last edited by nrz (2016-07-26 20:09:41)

Offline

#2 2016-07-25 23:32:31

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

Re: [Solved] Unable to find root device problem

What boot loader/manager are you using? How is it configured (paste the file(s))?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-07-25 23:40:10

nrz
Member
Registered: 2016-07-24
Posts: 19

Re: [Solved] Unable to find root device problem

I'm using grub. To show grub.cfg I'll need your advice on how to ssh into the live system, as ss -ntlp shows that nothing is listening...

Offline

#4 2016-07-25 23:45:54

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

Re: [Solved] Unable to find root device problem

So you don't have physical access to the server?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-07-25 23:49:12

nrz
Member
Registered: 2016-07-24
Posts: 19

Re: [Solved] Unable to find root device problem

I do have physical access to the server, but it would be much more convenient to copy-paste rather than physically type everything, unless you know exactly which parameters might be wrong?

Offline

#6 2016-07-26 00:16:52

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

Re: [Solved] Unable to find root device problem

Chroot in and use a paste service like sprunge or ptpb to paste the file (the wiki has pages on both).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-07-26 05:53:36

nrz
Member
Registered: 2016-07-24
Posts: 19

Re: [Solved] Unable to find root device problem

Offline

#8 2016-07-26 06:02:27

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

Re: [Solved] Unable to find root device problem

Your root line in the grub config should point to the mapped device:
https://wiki.archlinux.org/index.php/LVM#Kernel_options


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2016-07-26 07:52:46

kinghol
Member
Registered: 2014-02-28
Posts: 9

Re: [Solved] Unable to find root device problem

Same issue after last lts kernel update! I use syslinux as Bootloader

Offline

#10 2016-07-26 20:09:08

nrz
Member
Registered: 2016-07-24
Posts: 19

Re: [Solved] Unable to find root device problem

jasonwryan wrote:

Your root line in the grub config should point to the mapped device:
https://wiki.archlinux.org/index.php/LVM#Kernel_options

My problem was different. I had to change my vmlinuz line as follows:

linux   /vmlinuz-linux cryptdevice=UUID="66c13ce6-1e79-447a-9fd5-b327e01f0fee:luks_root" root=UUID=e517034b-f51d-46d7-931e-c6592de6bfe5 rw  quiet nomodeset

Note that cryptdevice parameter was missing...

PS: there's nothing wrong with selecting the root device by UUID smile

Offline

#11 2016-07-27 10:53:22

kinghol
Member
Registered: 2014-02-28
Posts: 9

Re: [Solved] Unable to find root device problem

I have had mount my partions and chroot into system with live iso and mkinitcipio linux-lts -p and now I can use my laptop!

Offline

Board footer

Powered by FluxBB