Friday, October 8, 2010

How to Renaming USB Drive Labels in Linux

 Hi friends now i am going to show you  Renaming USB Drive Labels in Linux. Your friend approaches you to help him get rid of the virus in his USB drive.bcoz in linux you can see all the files and youcan delete those virus files even not removed in windows with anti virus programs.  And you are proud you are of help in terminating viruses with ease, thanks to Linux’s security. And he asks you to do a favour. To rename the USB drive label to his name, from the name as “disk”.

You try to rename it from the terminal, but it fails?

You open /media, right click on the USB Drive folder and go to Properties. But you find no option there either to change the drive Label! Did your new Linux system fail you? In Windows, you can rename Labels of USB’s just by visiting its Properties. Can’t Linux do even this simple thing!

Let me assure you that, you can, but in a slightly round about way.

From Terminal (in text mode)

You will be using the mlabel command.(in ubuntu linux )

1. First type the mount command to find out the device location of you pen drive. Find the line which goes like “/dev/sdc1 on /media/disk …”.

2. This means the device sdc1 which is my pen drive is mounted on /media/disk.

3. Next unmount the device.

sudo unmount /media/disk

4. Next use this command.

sudo mlabel -i /dev/sdc1 ::

If you get a message like:
Total number of sectors (7831520) not a multiple of sectors per track (63)!
You can easily ignore the check by running this command:

echo mtools_skip_check=1 >> ~/.mtoolsrc

Try again and it should work.

5. The name of the USB should have changed. Unplug and Plug the pen drive back in and it will be mounted with the new label name.

The GUI(graphical user interface) way

1. For this you need the Gparted software. Install it if you don’t have it already.

2. Open the software as a super user, and select the pen drive from GParted>Devices>

3. Unmount the device if it hasn’t been, by right clicking on it.

4. After unmounting, right click on it and select “Label” and change it to whatever you want it to be. And then Apply it, by clicking the Edit>Apply All Operations.

5. Your pendrives label should be changed now.

No comments:

Post a Comment

Popular Posts

Followers

Disclaimer

All Data and Information Provided on This BLOG is only for Education purposes only.If you done any thing else these in real time the blog is not Responsible.Try all those on your own risk.
IF you find any thing else here as per in violation of copyright law .mail me on srinathceh@gmail.com as soon as possible action will be taken.