You are not logged in.

#1 2009-11-19 06:38:10

plmday
Member
From: Germany
Registered: 2009-02-19
Posts: 66

Install arch on lvm on usb

I wonder if it is possible to install arch on lvm on a usb key. I tried to do so. And it seemed I had installed it successfully. I am quite sure I've done everything right following the "LVM" and "Installing Arch Linux on a USB key" wiki. But when I boot from the usb (it can boot), it still failed to find the root which lies in an logical volume. In the error message, it first told me:

the root device does not exit, attempting to create it;
but failed and unable to detect or create the root device

then thrown me into the ramfs recovery shell.

In this shell, I can not find the device (which is a logical volume containing the root) I specified in the grub menu.lst under /dev/mapper.

Any idea?


Arch, the Portal of Linux

Offline

#2 2009-11-19 06:59:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install arch on lvm on usb

Do you have all the required hooks in your mkinitcpio.conf?

Offline

#3 2009-11-19 07:05:48

plmday
Member
From: Germany
Registered: 2009-02-19
Posts: 66

Re: Install arch on lvm on usb

tomk wrote:

Do you have all the required hooks in your mkinitcpio.conf?

Thanks for the reply. Yes, for sure, see below

HOOKS="base udev usb autodetect pata scsi sata lvm2 filesystems"

Arch, the Portal of Linux

Offline

#4 2010-01-05 20:33:16

Murmex
Member
Registered: 2010-01-05
Posts: 1

Re: Install arch on lvm on usb

I have the same problem.

In my case, I had to rescue my system. I added a USB drive to the VG and moved the LVs.

For the information, here are my hooks (quite similar to plmday's):

HOOKS="base udev usb v86d autodetect pata scsi sata lvm2 filesystems"

I use a LVM root (including /boot) and GRUB2 to boot the system.

I have the exact same error as plmday. What's interesting is that in the rescue shell, I just have to type

/bin/lvm vgchange -ay

to detect the LVs and the boot processes normally after leaving the shell,

Offline

#5 2010-01-09 17:07:18

limyreth
Member
Registered: 2010-01-09
Posts: 18

Re: Install arch on lvm on usb

[deleted]

Last edited by limyreth (2019-09-09 13:05:45)

Offline

Board footer

Powered by FluxBB