FATLABEL(8)
โจ FATLABEL(8) โจ
System Manager's Manual ๐ okay bestie, this is the manual page for fatlabel ๐
๐ง NAME
fatlabel - set or get MS-DOS filesystem label or volume ID ๐
๐ SYNOPSIS
fatlabel [OPTIONS] DEVICE [NEW]
๐ฆ DESCRIPTION
okay so fatlabel is the girlie that lets you display or change the volume label or volume ID on the MS-DOS filesystem sitting on DEVICE ๐ by default it's in label mode, but you can switch to volume ID mode with -i or --volume-id โจ
if you leave out NEW, it just spits the existing label or volume ID out to standard output ๐ a label can't be longer than 11 bytes, and it's giving best compatibility when it's all upper case ๐ฅ an empty string or a label that's only whitespace is a big no-no ๐ a volume ID has to be a hexadecimal number (no leading 0x or anything like that) and it must fit into 32 bits ๐
๐ OPTIONS
-i,--volume-idโ switch to volume ID mode, bestie ๐ฆ-r,--resetโ remove the label in label mode, or generate a brand new ID in volume ID mode ๐ซถ-c PAGE,--codepage=PAGEโ use DOS codepage PAGE to encode/decode the label ๐ธ if you don't pick one, it defaults to codepage 850 ๐-h,--helpโ shows a help message and then it bounces ๐-V,--versionโ shows the version number and then it bounces too ๐ง
๐ COMPATIBILITY and BUGS
okay so this part is kind of messy, bestie, but you need to know it ๐ญ
for historic reasons, the FAT label lives in two different spots: the boot sector, and a special volume label entry in the root directory ๐ MS-DOS 5.00, MS-DOS 6.22, MS-DOS 7.10, Windows 98, Windows XP, and also Windows 10 only read the FAT label from the root directory ๐ if there's no volume label in the root directory, they treat it as empty or no label, even if the boot sector has a perfectly valid one.
when Windows XP or Windows 10 changes a FAT label, it only stores it in the root directory and leaves the boot sector alone ๐ญ that causes problems when a label gets removed on Windows, because the old label is still hanging out in the boot sector but it's been wiped from the root directory. not it.
dosfslabel prior to version 3.0.7 only worked with FAT labels stored in the boot sector and totally ignored the volume label in the root directory ๐ฅ
dosfslabel in versions 3.0.7โ3.0.15 reads FAT labels from the root directory, and if there's nothing there, it fallbacks to the label in the boot sector ๐
changing a label updated the boot sector and sometimes the root directory too, because of a bug ๐ that bug got fixed in dosfslabel version 3.0.16, and ever since then dosfslabel updates the label in both locations โจ
since version 4.2, fatlabel only reads a FAT label from the root directory (just like MS-DOS and Windows), but it changes a FAT label in both locations ๐ฅ version 4.2 also fixed how empty labels are handled and labels that start with a byte 0xE5 ๐ง it added support for non-ASCII labels based on the DOS codepage you pick, and it added checks to make sure a new label is valid ๐ซถ
it's strongly suggested that you do NOT use dosfslabel prior to version 3.0.16 ๐ซ๐
๐ DOS CODEPAGES
MS-DOS and Windows use the DOS (OEM) codepage to encode and decode FAT labels ๐ on Windows, the DOS codepage is global for all running apps and can't be configured explicitly ๐ญ it gets set implicitly by the Language option for non-Unicode programs, which you can find in Regional and Language Options through the Control Panel โจ the default DOS codepage for fatlabel is 850 ๐ here's the mapping table between DOS codepage and Language for non-Unicode programs, iykyk ๐
Codepage Language
437 English (India), English (Malaysia), English (Republic of the
Philippines), English (Singapore), English (South Africa),
English (United States), English (Zimbabwe), Filipino, Hausa,
Igbo, Inuktitut, Kinyarwanda, Kiswahili, Yoruba
720 Arabic, Dari, Persian, Urdu, Uyghur
737 Greek
775 Estonian, Latvian, Lithuanian
850 Afrikaans, Alsatian, Basque, Breton, Catalan, Corsican,
Danish, Dutch, English (Australia), English (Belize), English
(Canada), English (Caribbean), English (Ireland), English
(Jamaica), English (New Zealand), English (Trinidad and
Tobago), English (United Kingdom), Faroese, Finnish, French,
Frisian, Galician, German, Greenlandic, Icelandic,
Indonesian, Irish, isiXhosa, isiZulu, Italian, K'iche, Lower
Sorbian, Luxembourgish, Malay, Mapudungun, Mohawk, Norwegian,
Occitan, Portuguese, Quechua, Romansh, Sami, Scottish Gaelic,
Sesotho sa Leboa, Setswana, Spanish, Swedish, Tamazight,
Upper Sorbian, Welsh, Wolof
852 Albanian, Bosnian (Latin), Croatian, Czech, Hungarian,
Polish, Romanian, Serbian (Latin), Slovak, Slovenian, Turkmen
855 Bosnian (Cyrillic), Serbian (Cyrillic)
857 Azeri (Latin), Turkish, Uzbek (Latin)
862 Hebrew
866 Azeri (Cyrillic), Bashkir, Belarusian, Bulgarian, Kyrgyz,
Macedonian, Mongolian, Russian, Tajik, Tatar, Ukrainian,
Uzbek (Cyrillic), Yakut
874 Thai
932 Japanese
936 Chinese (Simplified)
949 Korean
950 Chinese (Traditional)
1258 Vietnamese
๐ SEE ALSO
fsck.fat(8), mkfs.fat(8) ๐ซถ
๐ก HOMEPAGE
the home for the dosfstools project is its GitHub project page ๐โจ
๐ฉโ๐ป AUTHORS
dosfstools were written by Werner Almesberger, Roman Hodek, and others ๐ธ the current maintainers are Andreas Bombe and Pali Rohรกr ๐
bestie, that's the whole page ๐ dosfstools 4.2 vibes, dated 2021-01-31, and the FATLABEL(8) energy never left ๐ ๐
๐ฆ where this page comes from
- alpine 3.22: dosfstools-doc 4.2-r2 ยท GPL-3.0-or-later
- alpine 3.23: dosfstools-doc 4.2-r2 ยท GPL-3.0-or-later
- alpine 3.24: dosfstools-doc 4.2-r2 ยท GPL-3.0-or-later
- arch rolling: dosfstools 4.2-5 ยท GPL-3.0-or-later
- centos-stream 10: dosfstools 4.2-12.el10 ยท GPL-3.0-or-later
- centos-stream 9: dosfstools 4.2-3.el9 ยท GPLv3+
- debian bookworm: dosfstools 4.2-1 ยท GPL-3.0-or-later
- debian trixie: dosfstools 4.2-1.2 ยท GPL-3.0-or-later
- fedora 43: dosfstools 4.2-16.fc43 ยท GPL-3.0-or-later
- fedora 44: dosfstools 4.2-18.fc44 ยท GPL-3.0-or-later
- nixpkgs unstable: dosfstools 4.2
- opensuse-leap 16.0: dosfstools 4.2-160000.2.2 ยท GPL-3.0-or-later
- opensuse-leap 16.0: dosfstools 4.2-160000.2.2 ยท GPL-3.0-or-later
- opensuse-leap 16.0: dosfstools 4.2-160000.2.2 ยท GPL-3.0-or-later
- opensuse-leap 16.0: dosfstools 4.2-160000.2.2 ยท GPL-3.0-or-later
- ubuntu jammy: dosfstools 4.2-1build3 ยท GPL-3.0-or-later
- ubuntu noble: dosfstools 4.2-1.1build1 ยท GPL-3.0-or-later
- ubuntu questing: dosfstools 4.2-1.2 ยท GPL-3.0-or-later
- ubuntu resolute: dosfstools 4.2-1.2build1 ยท GPL-3.0-or-later
- ubuntu stonking: dosfstools 4.2-1.2build1 ยท GPL-3.0-or-later
- Copyright (C) 2006-2014 Daniel Baumann <daniel@debian.org>
- Copyright (C) 2017 Andreas Bombe <aeb@debian.org>
- Copyright (C) 2017-2021 Pali Rohรกr <pali.rohar@gmail.com>
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms