You are not logged in.

#1 2008-07-22 16:50:43

taishi28012
Member
From: North Carolina, USA
Registered: 2008-03-05
Posts: 2

LUKS on LVM creates kernel panic

I am trying to install Arch onto a LUKS encrypted LVM volume without success.  I have boot and swap on their own partitions (sda1 and 2 respectively) outside of LVM.  Inside I have root, home, usr, var, tmp, opt, srv and sbin.  I have redone this setup several times but each time that I try to boot into my new install I get the error:

 sh: root=/dev/mapper/root: No such file or directory
Kernel panic - not syncing: Attempt to kill init!

I can find nothing in the documentation or on google that describes my exact problem.  The closest I have found is:
http://bbs.archlinux.org/viewtopic.php?id=26118
That was miraculously solved by a reinstall so It doesn't help much.

Here are my various config files:

Grub Menu:

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/mapper/lvm-root ro 
initrd /kernel26.img

fstab:

#
# /etc/fstab: static file system information
#
# <file system>  <dir>  <type>  <options>  <dump>  <pass>
none  /dev/pts  devpts  defaults  0  0
none  /dev/shm  tmpfs  defaults  0  0


/dev/cdrom  /media/cdrom  auto  ro,user,noauto,unhide  0  0
/dev/dvd  /media/dvd  auto  ro,user,noauto,unhide  0  0
/dev/mapper/home  /home  reiserfs   defaults  0 1
/dev/mapper/opt  /opt  ext3  defaults  0  1
/dev/mapper/root  /root  ext3  defaults  0 1
/dev/mapper/sbin  /sbin  ext3  defaults  0  1
/dev/mapper/srv  /srv  ext3  defaults  0  1
/dev/mapper/tmp  /tmp  ext2  defaults  0  1
/dev/mapper/usr  /usr  ext3  defaults  0  1
/dev/mapper/var  /var  jfs  defaults  0  1
/dev/mapper/swap  swap  swap  defaults  0  0
UUID=ab0c80ae-4782-41e1-a552-b27653304cfa  /boot  ext2  defaults  0  1

crypttab:

# crypttab: Mappings for encrypted partitions
#

# NAME  SOURCE DEVICE  PASSWORD  OPTIONS
home  /dev/lvm/home  /etc/home.key
usr  /dev/lvm/usr  /etc/usr.key
var  /dev/lvm/var  /etc/var.key
tmp  /dev/lvm/tmp  /etc/tmp.key
opt  /dev/lvm/opt  /etc/opt.key
srv  /dev/lvm/srv  /etc/srv.key
sbin  /dev/lvm/sbin  /etc/sbin.key
swap  /dev/sda2  SWAP  -c aes-xts-plain -h whirlpool -s 512

mkinitcpio.conf:

# vim:set ft=sh
# MODULES
MODULES="pata_acpi pata_atiixp ata_generic scsi_mod sata_sil"

# BINARIES
BINARIES=""

# FILES
FILES=""

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

rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# ----------------------------------------------------------------------------
# LOCALIZATION
#-----------------------------------------------------------------------------
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="EST"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# ----------------------------------------------------------------------------
# HARDWARE
# ----------------------------------------------------------------------------
MOD_AUTOLOAD="yes"
MODULES=(8139too mii ndiswrapper snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)
USELVM="yes"

# ----------------------------------------------------------------------------
# NETWORKING
# ----------------------------------------------------------------------------
HOSTNAME="ovrlord"
eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.100.1"
ROUTES=(!gateway)
#NETWORKS=(home)

# ---------------------------------------------------------------------------
# DAEMONS
# ---------------------------------------------------------------------------
DAEMONS=(syslog-ng network !netfs crond)

Let me know if you need any other information.

Offline

#2 2008-07-23 03:08:17

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: LUKS on LVM creates kernel panic

Well, the problem is that the init script in the initramfs (generated via mkinitcpio) fails to do one of the tasks (detecting lvm volumes, creating device nodes in /dev/mapper, detecting that the root volume is encrypted and asking for a password). The only thing that the wiki suggests in case the automatic detection doesn't kick in is to add the particular filesystem module into MODULES in mkinitcpio.conf.

Offline

#3 2008-07-23 04:42:37

taishi28012
Member
From: North Carolina, USA
Registered: 2008-03-05
Posts: 2

Re: LUKS on LVM creates kernel panic

It detects lvm and asks for the LUKS password so those two tasks are completed.  I added ext3 to MODULES since thats what I have root on but it didn't change anything.

Offline

Board footer

Powered by FluxBB