Encrypted cache drive "Unmountable: Volume not encrypted"


lnxd

Recommended Posts

Hey everyone,

 

Two days ago I added my first cache drive to my server, a brand new 1tb Samsung 970 EVO Plus. I had a bit of trouble initially getting it to format which I think was Safari related, but I eventually managed to get it to format as XFS - Encrypted. Or at least that's what I told it to do. Once encrypted, after at least one restart I realised it was showing "btrfs" as the filesystem.

 

I restarted several times without issue, having to re-enter the password to start the array each time, and it just continued to show "btrfs". It was definitely encrypted, because the Shares page reflected it. Sadly at this point I moved quite a few important files onto the drive as I assumed it was safe to do so.

 

Then today I swapped the NVME slots for my two SSDs. The other SSD mounts normally, but when I attempt to mount my new cache drive it shows "Unmountable: Volume not encrypted", which I've noticed it does this regardless of what password I enter. If I switch the filesystem manually to any of the non-encrypted options or Auto it shows "Unmountable: No file system". 

 

The output of fdisk -l is as follows:

 

Disk /dev/loop0: 12.88 MiB, 13488128 bytes, 26344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 7.102 MiB, 8380416 bytes, 16368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 14.33 GiB, 15376000000 bytes, 30031250 sectors
Disk model: Ultra Fit       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 30031249 30029202 14.3G  c W95 FAT32 (LBA)


Disk /dev/nvme1n1: 232.91 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 970 EVO Plus 250GB          
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot Start       End   Sectors   Size Id Type
/dev/nvme1n1p1         64 488397167 488397104 232.9G 83 Linux


Disk /dev/nvme0n1: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 970 EVO Plus 1TB            
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot Start        End    Sectors   Size Id Type
/dev/nvme0n1p1         64 1953525167 1953525104 931.5G 83 Linux


Disk /dev/sdb: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors
Disk model: ST4000DM000-1F21
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 8C46D967-8496-445F-937A-295FF34C51D7

Device     Start        End    Sectors  Size Type
/dev/sdb1     64 7814037134 7814037071  3.7T Linux filesystem


Disk /dev/md1: 232.91 GiB, 250059317248 bytes, 488397104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

 

I've also attached the logs if anyone could please help me to either get it to mount or recover my data?

 

Thank in advance for any assistance :)

doonserver-diagnostics-20201018-1739.zip

Link to comment

Thanks for getting back to me! 

 

To be honest, I had a massive time constraint so I ended up just sacrificing the data and I'll have to rebuild 😭

 

Luckily there was nothing personal in there, it was just hours and hours of work that I'll have to redo.

 

That was one of the many things I tried before erasing the cache drive, I got:

Device /dev/nvme0n1p1 is not a valid LUKS device.

I also couldn't recover the partition using fsck, btrfs check or xfs_repair. I even had a look using parted and apart from having a size assigned there were no further details. I even tried physically swapping the drives back to their original locations but unsurprisingly all that did was swap the physical device names. I also tried mounting it using unassigned devices as well to no avail, and a lot of other things that I can't recall.

 

I'm confident there was something simple I've missed, so if there was please let me know in case I or others encounter this again 🙂

Link to comment
1 hour ago, lnxd said:

Device /dev/nvme0n1p1 is not a valid LUKS device.

That's means something went wrong with the encryption.

 

1 hour ago, lnxd said:

I also couldn't recover the partition using fsck, btrfs check or xfs_repair

That's normal, if the device can't be unencrypted nothing else will work, make sure you use encryption only if really needed, if not it's just one more thing that can go wrong.

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.