Thursday, November 12, 2015

Rename external hard drive in Linux

Usually hard drives have long names and you just want to rename them. One easy way to do that is by using label commands in Linux. For instance:

sudo ntfslabel /dev/sdd1 sea1

where sea1 is the new name.
You also need to know which drive is which to do that you can just do:

sudo fdisk -l

If you want to know which type of file system you have, you can do:

blkid /dev/sdd1

If you have exFAT then just use :

sudo exfatlabel /dev/sdd1 sea1

No comments: