Thursday, April 8, 2010

Naming USB drives

For the simple reason that USB drives go missing often is that they are portable and sometimes small. The best way to mark ownership is with one of the permanent marker pens. However, naming the USB drive will tell everyone who it belongs to when it is plugged in.

Just maybe, that missing USB drive containing your phone number will come back to you if found.

Here is how to name the disk on Kubuntu 9.10 or other similar Linux like CentOS.

Step 1:
Insert the USB disk and determine the device and partition. E.g. /dev/sdb1
Easily done with the mount command.

Step 2:
Unmount the disk (Do not unplug from the USB).

sudo umount /dev/sdb1

Step 3:
Check existing disk name

sudo mlabel -i /dev/sdb1 -s ::

Step 4:
Rename the disk label. E.g. below, replace the word "myphonenumber" with anything you like with a limit of 12 characters.

sudo mlabel -i /dev/sdb1 -s ::myphonenumber

Step 5:
Remove the USB disk, and reinsert back to confirm the name has changed.

For more details see ubuntu.com

1 comment:

志冠少菁伶義 said...
This comment has been removed by a blog administrator.

Blog Archive