blob: da86d5e2828fc023784ec7a967fe7c0619a41817 (
plain)
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
30
31
32
|
title: Rename a drive in Linux
source: http://askubuntu.com/questions/276911/how-to-rename-partitions
From the command line
Replace /dev/sdxN with your partition (e.g. /dev/sdc1).
for FAT32:
sudo mlabel -i /dev/sdxN ::"my_label"
or:
sudo fatlabel /dev/sdxN my_label
for NTFS:
sudo ntfslabel /dev/sdxN my_label
for exFAT:
sudo exfatlabel /dev/sdxN my_label
for ext2/3/4:
sudo e2label /dev/sdxN my_label
for BTRFS:
sudo btrfs filesystem label /dev/sdxN my_label
|