Assuming your disk will be recognized on another computer as /dev/sdb and encrypted partition as /dev/sdb2.sudo cryptsetup luksOpen /dev/sdb2 luks-sdb2... [by marcinskarbek]
Actually i'am on linux redhat 6.4 enterprise and i would like to resize /dev/sdb2 partition ,this partion is not LVM .however i added space into the disk /dev/sdb but i found too complicate to resize my sdb2 partition ./dev/sdb2 contain an FS for oracle database and i'm affraid to lose data .pleaaaaase help
I am in progress of resizing a LUKS encrypted partition that contains a single ext4 filesystem (no LVM or something). The cryptsetup FAQ recommends to remove the old partition and recreate it, but that sounds like wasting a lot time. Therefore I want to proceeed by manually, carefully resizing the partition.
I created an encrypted partition using cryptsetup. I can confirm that the partition is encrypted by checking the partition in the disk utility (there would be an icon of a pad lock on the encrypted partition). How do I check if the partition is encrypted from a terminal? fdisk -l doesnt give any information whether it is an encrypted partition or not! Any ideas?
I created an encrypted partition on my Ubuntu 12.04 server using cryptsetup and luksFormat. I created a mount point and mount it thusly
sudo cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
sudo cryptsetup luksOpen /dev/sdb1 sdb1
sudo mkfs.ext3 /dev/mapper/sdb1
sudo mount /dev/mapper/sdb1 /crypt
I have the permissions on /crypt set to 777.