Error: Operation failed due to one or more of the following:
- Incorrect keyfile(s).
- Incorrect password.
- Incorrect Volume PIM number.
- Incorrect PRF (hash).
- Not a valid volume.
I have reformated the 500's drive. Still fails
I have deleted and recreated the volumes. Still fails
I have done keyfiles removal and re-application. Still fails
I have let them use the same keyfile. Still fails
I have removed all permissions form files and folders. Still fails
I have altered and changed the above 500GBs command and it fails.
I have removed the mount directory and let it use the veracrypts default and it fails.
I have removed the -t --non-interactive and selecting the Keyfile manualy via the pop up GUI and it fails.
I have transfered the 20GB volume (noted as 500GB) into the 80GB's volume and it fails
I have transfered the 80GB volume into the 500s drive and still works.
If I recreate and use only password -p and no keyfile then they both work. $ veracrypt /mnt/80GBHDD1/Vol-1-70GB -p test vera80GB1
$veracrypt /mnt/500GBHDD1/500GB -p test vera500GB1
Note: I have not tried both, password and keyfile. I don't want a password.
I have spent the better part of a day on this and have gotten nowhere.
Last edit: Paul 2016-04-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to reproduce your issue but I never had a failure. Used two USB disks and keyfile like you.
You didn't say if mounting the 20GB (500GB) volume as first one to mount instead of 80GB works or not. This would be an intersting test.
Anyway, I don't see a reason for this to happen...I would need a simple use case that can be reproduced.
If you put all volumes and the keyfile on the same disk, does it work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry Mounir, In my frustration I failed to mention I'm using Linux Mint. If I wasted your time I apologise.
*I decided to try again and this is what I found. *
Short story: It looks like my fault/Bad GUI information:
It looks like VC cannot create more than one keyfile volume at a time (without closing the GUI) or it does not handle having the first keyfile in the selection box when you are selecting the keyfiles for additional volumes. Maybe that's it? you can't have any other keyfiles in that box even though you have selected one specific keyfile for the new volume. You have to remove previous keyfiles or close the GUI and start again each time for each additional volume.
Conclusion:
-In the keyfiles box, selecting/highlighting a keyfile does not apply the keyfile to the volume. Highlight is for removal.
-Even if there are other keyfiles in the box it will default back to the first keyfile.
-To select multiple keyfiles you have to hold the Ctrl key. Not tested to see if it defaults back to first keyfile or actually applies all selected.
Resolving: Highlighting a specific keyfile/s and clicking 'OK' should apply that key file and not any others. That's how everything works, highlight > OK or multiple highlights > OK.
So there is something not quite right there.
Long story:
500GB HDD
Using VeraCrypt GUI: Once done creating the volumes close VC GUI.
Create volume 8GB 'test1'
generate and save keyfile to Desktop, 'test1keyfile'
Select NTFS
Select will add files > 4GB
Will mount on other operating systems.
Create a folder on the Desktop. 'test1folder'
Create volume 10GB 'test2'
Generate and save keyfle to Desktop, 'test2keyfile'
Select NTFS
Select will add files > 4GB
Will mount on other operating systems.
Create a folder on the Desktop. 'test2folder'
We Have:
500GB HDD
Two volumes within, 8GB and 10GB. 'test1' and 'test2'
Two Keyfiles on the desktop corresponding to each volume. 'test1keyfile' and 'test2keyfile'
Two folders for mounting the VeraCrypt Volumes. 'test1folder' and 'test2folder'
Open terminal Ctrl-Alt-T: NOTE > mnt/WD5000AAKX-001CA0_WD-WMAYU0485821 is reference to my HDD not yours:)
Error: Operation failed due to one or more of the following:
- Incorrect keyfile(s).
- Incorrect password.
- Incorrect Volume PIM number.
- Incorrect PRF (hash).
- Not a valid volume.
Open VeraCrypt GUI:
Mount 'test2' It should fail
Mount 'test2' with 'test1keyfile' and it should mount. 'test1keyfile' was applied when 'test2keyfile' was selected?
Unmount if any are mounted.
Close VC and reopen.
Recreate 'test2' volume and selecting its 'test2keyfile' (again)
I have two volumes both with keyfile only. 1X80GB 1X20GB (20GB noted as 500GB) volumes on two seperate HDD's Linux Mint 17.3
Keyfile/s are on a USB
I can mount both via the GUI with no issues
I can mount the 80GB via the command line:
$veracrypt -t --non-interactive -k /mnt/USB0001LMVC/testkeyfile /mnt/80GBHDD1/Vol-1-70GB vera80GB1
I can not mount any additional volumes whether the 80GB is mounted or not, 20GB (noted as 500GB):
$veracrypt -t --non-interactive -k /mnt/USB0001LMVC/KeyFile500GB /mnt/500GBHDD1/500GB vera500GB1
Error: Operation failed due to one or more of the following:
- Incorrect keyfile(s).
- Incorrect password.
- Incorrect Volume PIM number.
- Incorrect PRF (hash).
- Not a valid volume.
I have reformated the 500's drive. Still fails
I have deleted and recreated the volumes. Still fails
I have done keyfiles removal and re-application. Still fails
I have let them use the same keyfile. Still fails
I have removed all permissions form files and folders. Still fails
I have altered and changed the above 500GBs command and it fails.
I have removed the mount directory and let it use the veracrypts default and it fails.
I have removed the -t --non-interactive and selecting the Keyfile manualy via the pop up GUI and it fails.
I have transfered the 20GB volume (noted as 500GB) into the 80GB's volume and it fails
I have transfered the 80GB volume into the 500s drive and still works.
If I recreate and use only password -p and no keyfile then they both work.
$ veracrypt /mnt/80GBHDD1/Vol-1-70GB -p test vera80GB1
$veracrypt /mnt/500GBHDD1/500GB -p test vera500GB1
Note: I have not tried both, password and keyfile. I don't want a password.
I have spent the better part of a day on this and have gotten nowhere.
Last edit: Paul 2016-04-16
Additional:
Tested it with keyfile and password. It's a keyfile issue.
Also another issue is that you can't add a password to a volume that is on keyfile access.
I tried to reproduce your issue but I never had a failure. Used two USB disks and keyfile like you.
You didn't say if mounting the 20GB (500GB) volume as first one to mount instead of 80GB works or not. This would be an intersting test.
Anyway, I don't see a reason for this to happen...I would need a simple use case that can be reproduced.
If you put all volumes and the keyfile on the same disk, does it work?
Sorry Mounir, In my frustration I failed to mention I'm using Linux Mint. If I wasted your time I apologise.
*I decided to try again and this is what I found. *
Short story: It looks like my fault/Bad GUI information:
It looks like VC cannot create more than one keyfile volume at a time (without closing the GUI) or it does not handle having the first keyfile in the selection box when you are selecting the keyfiles for additional volumes. Maybe that's it? you can't have any other keyfiles in that box even though you have selected one specific keyfile for the new volume. You have to remove previous keyfiles or close the GUI and start again each time for each additional volume.
Conclusion:
-In the keyfiles box, selecting/highlighting a keyfile does not apply the keyfile to the volume. Highlight is for removal.
-Even if there are other keyfiles in the box it will default back to the first keyfile.
-To select multiple keyfiles you have to hold the Ctrl key. Not tested to see if it defaults back to first keyfile or actually applies all selected.
Resolving: Highlighting a specific keyfile/s and clicking 'OK' should apply that key file and not any others. That's how everything works, highlight > OK or multiple highlights > OK.
So there is something not quite right there.
Long story:
500GB HDD
Using VeraCrypt GUI: Once done creating the volumes close VC GUI.
Create volume 8GB 'test1'
generate and save keyfile to Desktop, 'test1keyfile'
Select NTFS
Select will add files > 4GB
Will mount on other operating systems.
Create a folder on the Desktop. 'test1folder'
Create volume 10GB 'test2'
Generate and save keyfle to Desktop, 'test2keyfile'
Select NTFS
Select will add files > 4GB
Will mount on other operating systems.
Create a folder on the Desktop. 'test2folder'
We Have:
500GB HDD
Two volumes within, 8GB and 10GB. 'test1' and 'test2'
Two Keyfiles on the desktop corresponding to each volume. 'test1keyfile' and 'test2keyfile'
Two folders for mounting the VeraCrypt Volumes. 'test1folder' and 'test2folder'
Open terminal Ctrl-Alt-T: NOTE > mnt/WD5000AAKX-001CA0_WD-WMAYU0485821 is reference to my HDD not yours:)
sudo veracrypt -t --non-interactive -k /home/me/Desktop/test1keyfile /mnt/WD5000AAKX-001CA0_WD-WMAYU0485821/test1 Desktop/test1folder
First one mounts. then:
sudo veracrypt -t --non-interactive -k /home/me/Desktop/test2keyfile /mnt/WD5000AAKX-001CA0_WD-WMAYU0485821/test2 Desktop/test2folder
after a few seconds you get the below error:
Error: Operation failed due to one or more of the following:
- Incorrect keyfile(s).
- Incorrect password.
- Incorrect Volume PIM number.
- Incorrect PRF (hash).
- Not a valid volume.
at the terminal:
veracrypt -d
Try again with 'test2' volume.
sudo veracrypt -t --non-interactive -k /home/me/Desktop/test2keyfile /mnt/WD5000AAKX-001CA0_WD-WMAYU0485821/test2 Desktop/test2folder
same error.
Open VeraCrypt GUI:
Mount 'test2' It should fail
Mount 'test2' with 'test1keyfile' and it should mount. 'test1keyfile' was applied when 'test2keyfile' was selected?
Unmount if any are mounted.
Close VC and reopen.
Recreate 'test2' volume and selecting its 'test2keyfile' (again)
Close VC
At the terminal:
sudo veracrypt -t --non-interactive -k /home/me/Desktop/test2keyfile /mnt/WD5000AAKX-001CA0_WD-WMAYU0485821/test2 Desktop/test2folder
sudo veracrypt -t --non-interactive -k /home/me/Desktop/test1keyfile /mnt/WD5000AAKX-001CA0_WD-WMAYU0485821/test1 Desktop/test1folder
They should now both mount without issues.
There is something going on with the keyfiles selection box.
See the revelation at the beginning for final conclusion.
Last edit: Paul 2016-04-24