How to format a flash drive as UDF in Windows 7?

10

7

Looks like the integrated format dialog doesn't offer a UDF option; however, Googling tells me that Win7 can both read and write UDF flash drives, so surely it must be able to format them out of the box? Is it just my installation that doesn't support this option?

enter image description here

Mihai

Posted 2014-03-09T17:22:03.280

Reputation: 818

from my recent experience, it appeared to me that windows could not read USB's in UDF format, can it? – rogerdpack – 2016-04-10T00:49:42.283

@rogerdpack: It can, but only ones formatted using Windows formatter. – Erkin Alp Güney – 2016-11-20T14:57:08.297

@ErkinAlpGüney Windows 10 can read/write UDF created with mkudffs on Ubuntu 16.10. Windows XP only has read access. I have not conducted more extensive tests. – Arc676 – 2017-05-17T09:58:25.003

I have not tested on 10 yet Windows 6.1 only supported Windows-formatted UDFs. – Erkin Alp Güney – 2017-05-22T20:44:27.250

2You can force Windows to format the flash drive as UDF by running the following command from a command prompt started with admin rights: format <driveLetter>: /fs:UDF /q. Is there a particular reason why you need this? – and31415 – 2014-03-09T17:52:18.643

1I don't have an urgent need for it, I just want a flash drive that supports large files and works on other OSes that might not have NTFS support installed. – Mihai – 2014-03-09T18:41:11.720

I see. Let me know if my previous comment worked for so that I can expand it, and post it as an actual answer. – and31415 – 2014-03-09T18:52:19.287

It did, and please do. – Mihai – 2014-03-09T19:36:49.940

Answers

17

Formatting through the command line

When formatting via the graphical interface, Windows will try to detect and list only the file systems which are best suited for the selected disk or partition. By using a command prompt you can override the default behavior, and use just any file system.

  1. Close all programs that might be accessing the drive.

  2. Open an elevated command prompt.

  3. Type or paste the following command, replacing <driveLetter> with the actual letter assigned to the drive. Double-check the letter is the right one, then press Enter to execute it.

    format <driveLetter>: /fs:UDF /q
    
  4. Press Enter to confirm the operation, then specify a drive label, or just press Enter again to leave it empty.

Brief explanation

  • The /fs parameter is used to choose the file system, which can be either FAT, FAT32, exFAT, NTFS, or UDF.

  • When formatting as UDF, the revision will be set to 2.01, unless specified otherwise through the /r parameter. Considering the default revision is one of the most compatible across different operating systems, you can just leave it that way. Available versions are: 1.02, 1.50, 2.00, 2.01, and 2.50.

  • The /q parameter is required to perform a quick format:

    Deletes the file table and the root directory of a previously formatted volume, but does not perform a sector-by-sector scan for bad areas. You should use the /q command-line option to format only previously formatted volumes that you know are in good condition.

    Source: Format

Further reading

and31415

Posted 2014-03-09T17:22:03.280

Reputation: 13 382

3

According to http://serverfault.com/a/55407/48035 , don't use /q with UDF.

– imgx64 – 2015-04-18T07:14:48.107

does one need elevated prompt? – Anixx – 2016-09-19T12:38:33.200