[arch-general] LVM on LUKS and fsck
Christian Hesse
list at eworm.de
Sun May 6 00:47:06 EDT 2012
Mauro Santos <registo.mailling at gmail.com> on Sun, 2012/05/06 03:16:
> I have decided to give encryption a shot and I have started with some
> bootable usb disks I have as emergency/recovery media.
>
> Everything works and partitions seem to mount just fine, but during boot
> in the fsck fase, root is apparently checked twice and home apparently
> doesn't get checked.
>
> root: clean, 177630/524288 files, 1430174/2097152 blocks
> boot: clean, 34/65536 files, 50998/262144 blocks
> root: clean, 12450/2162688 files, 7055618/8649728 blocks
>
> Using dumpe2fs to check how many blocks my root and home volumes have I
> can confirm that the first root line really corresponds to root and the
> second root line corresponds to home.
>
> Does anyone know if this is a (known) bug or am I missing something?
>
> My partition/volumes setup is as follows:
>
> boot
> luks
> -lvm
> --root
> --swap
> --home
>
> menu.lst:
> title Arch Linux
> root (hd0,0)
> kernel /vmlinuz-linux root=/dev/lvmvol/root
> cryptdevice=/dev/disk/by-uuid/d9cfc224-4ece-489b-a231-f5a5a876354f:luksvol
> ro quiet
> initrd /initramfs-linux.img
>
> fstab:
> UUID=b4a938a4-1a49-42dc-9535-472efcccc264 /boot ext2 defaults,noatime 0 1
> /dev/lvmvol/root / ext4 defaults,noatime 0 1
> /dev/lvmvol/home /home ext4 defaults,noatime 0 2
> /dev/lvmvol/swap none swap defaults 0 0
>
> mkinitcpio.conf:
> MODULES=""
> BINARIES=""
> FILES=""
> HOOKS="base udev usb usbinput keymap encrypt lvm2 autodetect pata scsi
> sata filesystems"
>
>
I suppose everything is fine except that your home partition has label "root".
tune2fs -L home /dev/path/to/home
--
Best regards,
Chris
O< ascii ribbon campaign
stop html mail - www.asciiribbon.org
More information about the arch-general
mailing list