Block "You need to format the disk" message in Windows - gHacks Tech News

Block "You need to format the disk" message in Windows

When you click on a drive letter of a drive with a RAW partition that has an assigned drive letter, you get the prompt "you need to format the disk in drive [letter] before you can use it. Do you want to format it?".

While that is a good thing if the drive is new and you want to start using it, it is not such a good thing if you have encrypted the drive.

Unmounted encrypted drives, using software such as TrueCrypt, VeraCrypt or other encryption programs, look to Windows just like new drives that need to be formatted so that they can be put to use by the user of the device.

you need to format the disk

Accidentally hitting format disk in this case would kill all data on the disk, and that is better avoided.

A click on cancel displays another prompt stating that the drive is not accessible, and that Windows did not find a recognized file system on the drive.

drive not accessible

A workaround for the issue

There are several workarounds for the issue, but the one that worked best for me was to remove the drive letter of the encrypted drive.

This won't touch the data on the drive, and it is still possible to mount the drive using the encryption software.

Note that another drive letter may be assigned to the drive when you mount it.

Here is how this works:

  1. Use the shortcut Windows-R to open the run box.
  2. Type diskmgmt.msc and hit the Enter-key to load the Disk Management interface.
  3. Right-click on the drive in question, and select "change drive letter and paths".
  4. Select remove when the new window opens. This removes the drive letter from the drive.

You will notice that the drive is no longer listed in Explorer once you remove the drive letter. This prevents accidental access and formatting of the drive in Explorer.

A drive letter is assigned to the drive when you mount it using the encryption software, but that is only assigned temporarily. It is only available for the session.

A bit of discussion is going on over at Superuser about the topic. Removing the drive letter may not be sufficient in some cases.

What some suggest you do in that case is to use diskpart to change the partition ID of the drive in question.

list volume
select volume <your volume with the drive letter>
remove letter=<your drive letter you want to remove>
set id=<now set the partition type>

I suggest you back up the drive before you run any operations on it to avoid data loss.

Now You: How do you handle encrypted partitions on your computer?

Summary
Block
Article Name
Block
Description
Find out how to block the "you need to format the disk" message in Windows Explorer when you accidentally click on encrypted drives.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


Previous Post: «
Next Post: »

Comments

  1. Clairvaux said on November 10, 2017 at 1:54 am
    Reply

    If you hit that “format disk” button, there will be a confirmation box after that, won’t there ?

    1. Martin Brinkmann said on November 10, 2017 at 5:39 am
      Reply

      I don’t know to be honest. Never used it before. Probably there is one, but it is still annoying if you missclick.

      1. peipei said on November 12, 2017 at 10:50 am
        Reply

        @Martin Brinkmann

        what about that https://www.ghacks.net/2017/11/09/block-you-need-to-format-the-disk-message-in-windows/#comment-4278600

        sounds like a good idea and it works too

    2. anon3 said on November 10, 2017 at 3:39 pm
      Reply
  2. SCBright said on November 10, 2017 at 11:16 am
    Reply

    In case the encrypted drive is a usb drive, how to safely eject it if it does not appear in explorer?
    I believe that trying to solve an annoying situation creates another as annoying as the first …

    1. Mike said on November 10, 2017 at 12:12 pm
      Reply

      If the volume is not mounted in Windows there is no need to “eject” the device. The eject option is there to flush any potentially cached data on the mounted volume and avoid corruption. (you won’t corrupt any file if they are not accessible by Windows at first)

  3. Lantro said on November 10, 2017 at 12:20 pm
    Reply

    You are supposed not to have encrypted disks. Security is for corporations. Individuals who focus on security usually have something to hide. :-)

    1. anonona said on November 11, 2017 at 12:48 pm
      Reply

      @Lantro

      I like how you slipped in “usually” into your comment, otherwise it would just usually sound like an utterly naive comment.

      Usually people who are oblivious of what’s going on in the technology world and that usually dont read security advisories have similar naive views and display a total disregard about their privacy and data.

      So because these people dont care about their privacy or personal information or data, everyone else that does must have something to hide too, usually.

      You’re hilarious.

  4. Franck said on November 10, 2017 at 1:22 pm
    Reply

    Excellent !

  5. Anonymous said on November 10, 2017 at 10:30 pm
    Reply

    ‘I suggest you back up the drive before you run any operations on it to avoid data loss.’
    How, if you can’t access the drive ?

    1. anonona said on November 11, 2017 at 12:54 pm
      Reply

      @Anonymous

      You can backup any drive with Acronis True Image (Bootiso my preferred way) or Macrium, it should enable you to backup any type of partition without affecting the data contained. It may require a large destination for the backup big enough to hold a 1:1 state.

      You can also clone the disk to another disk with Acronis. probably the simplest way.

  6. anonona said on November 11, 2017 at 12:39 pm
    Reply

    You can simply hide the drive from showing up in windows explorer while retaining drive letter

    https://support.microsoft.com/en-us/help/555438

    if you make a backup of the existing regsitry structure prior to making changes, this will serve as a undo, should you need it in future.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.