summaryrefslogtreecommitdiff
path: root/tech/linux rename drive.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tech/linux rename drive.txt')
-rw-r--r--tech/linux rename drive.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/tech/linux rename drive.txt b/tech/linux rename drive.txt
new file mode 100644
index 0000000..da86d5e
--- /dev/null
+++ b/tech/linux rename drive.txt
@@ -0,0 +1,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
+