4

I have a trouble when mounting a veracypt file container,saying

mount: /dev/mapper/veracrypt1: can't read superblock

How can I fix this error? Any help will be appreciated.

OS:Ubuntu 16.04

veracrypt 1.21

karel
  • 110,292
  • 102
  • 269
  • 299

1 Answers1

4

Connect your file container with VeraCrypt the usual way, except that you should uncheck the option that mounts the volume. That is unlock the file container, but do not mount it. Then...

fdisk -l                       # This to know the name of the device.
sudo bash
fsck /dev/mapper/veracrypt1    # The device name should go here, e.g. /dev/mapper/veracrypt1

Here allow fsck to fix the volume for you. After a successful fix, dismount the (yet not even mounted) volume from VeraCrypt, then mount it again, but this time the usual way with actually mounting it at the specified path in the file system.

Babber
  • 41
  • 3
  • This answer worked flawlessly. Thank you. I was about to pull the drive and replace it. You just saved me like a hundred bucks. – Lakey Jul 11 '23 at 13:26