In some earlier versions of the ubuntu installer, it was possible to
encrypt the whole drive - whole means excl. /boot.

So I have a partition of sda1 and sda5, where sda1 is /boot and sda5
contains the LVM part with "system and swap"

2.6.27-11-generic is the latest kernel, where cryptsetup is still working, 
config-2.6.28-8-generic does not offer to enter an ecryption key and thus fails.

The 2.6.27-11 fails on setting up the lvm part, so I have to do that in
the initramfs (busybox?) shell with

- kvm
- kvm> lvchange -ay /dev/mapper/swap
- kvm> lvchange -ay /dev/mapper/system
- ^D (or exit)
- ^D


More info:
fdisk -l
/dev/sda1   *           1          31      248976   83  Linux
/dev/sda2              32         996     7751362+   5  Extended
/dev/sda5              32         996     7751331   83  Linux

cryptsetup status /dev/mapper/sda5_crypt 
/dev/mapper//dev/mapper/sda5_crypt is active:
  cipher:  aes-cbc-essiv:sha256
  keysize: 256 bits
  device:  /dev/sda5
  offset:  2056 sectors
  size:    15500606 sectors
  mode:    read/write

lvm> lvmdiskscan
  /dev/ram0        [       64.00 MB] 
  /dev/block/254:0 [        7.39 GB] LVM physical volume

lvm> lvdisplay 
  --- Logical volume ---
  LV Name                /dev/serenity/swap
  VG Name                serenity
  LV UUID                NcdDdy-tt8l-sspt-13u3-T2ti-yXXc-xJ1a1H
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             513
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
  --- Logical volume ---
  LV Name                /dev/serenity/system
  VG Name                serenity
  LV UUID                1izsR7-JxkZ-gL1j-eDHD-UFWp-6A3K-18AZP7
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                5.39 GB
  Current LE             1379
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

-- 
udev has wrong name for devmapper devices, cryptsetup initramfs hook fails
https://bugs.launchpad.net/bugs/325690
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to