Fedora Linux Support Community & Resources Center
  #1  
Old 16th March 2009, 09:38 PM
Cassanova Offline
Registered User
 
Join Date: Feb 2009
Location: An Evil City in Indiana
Posts: 85
Renaming removable disks.

I have a Thumb drive that I've had since before I got Fedora. I Therefore named it in Windblows... unfortunately it being the way it is, when I go to umount it, it's quite a pain to type "umount /media/THUMB\ DRIVE" (i know.... it's far easier to do this in the GUI, but the terminal is far more fun... and makes me feel smarter than I am) is there a way to rename it w/o reformatting it? I saw a post here but it involved a HDD; and I was Unsure if the same would apply to a flash drive, and REALLY don't wanna screw it up. On it, are all my files/presentations for school, so it needs to be able to work on both Linux and Windblows. If it helps, it's a Sandisk Cruiser Mini titanium (I swear by Sandisk), and right clicking on the icon says it's a "msdos" filesystem type. thanx in advance
Reply With Quote
  #2  
Old 16th March 2009, 10:56 PM
Deonis Offline
Registered User
 
Join Date: May 2008
Location: Montreal
Posts: 198
su
yum install gparted
unmount your flash disk
than gparted in terminal
than go partition>> label and change your label
after your need to unplug your flash drive and plug again
Reply With Quote
  #3  
Old 17th March 2009, 12:08 AM
Cassanova Offline
Registered User
 
Join Date: Feb 2009
Location: An Evil City in Indiana
Posts: 85
Quote:
Originally Posted by Deonis View Post
su
yum install gparted
unmount your flash disk
than gparted in terminal
than go partition>> label and change your label
after your need to unplug your flash drive and plug again
Just wanna be sure... that's going to keep my files intact right?
Reply With Quote
  #4  
Old 17th March 2009, 12:48 AM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,855
I wouldn't trust any program that relabels a DOS partition to be non-destructive to the data on that partition without first testing it. Always assume guilty until proven innocent when it comes to your valued data.

What's wrong with copying the data on the thumb drive to your hard drive, then relabeling the thumb drive, by any one of several available methods, checking if the data on the thumb drive survived or not, and copying the data back to the thumb drive from the hdd if it did not?

Unfortunately, none of the documentation that comes with any of these programs tells you if re-labeling a DOS partition, or any other type, is destructive or not. One of the many little utility programs that comes with the 'mtools' rpm package is 'mlabel', made just for labeling/re-labeling DOS type partitions.

I haven't tried that one yet, but I will next time I want to relabel a vfat partiton, which I do with all of my vfat usb devices (mp3 player, SDmicro cards, thumb drives) so they mount with nice descriptive names. Is mlabel non-destructive? I don't know and the man page isn't saying. Everything else I've tried wipes the data on the partition clean.
Reply With Quote
  #5  
Old 17th March 2009, 03:10 AM
Deonis Offline
Registered User
 
Join Date: May 2008
Location: Montreal
Posts: 198
always good to back up a precious data !!!! Gparted does it pretty nicely without pain in "some places". Actually funny, Why nobody thought to put this option in Nautilus ?
Reply With Quote
  #6  
Old 17th March 2009, 03:28 AM
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,461
Don't bother; it doesn't work. Yes, you can change the label, either from gparted or a command line, but Linux will still use the same name for the drive. I know; I've been trying to get around this for months, in Fedora, Ubuntu and Puppy.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #7  
Old 17th March 2009, 04:38 AM
Deonis Offline
Registered User
 
Join Date: May 2008
Location: Montreal
Posts: 198
usb before gparted :
ID_TYPE=disk
ID_INSTANCE=0:0
ID_BUS=usb
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=
usb after gparted:

ID_FS_LABEL=Denis
ID_FS_LABEL_ENC=Denis
ID_FS_LABEL_SAFE=Denis

only one thing which is not good is you cannot change label of usb disk with fat on it currently only ntfs supported.
and system will use a new label to mount your device !!!
Reply With Quote
  #8  
Old 17th March 2009, 11:05 PM
gthill Offline
Registered User
 
Join Date: May 2005
Location: g-land, east java
Age: 50
Posts: 387
Quote:
Originally Posted by Cassanova View Post
. unfortunately it being the way it is, when I go to umount it, it's quite a pain to type "umount /media/THUMB\ DRIVE" (i know.... it's far easier to do this in the GUI, but the terminal is far more fun... and makes me feel smarter than I am) is there a way to rename it w/o reformatting it?
Do you know about auto line completion with the tab key.
try this exercise
umo<tab><tab>
umount/me<tab><tab>
umount/media/T<tab><tab>
umount /media/THUMB\ DRIVE

saves a lot of typing
Reply With Quote
Reply

Tags
disks, removable, renaming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing menu for "Removable Disks and Media Preferences" in Gnome: Fedora9 awmian Using Fedora 1 9th September 2008 10:16 AM
How do I mount floppy disks and cd disks? William F Using Fedora 9 2nd May 2006 05:25 AM


Current GMT-time: 09:13 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat