hard drive:
MyBook Pro 500 GB, connected through USB 2.0
this one: http://www.wdc.com/en/products/Products.asp?DriveID=242
4 primary partition, all working
this is the fdisk
# fdisk /dev/sda
The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 42 337333+ c W95 FAT32 (LBA)
/dev/sda2 43 26593 213270907+ 83 Linux
/dev/sda3 30422 60801 244027350 b W95 FAT32
/dev/sda4 26594 30421 30748410 83 Linux
Partition table entries are not in disk order
the disk order (but i don't think this really matter) is 1, 2, 4, 3
kernel configured properly (has requested by dm-crypt)
and loaded module dm-mod dm-crypt aes aes-i586 sha256 sha512
i issue this command:
# cryptsetup luksFormat /def/sda4
WARNING!
========
This will overwrite data on /def/sda4 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Unable to obtain sector size for /def/sda4Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /def/sda4 contains at least 133 sectors.
Failed to write to key storage.
Command failed.
as you can see it complain because it can't get sector size :/
i found an unresolved topic like mine here: http://comments.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/1726
kernel:
Linux mastro 2.6.18-k8-crypt #1 SMP Sat Jan 13 12:11:04 CET 2007 i686 GNU/Linux
on a Notebook Asus A4K