summaryrefslogtreecommitdiffstats
path: root/content/posts/case-sensitively-labelling-a-fat32-drive.md
blob: 363aa332fb0c76afc3a9ea0850e3809fef773b72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: "Case-sensitively labelling a FAT32 drive"
date: 2020-07-05T17:11:00
tags: ["Linux", "Snippets", "Software", "Windows"]
---

## Under Linux

As you'd expect, it's pretty simple. You just need `fatlabel` from the `dosfstools` package:

```
sudo apt-get install dosfstools
lsblk --fs
fatlabel /dev/yourdrive YourLabel
```

## Under Windows

Windows generally won't let you do this, always defaulting to upper-case, but there is a workaround. Create a new text file on the root of the drive called `autorun.inf` with the following contents.

```
[autorun]
label=YourLabel

[Content]
MusicFiles=false
PictureFiles=false
VideoFiles=false
```