I only use Linux (Arch). I have two computers, both single-booted with Linux, the following behaviour is the same on both.
With a USB stick mounted using Veracrypt2 (as a "Device"), my OS crashed. After the reboot I remounted the Veracrypt volume via the GUI, it was mounted read-only (ro). I checked the Settings->Default Mount Parameters. The ro flag was not set.
The attempt to mount the drive via the Veracrypt GUI gives:
.. which begs the question, why doesn't the GUI do this? I have checked the config XML file, which shows : <config key="FilesystemOptions">rw</config> <config key="MountVolumesReadOnly">0</config>
Anyway, mounted this way Veracrypt is fine and shows the mounted volume, all files accessible (nothing lost). But the --fs-options=rwdid not have the desired effect.
Note: I have not lost any files, all the files are accessible, no problem.
I have tried the check filesystem and repair file system, which uses fsck. They both show errors associated with the .TRASH folder. Frustratingly, it does not allow any interaction. Not even vi commands, so I can't post the output here. (e.g. arrow keys don't work, any touch of the "Enter" button closes the window).
This command can't be used either as the OS complains about the device being ro
sudoddif=/dev/zeroof=/dev/sdg1
Checking the mounted ro file system with
sudo fsck.fat -vn /dev/sdg1
As is a USB it is formatted as MSDOS compatible. The flags mean "verbose", and "don't actually do anything". This showed that fsck could not check the mounted drive. dmesg produced a not very informative message. I tried (in desperation):
sudo mount -o remount,rw myMountPoint
But, as I had hoped, this also doesn't work; after all, it's an encrypted drive. (If it had worked I would have been horrified!)
Since my files are already fully backed-up, I have tried to brutally re-format the drive, but no Linux utility (fdisk, parted, even gparted) will have anything to do with touching an ro drive. They all refuse!
My question is: Is there anything I can do within Veracrypt to rescue this perfectly OK (apart from being determinedly ro) USB drive, i.e. the hardware, or do I have to bin it? Maybe one for a Linux forum if you guys can't answer.
The cruel fact is that since Windows doesn't care, it would probably be able to reformat the drive without a second's thought. :)
Roger.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems, the file system of the partition within your VC volume was damaged by the crash. Maybe you'll be able repair the volume, depending on the used file system (I either didn't catch it or you didn't provide information about it).
First, mount the volume using the mount option "do not mount". This will give access to the insides of the VC volume, but should prevent the system from mounting the file system ro. But you will be able to do stuff with it this way, because it will behave like an unmounted partition.
Second, do whatever is possble to repair the file system (depends on fs in use).
Greets
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I only use Linux (Arch). I have two computers, both single-booted with Linux, the following behaviour is the same on both.
With a USB stick mounted using Veracrypt2 (as a "Device"), my OS crashed. After the reboot I remounted the Veracrypt volume via the GUI, it was mounted read-only (ro). I checked the Settings->Default Mount Parameters. The ro flag was not set.
The attempt to mount the drive via the Veracrypt GUI gives:
However, the following works fine:
.. which begs the question, why doesn't the GUI do this? I have checked the config XML file, which shows :
<config key="FilesystemOptions">rw</config>
<config key="MountVolumesReadOnly">0</config>
Anyway, mounted this way Veracrypt is fine and shows the mounted volume, all files accessible (nothing lost). But the
--fs-options=rw
did not have the desired effect.Note: I have not lost any files, all the files are accessible, no problem.
I have tried the check filesystem and repair file system, which uses fsck. They both show errors associated with the .TRASH folder. Frustratingly, it does not allow any interaction. Not even vi commands, so I can't post the output here. (e.g. arrow keys don't work, any touch of the "Enter" button closes the window).
This command can't be used either as the OS complains about the device being ro
Checking the mounted ro file system with
As is a USB it is formatted as MSDOS compatible. The flags mean "verbose", and "don't actually do anything". This showed that fsck could not check the mounted drive. dmesg produced a not very informative message. I tried (in desperation):
But, as I had hoped, this also doesn't work; after all, it's an encrypted drive. (If it had worked I would have been horrified!)
Since my files are already fully backed-up, I have tried to brutally re-format the drive, but no Linux utility (fdisk, parted, even gparted) will have anything to do with touching an ro drive. They all refuse!
My question is: Is there anything I can do within Veracrypt to rescue this perfectly OK (apart from being determinedly ro) USB drive, i.e. the hardware, or do I have to bin it? Maybe one for a Linux forum if you guys can't answer.
The cruel fact is that since Windows doesn't care, it would probably be able to reformat the drive without a second's thought. :)
Roger.
produces:
Whereas:
produces:
It seems, the file system of the partition within your VC volume was damaged by the crash. Maybe you'll be able repair the volume, depending on the used file system (I either didn't catch it or you didn't provide information about it).
First, mount the volume using the mount option "do not mount". This will give access to the insides of the VC volume, but should prevent the system from mounting the file system ro. But you will be able to do stuff with it this way, because it will behave like an unmounted partition.
Second, do whatever is possble to repair the file system (depends on fs in use).
Greets
Many thanks. The USB is fat32; my OS filesystem is btrfs (more's the pity)..
With the "do not mount" filesystem option requested the GUI gave the same error as above, top, so I used:
which returned with no errors but the following is still the case:
(obviously not good), and
... still read only.
So I have reformatted the dam thing from a Windows pc. :(
(How do I mark this thread as closed?)
Last edit: RogerP 2024-01-24