Win 10 "You need to format the disk in drive....."
Open source disk encryption with strong security for the Paranoid
Brought to you by:
idrassi
Win 10 when insterting raw volume, get "You need to format the disk in drive X: before you can usee it", see attachment. This is problematic because "Format Disk" may accidently be clicked. According to "http://superuser.com/questions/49382/how-do-i-disable-you-need-to-format-this-disk-message-in-windows-vista-7" this maybe fixed by changeing the partion type from FAT 0x06 to something else. How about an option when creating the raw volume???
Hi This is a Windows message. This is how windows has always identified drives encrypted with TC. VC is probably no different. I think that's probably just how it is. I'm no expert but probably a bit of a conundrum to start getting VC to interfere with how Windows identifies the drive.
If you are attaching an external drive you are aware of what has produced the message so you can just cancel the Windows message and mount the drive manually. If Windows could recognise the disk as accessiible then it wouldn't be encrypted. If the disk was lost, what would you want to happen? That the person in possession of your machine could simply access the encrypted partition/device or be informed that the drive was encrypted with VC? They would just be invited to format it. Exactly what I would want to happen.
If the message is produced from trying to access an internal drive it is possible to add the drive/partition as a system favourite/favourite volume and select to have VC to mount it automatically at boot. Then you won't see the Windows message.
Open disk manager, right click on offending drive, select change drive letter, click remove.
Theis post covers the two solutions there are: https://superuser.com/a/49385/623845
Basically, you either remove the drive letter in disk management, which removes the prompt for known disks, or use a simple AutoHotKey script to automatically close the format prompt for you. Or both.
The AHK script for english version of Windows will look like this:
What it does, it looks for a window titled "Microsoft Windows" with a class 32770 that has a "Format disk" button in it, and then simply closes it. If your OS is in different language, then you'll have to replace "Format disk" with the button text in your language.
This works on Vista, 7 and 8, and it should work fine on Windows 10, unless Microsoft changed the window class/title. But even if it did, you can use AHK's own window spy to determine the new window parameters.
EDIT: sorry, I didn't realise you linked to the same post and are asking for the implementation of other solution (changing partition type id) into VeraCrypt. If so, you can disregard my comment altogether.
Last edit: lightproof 2020-02-25
I used to remove the drive letter and it worked fine, but now windows won't
open disks without a drive letter.
On Tue, 25 Feb 2020 at 22:35, lightproof lightproof@users.sourceforge.net
wrote:
Related
Tickets: #116