How to Extend Volume of Lost EXT4 LUKS Partition
Posted: 21 Sep 2019, 22:35
KDE Partition Manager broken my HDD's partition table. So I installed testdisk and when trying to writing new partition table everything has gone.
Then I tried testdisk several times. My HDD has NTFS part, EXT4 part and LUKS part. I saved NTFS and EXT4 parts. I figured it out. I found LUKS Header. It's 2mb but I couldn't extend LUKS part.
I tried to edit last sector number of LUKS manually by using Add Partition but It didn't work.
How can I extend it? I know where is my encrypted files on sectors. If I can't extend it I want to know that how can I decrypt LUKS sectors using LUKS Header. I backed up LUKS Header to a USB with a .dd extension.
Then I tried testdisk several times. My HDD has NTFS part, EXT4 part and LUKS part. I saved NTFS and EXT4 parts. I figured it out. I found LUKS Header. It's 2mb but I couldn't extend LUKS part.
I tried to edit last sector number of LUKS manually by using Add Partition but It didn't work.
How can I extend it? I know where is my encrypted files on sectors. If I can't extend it I want to know that how can I decrypt LUKS sectors using LUKS Header. I backed up LUKS Header to a USB with a .dd extension.