Jump to content
funtoo forums

robot682

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. robot682

    LVM Partitions Not Mounted

    Hello, I've been having a bit of a time with this install. I have the whole root filesystem on an encrypted LVM group. When I boot, I'm prompted for the password and the luks container is decrypted, but only root an swap are mounted. I get errors about the other partitions, which cause the system to break, including portage. My fstab is as follows: # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sdb1 /boot ext2 noauto,noatime 1 2 UUID=7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1 none swap sw 0 0 UUID=625a0681-e435-429f-976e-e3bb4830ad17 / ext4 noatime 0 1 UUID=3e09d6e9-2f69-43fd-b718-4d5dbd319e82 /tmp ext4 noatime 0 2 UUID=25be8c28-fff2-4b37-bf23-c9bad9153036 /var ext4 noatime 0 2 UUID=9b77ff9d-fa7e-4a30-8995-dbefe0669839 /home ext4 noatime 0 2 /dev/cdrom /mnt/sr0 auto noauto,ro 0 2 When I boot, I get the following errors fsck.ext4 unable to resolve UUID=3e09d6e9-2f69-43fd-b718-4d5dbd319e82 fsck.ext4 unable to resolve UUID=25be8c28-fff2-4b37-bf23-c9bad9153036 fsck.ext4 unable to resolve UUID=9b77ff9d-fa7e-4a30-8995-dbefe0669839 lvdisplay shows all of the logical volumes, but the UUIDs are different --- Logical volume --- LV Path /dev/vg1/swap LV Name swap VG Name vg1 LV UUID sR2E6X-GhTk-Vb8f-BD2D-GQHl-DVn9-rgJyeU LV Write Access read/write LV Creation host, time ubuntu, 2014-09-13 12:44:55 -0500 LV Status available # open 2 LV Size 8.00 GiB Current LE 2048 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/vg1/root LV Name root VG Name vg1 LV UUID Z6i3eH-8Tc6-CfYq-boTe-Ojxy-Y2C3-afpSLg LV Write Access read/write LV Creation host, time ubuntu, 2014-09-13 12:45:16 -0500 LV Status available # open 1 LV Size 50.00 GiB Current LE 12800 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2 --- Logical volume --- LV Path /dev/vg1/tmp LV Name tmp VG Name vg1 LV UUID hG0GR3-tK2R-2jZa-hPtQ-Tfr0-4k6O-pv10Zs LV Write Access read/write LV Creation host, time ubuntu, 2014-09-13 12:45:40 -0500 LV Status available # open 0 LV Size 10.00 GiB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3 --- Logical volume --- LV Path /dev/vg1/var LV Name var VG Name vg1 LV UUID jrOYbk-Vf6z-Uuxc-IKSx-vTJH-kdow-TAdsfp LV Write Access read/write LV Creation host, time ubuntu, 2014-09-13 12:45:53 -0500 LV Status available # open 0 LV Size 10.00 GiB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:4 --- Logical volume --- LV Path /dev/vg1/home LV Name home VG Name vg1 LV UUID bPCQA9-HsLv-DR34-3Gxj-NUnQ-91W8-zRG0WR LV Write Access read/write LV Creation host, time ubuntu, 2014-09-13 12:46:08 -0500 LV Status available # open 0 LV Size 209.08 GiB Current LE 53524 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:5 lvscan shows that they are all active ACTIVE '/dev/vg1/swap' [8.00 GiB] inherit ACTIVE '/dev/vg1/root' [50.00 GiB] inherit ACTIVE '/dev/vg1/tmp' [10.00 GiB] inherit ACTIVE '/dev/vg1/var' [10.00 GiB] inherit ACTIVE '/dev/vg1/home' [209.08 GiB] inherit blkid only shows root and swap. /dev/sda1: UUID="77f735b0-3d46-4fd7-9751-34df92d460d5" TYPE="crypto_LUKS" PARTUUID="53b81948-01" /dev/sdb1: UUID="79d306ed-2578-4ac9-a199-6f61a6a7e64c" TYPE="ext2" PARTLABEL="Linux filesystem" PARTUUID="8bc2da6e-8286-4b3f-a58a-1a6661ec3c5d" /dev/mapper/luks-77f735b0-3d46-4fd7-9751-34df92d460d5: UUID="TTLf8a-U1Vg-r8FZ-L0cl-2KWm-bR3p-u7tSDA" TYPE="LVM2_member" /dev/mapper/vg1-swap: LABEL="swap" UUID="7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1" TYPE="swap" /dev/mapper/vg1-root: LABEL="root" UUID="625a0681-e435-429f-976e-e3bb4830ad17" TYPE="ext4" /dev/sdb2: PARTLABEL="BIOS boot partition" PARTUUID="bed4419b-8a5e-43ca-b5dc-373f4f96f8c9" ls /dev/vg1/ just shows root and swap It's worth mentioning that I am booting with dracut and using it to decrypt the luks container, so dracut has the enc_root and real_root set to the UUIDs of root and the luks container. If I reboot the system and decrypt the luks container, blk looks like this: /dev/loop0: TYPE="squashfs" /dev/sda1: UUID="77f735b0-3d46-4fd7-9751-34df92d460d5" TYPE="crypto_LUKS" /dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660" /dev/sdb1: UUID="79d306ed-2578-4ac9-a199-6f61a6a7e64c" TYPE="ext2" /dev/mapper/funtoo: UUID="TTLf8a-U1Vg-r8FZ-L0cl-2KWm-bR3p-u7tSDA" TYPE="LVM2_member" /dev/mapper/vg1-swap: LABEL="swap" UUID="7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1" TYPE="swap" /dev/mapper/vg1-root: LABEL="root" UUID="625a0681-e435-429f-976e-e3bb4830ad17" TYPE="ext4" /dev/mapper/vg1-tmp: LABEL="tmp" UUID="3e09d6e9-2f69-43fd-b718-4d5dbd319e82" TYPE="ext4" /dev/mapper/vg1-var: LABEL="var" UUID="25be8c28-fff2-4b37-bf23-c9bad9153036" TYPE="ext4" /dev/mapper/vg1-home: LABEL="home" UUID="9b77ff9d-fa7e-4a30-8995-dbefe0669839" TYPE="ext4" Any help would be appreciated.
  2. robot682

    Dracut Shell, LUKS LVM

    Hi, I'm trying to boot an encrypted root filesystem off of a LUKS encrypted LVM table. The LUKS key is protected by a GPG key. I built an initramfs with dracut using both the crypt and crypt-gpg modules. The boot partition and key file are on a USB drive. When I boot, there is a kernel panic. I've tried adding the serial and console options to grub.cfg as well as the rd.shell option, but I can't seem to get Dracut to drop to a shell so I can troubleshoot the issue. Any help would be appreciated. Here is my grub.cfg set timeout=3 serial --unit=0 --speed=9600 terminal --timeout=5 serial console insmod part_gpt insmod ext2 set root=(hostdisk//dev/sdb,gpt1) search --no-floppy --fs-uuid --set 79d306ed-2578-4ac9-a199-6f61a6a7e64c if loadfont /grub/unifont.pf2; then set gfxmode=text insmod gfxterm insmod vbe terminal_output gfxterm fi set menu_color_normal=cyan/blue set menu_color_highlight=blue/cyan menuentry "Funtoo Linux Dracut - vmlinuz-3.16.2-hardened-r2" { insmod part_gpt insmod ext2 set root=(hostdisk//dev/sdb,gpt1) search --no-floppy --fs-uuid --set 79d306ed-2578-4ac9-a199-6f61a6a7e64c linux /vmlinuz-3.16.2-hardened-r2 rootfstype=ext4 luks enc_root=UUID=77f735b0-3d46-4fd7-9751-34df92d460d5 lvm rd.luks.key=/boot/luks-key.gpg root=/dev/mapper/vg1-root console=tty0 console=ttyS0,9600 rd.shell set gfxpayload=text } set default=0 My fstab looks like this: # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sdb1 /boot ext2 noauto,noatime 1 2 UUID=7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1 none swap sw 0 0 UUID=625a0681-e435-429f-976e-e3bb4830ad17 / ext4 noatime 0 1 UUID=3e09d6e9-2f69-43fd-b718-4d5dbd319e82 /tmp ext4 noatime 0 2 UUID=25be8c28-fff2-4b37-bf23-c9bad9153036 /var ext4 noatime 0 2 UUID=9b77ff9d-fa7e-4a30-8995-dbefe0669839 /home ext4 noatime 0 2 /dev/cdrom /mnt/sr0 auto noauto,ro 0 2 Here is the output of blkid /dev/loop0: TYPE="squashfs" /dev/sda1: UUID="77f735b0-3d46-4fd7-9751-34df92d460d5" TYPE="crypto_LUKS" /dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660" /dev/sdb1: UUID="79d306ed-2578-4ac9-a199-6f61a6a7e64c" TYPE="ext2" /dev/mapper/funtoo: UUID="TTLf8a-U1Vg-r8FZ-L0cl-2KWm-bR3p-u7tSDA" TYPE="LVM2_member" /dev/mapper/vg1-swap: LABEL="swap" UUID="7e35db9b-f5f7-4bb3-98e1-1466f56ed9b1" TYPE="swap" /dev/mapper/vg1-root: LABEL="root" UUID="625a0681-e435-429f-976e-e3bb4830ad17" TYPE="ext4" /dev/mapper/vg1-tmp: LABEL="tmp" UUID="3e09d6e9-2f69-43fd-b718-4d5dbd319e82" TYPE="ext4" /dev/mapper/vg1-var: LABEL="var" UUID="25be8c28-fff2-4b37-bf23-c9bad9153036" TYPE="ext4" /dev/mapper/vg1-home: LABEL="home" UUID="9b77ff9d-fa7e-4a30-8995-dbefe0669839" TYPE="ext4"
  3. robot682

    boot-update issue

    Thank you sputnik. Switching /etc/fstab to use UUIDs caused boot-update to succeed.
  4. robot682

    boot-update issue

    Hi, I'm trying to follow the guide to install the root filesystem over encrypted LVM, which can be found here: http://www.funtoo.org/Rootfs_over_encrypted_lvm and have run into a bit of a hiccup with boot-update. I'm hoping someone can help me. I should state that I'm trying to boot the kernel off of a USB drive, which on my setup is /dev/sdb1. /dev/sda1 contiains the logical volumes including the rest of the OS and other mount points. When I run boot-update, I get the following errors. boot-update 1.6.11 / Copyright 2009-2012 Funtoo Technologies [use option "-l" for license info, "-h" for help] * Generating config for grub... * ERROR : (rootfstype=auto) - cannot find a valid / entry in /etc/fstab. * ERROR : No matching kernels or boot entries found in /etc/boot.conf. * Did not complete successfully. My /etc/boot.conf file looks like this: boot { generate grub default "Funtoo Linux Dracut" timeout 3 } "Funtoo Linux Dracut" { kernel vmlinuz[-v] initrd initramfs[-v] params += rootfstype=ext4 params += luks enc_root=77f735b0-3d46-4fd7-9751-34df92d460d5 params += lvm root=UUID=625a0681-e435-429f-976e-e3bb4830ad17 params += rd.luks.key=/boot/luks-key.gpg } My /etc/fstab file is as follows: # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sdb1 /boot ext2 noauto,noatime 1 2 /dev/mapper/vg1-swap none swap sw 0 0 /dev/mapper/vg1-root / ext4 noatime 0 1 /dev/mapper/vg1-tmp /tmp ext4 noatime 0 2 /dev/mapper/vg1-var /var ext4 noatime 0 2 /dev/mapper/vg1-home /home ext4 noatime 0 2 /dev/cdrom /mnt/sr0 auto noauto,ro 0 2 Finally, my /boot partition contains the following files, which include the kernel and the initramfs files. -rw-r--r-- 1 root root 3835913 Sep 14 01:08 System.map-3.16.2-hardened -rw-r--r-- 1 root root 98826 Sep 14 01:08 config-3.16.2-hardened drwxr-xr-x 4 root root 4096 Sep 14 01:11 grub -rw------- 1 root root 6974532 Sep 14 11:51 initramfs-vlinuz-3.16.2-hardened.img drwx------ 2 root root 16384 Sep 14 01:07 lost+found -rwxr-xr-x 1 root root 8409125 Sep 14 01:09 luks-key.gpg -rw-r--r-- 1 root root 6979552 Sep 14 01:09 vmlinuz-3.16.2-hardened I have also tried copying and pasting the file names directly into /etc/boot.conf as a means of troubleshooting, but that didn't work. The initramfs was built using dracut, if that matters. Any help would be appreciated.
×