tact, your post #6, slabo, any help, totally confused.
I set up a completely new encrypted system ( except for boot ). It works booting from the hard drive, just enter the password and off we go.
Then I wanted to boot from the desktop CD so I could make some changes. This is what I get. The encrypted partition is sda2, sdb is not in use yet.
Code:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4c3674ee
Device Boot Start End Blocks Id System
/dev/sda1 * 1 18 144553+ 83 Linux
/dev/sda2 19 9729 78003607+ 83 Linux
Disk /dev/sdb: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x78ec3f2d
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24 192748+ 83 Linux
/dev/sdb2 25 2456 19535040 83 Linux
/dev/sdb3 2457 3672 9767520 83 Linux
/dev/sdb4 3673 15830 97659135 83 Linux
root@ubuntu:/home/ubuntu# apt-get install lvm2 cryptsetup
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
cryptsetup lvm2
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 414kB of archives.
After this operation, 1331kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com hardy/main cryptsetup 2:1.0.5-2ubuntu12 [88.7kB]
Get:2 http://archive.ubuntu.com hardy/main lvm2 2.02.26-1ubuntu9 [325kB]
Fetched 414kB in 3s (118kB/s)
Selecting previously deselected package cryptsetup.
(Reading database ... 98542 files and directories currently installed.)
Unpacking cryptsetup (from .../cryptsetup_2%3a1.0.5-2ubuntu12_i386.deb) ...
Selecting previously deselected package lvm2.
Unpacking lvm2 (from .../lvm2_2.02.26-1ubuntu9_i386.deb) ...
Setting up cryptsetup (2:1.0.5-2ubuntu12) ...
update-initramfs is disabled since running on a live CD
Setting up lvm2 (2.02.26-1ubuntu9) ...
Backing up any LVM2 metadata that may exist...done.
update-initramfs is disabled since running on a live CD
root@ubuntu:/home/ubuntu# mkdir /media/test
root@ubuntu:/home/ubuntu# modprobe dm-crypt
root@ubuntu:/home/ubuntu# cryptsetup luksOpen /dev/sda2 test
Enter LUKS passphrase:
Enter LUKS passphrase:
Enter LUKS passphrase:
Command failed: No key available with this passphrase.
root@ubuntu:/home/ubuntu#
I've tried this several times, if I do a normal boot, not from the CD, then the above code works. My fingers are well used to keying in the password so I don't think it's finger trouble.
Any suggestions?
Bookmarks