FAT
USB sticks are traditionally formatted with FAT 32, because this file system is implemented by almost every operating system and device. Unfortunately, it sucks, as it cannot use more than 2 TiB, store files larger than 2 GiB or store symbolic links for instance. In a word, it is an obsolete and deficient file system.
exFAT
Good news: someone addressed that problem. Bad new: that someone is Microsoft. So as you could expect, exFAT, the extended FAT, is a stinking proprietary, secret and patented file system. There are free implementations of that shit, but it is safer to stay away from it.
UDF to the rescue!
Good news: there is one file system that is implemented almost everywhere as well, and which does not suffer from such limitations. UDF, the Universal Disk Format, is an ISO standard originally designed for DVDs, but it is perfectly usable for USB sticks. It also supports POSIX permissions, with one killer feature for removable media: a file can belong to no specific person or group.
So, to use it, assuming you USB stick is /dev/sdc:
$ dd if=/dev/zero of=/dev/sdc bs=1M count=1 $ mkudffs -b 512 --media-type=hd /dev/sdc
The initial dd is to erase the existing partition table or file system information, to prevent you USB stick from being detected as a FAT after it has been formatted with UDF.
The -b 512 is to force a file system
block size equal to the USB stick's physical block size, as required by the UDF
specification. Adapt it if you have the luck of having a USB stick with an more
appropriate block size.
After that, you USB stick will be usable for reading and writing with GNU/Linux and the other free operating systems of course, but also with current versions of Windows (read-only with the outdated version XP) and with MacOS.
28 comments
wednesday 30 january 2013 à 14:19 Mikael Eriksson said : #1
wednesday 30 january 2013 à 16:33 Tanguy said : #2
wednesday 30 january 2013 à 16:35 Tanguy said : #3
wednesday 30 january 2013 à 18:28 Camelek said : #4
wednesday 30 january 2013 à 22:32 Olzvoi said : #5
wednesday 30 january 2013 à 22:40 Tanguy said : #6
thursday 31 january 2013 à 06:02 Adam said : #7
thursday 31 january 2013 à 08:19 Tanguy said : #8
thursday 31 january 2013 à 15:56 DePingus said : #9
thursday 31 january 2013 à 16:22 Tanguy said : #10
thursday 31 january 2013 à 18:40 S P Arif Sahari Wibowo said : #11
thursday 31 january 2013 à 18:43 S P Arif Sahari Wibowo said : #12
thursday 31 january 2013 à 20:23 Tanguy said : #13
thursday 31 january 2013 à 20:55 ludovico said : #14
thursday 31 january 2013 à 21:31 Tanguy said : #15
friday 01 february 2013 à 04:15 JanKusanagi said : #16
friday 01 february 2013 à 05:05 Martin said : #17
friday 01 february 2013 à 08:28 Tanguy said : #18
friday 01 february 2013 à 10:01 Folknology said : #19
friday 01 february 2013 à 10:12 Tanguy said : #20
friday 01 february 2013 à 10:29 Folknology said : #21
friday 01 february 2013 à 20:12 Eligius said : #22
saturday 02 february 2013 à 21:18 nom said : #23
monday 04 february 2013 à 14:44 Sellers said : #24
thursday 07 february 2013 à 03:21 MoritzJT said : #25
sunday 10 february 2013 à 20:52 Tanguy said : #26
sunday 17 february 2013 à 09:31 Adam said : #27
sunday 17 february 2013 à 09:33 Adam said : #28