blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

case-sensitively-labelling-a-fat32-drive.md (648B)


      1 ---
      2 title: "Case-sensitively labelling a FAT32 drive"
      3 date: 2020-07-05T17:11:00
      4 tags: ["Linux", "Snippets", "Software", "Windows"]
      5 ---
      6 
      7 ## Under Linux
      8 
      9 As you'd expect, it's pretty simple. You just need `fatlabel` from the `dosfstools` package:
     10 
     11 ```
     12 sudo apt-get install dosfstools
     13 lsblk --fs
     14 fatlabel /dev/yourdrive YourLabel
     15 ```
     16 
     17 ## Under Windows
     18 
     19 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.
     20 
     21 ```
     22 [autorun]
     23 label=YourLabel
     24 
     25 [Content]
     26 MusicFiles=false
     27 PictureFiles=false
     28 VideoFiles=false
     29 ```