FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 05-06-2012, 02:16 AM
Mauro Santos
 
Default LVM on LUKS and fsck

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"


--
Mauro Santos
 
Old 05-06-2012, 03:53 AM
Sorin-Mihai Vārgolici
 
Default LVM on LUKS and fsck

In ~4 years of using encrypted lvm, I never saw that /dev/lvmvol thing.
I can't figure how you managed to create it and use it in your
config(s). Usually is something like /dev/mapper/lvmgroup-lvmvolume. Are
you sure that LVM was created corectly? Did the system ever boot fine?


--
<>< Sorin-Mihai Vārgolici
Proud member of Ceata (http://ceata.org/)
Arcada developer (https://arcadaproject.org/)
 
Old 05-06-2012, 04:47 AM
Christian Hesse
 
Default LVM on LUKS and fsck

Mauro Santos <registo.mailling@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
 
Old 05-06-2012, 06:02 AM
Jayesh Badwaik
 
Default LVM on LUKS and fsck

On Sunday 06 May 2012 06:53:42 Sorin-Mihai Vārgolici wrote:
> In ~4 years of using encrypted lvm, I never saw that /dev/lvmvol thing.
> I can't figure how you managed to create it and use it in your
> config(s). Usually is something like /dev/mapper/lvmgroup-lvmvolume. Are
> you sure that LVM was created corectly? Did the system ever boot fine?

It is there in LVM, not sure about encrypted LVM though. You have both
/dev/lvmgroup/lvmvolume and /dev/mapper/lvmgroup-lvmvolume. The
/dev/lvmgroup/lvmvolume is a softlink to /dev/dm-x where x is the appropriate
number.
--
Jayesh Badwaik
stop html mail | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
 
Old 05-06-2012, 06:57 AM
Sorin-Mihai Vārgolici
 
Default LVM on LUKS and fsck

On 06.05.2012 09:02, Jayesh Badwaik wrote:
It is there in LVM, not sure about encrypted LVM though. You have
both

/dev/lvmgroup/lvmvolume and /dev/mapper/lvmgroup-lvmvolume. The
/dev/lvmgroup/lvmvolume is a softlink to /dev/dm-x where x is the
appropriate
number.


Is the same on encrypted LVM, but the OP said /dev/lvmvol/root and so
on, which is not /dev/lvmgroup/vlmvolume.


--
<>< Sorin-Mihai Vārgolici
Proud member of Ceata (http://ceata.org/)
Arcada developer (https://arcadaproject.org/)
 

Thread Tools




All times are GMT. The time now is 07:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org