USB stick rename greyed out

The place to post if you need help or advice

Moderators: ChriThor, LXF moderators

USB stick rename greyed out

Postby guy » Wed Apr 11, 2018 7:12 pm

I want to rename my USB sticks, which are FAT32/msdos and currently have names like TOSHIBA.
I obviously have to unmount the stick first, which drops it off most menus/views.
But not choose an eject option, as that drops it off everything.
SU-ing to gparted still sees it OK when unmounted (and not when ejected), but the partition > rename option remains greyed out. So too is partition > mount: I can unmount a stick but not (re)mount it without unplugging, faffing until the system forgets, then reinserting.
Using MATE on Debian, so the file manager is Caja, i.e. Nautilus rebranded.
Any ideas?
"We don't need no frikkin' aliens, we c'n do this ourselves!" — anon.
guy
LXF regular
 
Posts: 1333
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Re: USB stick rename greyed out

Postby nelz » Wed Apr 11, 2018 7:32 pm

You shouldn't need to unmount a filesystem to change its label. The easiest way to do it is from the command line, something like

Code: Select all
sudo fatlabel /dev/sdb1 NEWNAME


Running the command without a label displays the current label.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9046
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Re: USB stick rename greyed out (WORKAROUND)

Postby guy » Wed Apr 11, 2018 8:55 pm

Code: Select all
# fatlabel /dev/sdb1
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
TOSHIBA


But rename still greyed out in gparted.
So:

Code: Select all
# fatlabel /dev/sdb1 NEWNAME
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.


And it worked.
Many thanks.
"We don't need no frikkin' aliens, we c'n do this ourselves!" — anon.
guy
LXF regular
 
Posts: 1333
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Re: USB stick rename greyed out

Postby guy » Thu Apr 12, 2018 4:56 am

Any ideas why gparted has been forbidden?
It'd be nice to understand.
"We don't need no frikkin' aliens, we c'n do this ourselves!" — anon.
guy
LXF regular
 
Posts: 1333
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Re: USB stick rename greyed out

Postby guy » Thu Apr 12, 2018 5:04 pm

It has proved necessary to unmount the stick before renaming it, if you want the name to persist.
Otherwise if you rename it hot, it reverts when removed and reinserted.
"We don't need no frikkin' aliens, we c'n do this ourselves!" — anon.
guy
LXF regular
 
Posts: 1333
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Re: USB stick rename greyed out

Postby nelz » Thu Apr 12, 2018 9:29 pm

That's interesting, and a little surprising. It's certainly possible to change the labels on other filesystems while mounted. Who would have thought that the Microsoft option would be lacking in useful features...
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 9046
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Help!

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests