Ask Your Question

cryptsetup ununderstood

asked 2013-07-11 08:45:49 -0500

amod gravatar image

Hi all,

I made a partition as /dev/sda3 with fdisk -cu.

Later i did partx -av and rebooted.

I did a cryptsetup luksFormat /dev/sda3 further luksOpen myfile.

Till this moment everything was fine.

Then i did a luksClose and deleted sda3 with fdisk -cu following partx -av reboot

the /dev/sda3 was gone.

I tried to again make /dev/sda3 with the above procedure

but here i did not do a cryptsetup. This time the graphical disk utility showed /dev/sda3 as encrypted allready. i am confused. to make sure myself escaping luksFormat i did luksOpen and damm it asked me the password of the /dev/sda3 which i had made it previously!!!!

In short if i have deleted the /dev/sda3 how could it ask me the password of the previous one.

Are there any other entries i have to remove?? Hope so i have explained it in good manner.



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-11 21:05:30 -0500

When you deleted /dev/sda3, you deleted the partition table entry - not the data on the partition. When you recreated the partition in the same place, the data was still available.

The same process is used to resize a partition - delete it, then create a new partition starting at the same place but ending somewhere else to make a larger or smaller partition.

**note: resizing the partition is not the same as resizing a filesystem. Back up your data before low level disk operations like this.

edit flag offensive delete link more

Question Tools


Asked: 2013-07-11 08:45:49 -0500

Seen: 108 times

Last updated: Jul 11 '13