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, your 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.
80 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
wednesday 29 may 2013 à 23:56 udby said : #29
thursday 30 may 2013 à 08:31 Tanguy said : #30
tuesday 04 june 2013 à 14:49 Rpnpif said : #31
sunday 16 june 2013 à 09:45 Subodh said : #32
monday 17 june 2013 à 10:08 Tanguy said : #33
wednesday 19 june 2013 à 14:38 antistress said : #34
wednesday 19 june 2013 à 14:46 Tanguy said : #35
saturday 10 august 2013 à 01:05 Tom Maneiro said : #36
monday 16 september 2013 à 02:02 Sergey said : #37
saturday 28 september 2013 à 16:37 MH said : #38
sunday 10 november 2013 à 22:53 David Balažic said : #39
sunday 22 december 2013 à 15:56 Dohn Joe said : #40
sunday 22 december 2013 à 17:49 Jakub Sadowski said : #41
friday 10 january 2014 à 15:14 Jonas Platte said : #42
tuesday 18 february 2014 à 14:07 phlebire said : #43
tuesday 18 february 2014 à 14:37 Tanguy said : #44
tuesday 18 february 2014 à 17:22 phlebire said : #45
tuesday 18 february 2014 à 17:35 Tanguy said : #46
wednesday 19 february 2014 à 10:05 phlebire said : #47
saturday 22 february 2014 à 23:15 GreatEmerald said : #48
tuesday 25 february 2014 à 21:54 Thomas Lundqvist said : #49
wednesday 05 march 2014 à 00:55 Yulian Kuncheff said : #50
tuesday 27 may 2014 à 01:49 tuxicoman said : #51
tuesday 27 may 2014 à 09:50 Tanguy said : #52
sunday 01 june 2014 à 19:35 tuxicoman said : #53
wednesday 16 july 2014 à 09:30 Steve said : #54
wednesday 01 october 2014 à 20:54 Neal Murphy said : #55
tuesday 14 october 2014 à 17:41 Inyavic said : #56
wednesday 14 january 2015 à 13:42 Guyberton said : #57
wednesday 14 january 2015 à 13:54 Guyberton said : #58
saturday 24 january 2015 à 20:15 mirabilos said : #59
friday 24 april 2015 à 20:36 brice said : #60
wednesday 09 december 2015 à 11:44 arnd said : #61
wednesday 09 december 2015 à 12:40 Tanguy said : #62
wednesday 09 december 2015 à 21:51 GreatEmerald said : #63
monday 08 february 2016 à 15:07 hiccup said : #64
monday 08 february 2016 à 15:09 cheflo said : #65
monday 08 february 2016 à 15:26 Tanguy said : #66
tuesday 23 february 2016 à 22:37 vanilla said : #67
wednesday 24 february 2016 à 10:15 Tanguy said : #68
tuesday 22 march 2016 à 23:52 granger said : #69
tuesday 29 march 2016 à 11:24 Tanguy said : #70
wednesday 27 april 2016 à 22:33 Rimas said : #71
wednesday 27 april 2016 à 22:50 GreatEmerald said : #72
thursday 12 may 2016 à 18:00 Guybertron said : #73
saturday 04 february 2017 à 11:29 Abhishek said : #74
monday 06 february 2017 à 09:55 Tanguy said : #75
tuesday 07 february 2017 à 12:53 Abhishek said : #76
tuesday 07 february 2017 à 13:08 Tanguy said : #77
wednesday 08 february 2017 à 09:33 Abhishek said : #78
monday 27 december 2021 à 10:00 x3mghost said : #79
sunday 18 september 2022 à 19:16 Randy said : #80