SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-01-29 22:50:11

Wahlgren
Member
Registered: 2011-04-12
Posts: 17

LVM whole-disk encryption fail

Tried to install CrunchBang 11 "Waldorf" on my laptop with "Guided - use entire disk and set up encrypted LVM", but it failed. The reason is after selecting the option and starting the partitioning, the usual "enter a passphrase" option is not visible. I have to chose cancel or hit escape key for it to show and that step breaks the partitioning.

Someone found a solution to this problem?

Edit: Seem to work now. Had to wait for about 2 hours before the writing to disk to finish and then was prompted to enter a passphrase. Strange it took such a long time on a SSD? Also after enter GRUB it says:

Volume group "chrunchbang" not found
Skipping volume group chrunchbang
Unable to find LVM group crunchbang/root
Unlocking the disk /dev/disk/......
Enter passphrase:

Seems I can boot into the system and file structure looks ok. In Thunar my SSD shows as "128 GB Unrecognised", but maybe suppose to be like that? Everything seems ok tho, so have updated and enjoying using this distro.

Last edited by Wahlgren (2013-01-30 16:08:06)


#! 11 | Intel i5-2450M 2.50GHz | 8GB RAM | SAMSUNG SSD 830 128GB | Nvidia GeForce 610M

Offline

Be excellent to each other!

#2 2013-01-30 16:17:12

Wahlgren
Member
Registered: 2011-04-12
Posts: 17

Re: LVM whole-disk encryption fail

I did an fdisk -l and got this result

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008bba4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   250068991   124783617    5  Extended
/dev/sda5          501760   250068991   124783616   83  Linux

Disk /dev/mapper/sda5_crypt: 127.8 GB, 127776325632 bytes
255 heads, 63 sectors/track, 15534 cylinders, total 249563136 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/sda5_crypt doesn't contain a valid partition table

Disk /dev/mapper/crunchbang-root: 9999 MB, 9999220736 bytes
255 heads, 63 sectors/track, 1215 cylinders, total 19529728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/crunchbang-root doesn't contain a valid partition table

Disk /dev/mapper/crunchbang-swap_1: 4273 MB, 4273995776 bytes
255 heads, 63 sectors/track, 519 cylinders, total 8347648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/crunchbang-swap_1 doesn't contain a valid partition table

Disk /dev/mapper/crunchbang-home: 113.5 GB, 113502060544 bytes
255 heads, 63 sectors/track, 13799 cylinders, total 221683712 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/crunchbang-home doesn't contain a valid partition table

Last edited by Wahlgren (2013-01-30 16:18:01)


#! 11 | Intel i5-2450M 2.50GHz | 8GB RAM | SAMSUNG SSD 830 128GB | Nvidia GeForce 610M

Offline

#3 2013-03-03 01:34:09

skbierm
#! Member
From: Germany
Registered: 2012-07-17
Posts: 89

Re: LVM whole-disk encryption fail

You enabled the "secure" erase of the complete harddisk (which actually also writes a random pattern on the disk. Doing that, takes based on you're machine and the hard disk size hours up to a whole day ^.^
This step is needed, so that it is not possible to see, that only a part of you're hard disk is encrypted. Otherwise - for a possible attacker that got you're machine in his hands, it's "easier" to decide where/how many informations are on you're disk.
Hopefuly you're chosen a very long key and a good setup for the encryption - to not get the result shown here: http://security.stackexchange.com/quest … nd-low-ram

Best regards,

Sascha


Running #! on
* Lenovo ThinkPad Edge e420s, Intel Core i5-2430M, 8 GB Ram, 320 GB HD, 1366x768, Intel GMA HD 3000 + AMD Radeon HD 6630M 2GB
* ASUS F55A-091D, Intel Pentium B980, 4 GB Ram, 500 GB HD, Intel HD Graphics, 1366x768
* Panasonic ToughBook CF-19, Intel Core Duo U7500, 4 GB Ram, 500 GB HD, Intel GMA 950, 1024x768 Touchdisplay

Offline

#4 2013-03-03 02:56:06

sorcerer's_apprentice
#! Junkie
From: oblivion
Registered: 2013-02-09
Posts: 293

Re: LVM whole-disk encryption fail

Wahlgren wrote:

Tried to install CrunchBang 11 "Waldorf" on my laptop with "Guided - use entire disk and set up encrypted LVM", but it failed. The reason is after selecting the option and starting the partitioning, the usual "enter a passphrase" option is not visible. I have to chose cancel or hit escape key for it to show and that step breaks the partitioning.

Someone found a solution to this problem?

Edit: Seem to work now. Had to wait for about 2 hours before the writing to disk to finish and then was prompted to enter a passphrase. Strange it took such a long time on a SSD? Also after enter GRUB it says:

Volume group "chrunchbang" not found
Skipping volume group chrunchbang
Unable to find LVM group crunchbang/root
Unlocking the disk /dev/disk/......
Enter passphrase:

Seems I can boot into the system and file structure looks ok. In Thunar my SSD shows as "128 GB Unrecognised", but maybe suppose to be like that? Everything seems ok tho, so have updated and enjoying using this distro.

Everything went fine. That's the way it is supposed to be. Naturally on boot the LVM-group can't be found since it is encrypted. So you first have to enter your password to unlock it. Have fun with #!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo