I have installed Gentoo with LVM2 and Dm-Crypt. I followed this tutorial: http://en.gentoo-wiki.com/wiki/Root_fil ... t_and_RAID and I just skipped the RAID parts. Now I am getting an error message after typing the password and I can't find a solution. The system hangs up with the following message:
Code: Select all
2 logical volume(s) in volume group "vg" now active
mount: mounting /dev/mapper/vg-root on /newroot failed: No such file or directory
BusyBox v1.15.3 (2010-09-30 15:49:47 CEST) multi-call binary
Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
Options:
-c DEV Reopen stdio to DEV after switch
[ 15.233541] Kernel panic - not syncing: Attempted to kill init!
[ 15.233787] Pid: 1, comm: busybox Not tainted 2.6.35-gentoo-r9 #3
[ 15.234030] Call Trace:
[ 15.234288] [<ffffffff81569116>] panic+0xa0/0x152My fdisk looks like this:Kernel: 2.6.35-gentoo-r9
Partitions:
/dev/sda1 --> Windows 7
/dev/sda2 --> Windows 7
/dev/sda3 --> boot (Gentoo)
/dev/sda4 --> system (Gentoo) The whole sda4 partition is a Volumegroup called VG and it is encrypted. This VG has two LVs (swap and root).
Code: Select all
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda3 /boot ext2 defaults,noatime 1 2
/dev/mapper/vg-root / ext3 noatime 0 1
/dev/mapper/vg-swap none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0Code: Select all
default 0
timeout 3
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.35-gentoo-r9
root (hd0,2)
kernel /boot/kernel-2.6.35-gentoo-r9
initrd /boot/initramfs
title Windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1Code: Select all
#!/bin/busybox sh
mount -t proc proc /proc
CMDLINE=`cat /proc/cmdline`
mount -t sysfs sysfs /sys
#wait a little to avoid trailing kernel output
sleep 3
#If you don't have a qwerty keyboard, uncomment the next line
loadkmap < /etc/kmap-de
#If you have a msg, show it:
cat /etc/msg
#dm-crypt
/bin/cryptsetup luksOpen /dev/sda4 vault
sleep 2
#lvm
#/bin/vgscan
/bin/vgchange -ay vg
sleep 2
#root filesystem
mount -r /dev/mapper/vg-root /newroot
#unmount pseudo FS
umount /sys
umount /proc
#umount /dev
#root switch
#exec /bin/busybox switch_root /newroot /sbin/init ${CMDLINE}
exec switch_root /newroot /sbin/initCode: Select all
#!/bin/sh
mount -t proc proc /proc
CMDLINE=`cat /proc/cmdline`
mount -t sysfs sysfs /sys
#wait a little to avoid trailing kernel output
sleep 3
#If you don't have a qwerty keyboard, uncomment the next line
loadkmap < /etc/kmap-de
#If you have a msg, show it:
#cat /etc/msg
#dm-crypt
/bin/cryptsetup luksOpen /dev/sda4 vault
#lvm
#/bin/vgscan
/bin/vgchange -ay vg
#root filesystem
mount -r /dev/mapper/vg-root /newroot
#unmount pseudo FS
umount /sys
umount /proc
#root switch
exec /bin/busybox switch_root /newroot /sbin/init ${CMDLINE}
