Is the name of your usb drive _body>< /
not quite , it's:
"_body>// <_ht"
...with the newline. It looks like it's been snipped from the end of an html file except for the underscores.
I am surprised that the programmers allow this kind of naming. I think allowing spaces in file names is wrong too. Apparently they feel the need to "keep up with the Joneses.
I found a semi solution using mtools which I left a in a page here:
http://how0909.freeshell.org/linux/rename_flash_automount.txt
But I'm still looking for others.
I think that there is probably a udev rule or something to find and edit which would be the right way to fix this (I guess).
Thanks for the interest.
/
On Thu, 2011-03-24 at 22:52 -0400, Howard wrote:
Is the name of your usb drive _body>< /
not quite , it's:
"_body>// <_ht"
...with the newline. It looks like it's been snipped from the end of an html file except for the underscores.
I am surprised that the programmers allow this kind of naming. I think allowing spaces in file names is wrong too. Apparently they feel the need to "keep up with the Joneses.
I found a semi solution using mtools which I left a in a page here:
http://how0909.freeshell.org/linux/rename_flash_automount.txt
But I'm still looking for others.
I think that there is probably a udev rule or something to find and edit which would be the right way to fix this (I guess).
Thanks for the interest.
I am confused. I can't find a mlabel command with an -i option that works as the mlabel command in the webpage listed above.
Also the command xsetwacom seems from the man page to do what you want but I have not really tried it.
On 03/25/2011 10:45 AM, Aaron Konstam wrote:
I can't find a mlabel command with an -i option that works as the mlabel command in the webpage listed above.
Yes I saw nothing in man mlabel but there is a bit in mtools Something about disk image.
I used the command as shown it the ubuntu page referenced in my page.
Without the -i it does not work : (with the flash plugged in, mounted or umounted but still assigned to sdb1 )
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is FLASH_8GB
root hbin> mlabel /dev/sdb1 -s :: Mtools version 4.0.12, dated November 3rd, 2009 Usage: mlabel [-vscVn] [-N serial] drive:
root hbin> mlabel /dev/sdb1 :: Mtools version 4.0.12, dated November 3rd, 2009 Usage: mlabel [-vscVn] [-N serial] drive:
root hbin> mlabel -i /dev/sdb1 :: Volume label is FLASH_8GB Enter the new volume label : Delete volume label (y/n): y
root hbin> mlabel -i /dev/sdb1 -s :: Volume has no label
root hbin> mlabel -i /dev/sdb1 :: Volume has no label Enter the new volume label : FLASH_8GB
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is FLASH_8GB
root hbin> mlabel -i /dev/sdb1 ::0123456789
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 0123456789¡
root hbin> mlabel -i /dev/sdb1 ::01234567890
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 01234567890
root hbin> mlabel -i /dev/sdb1 ::0123456789012345
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 01234567890
root hbin> mlabel -i /dev/sdb1 ::FLASH_8GB
root hbin> mlabel -i /dev/sdb1 -s ::FLASH_8GB Volume label is FLASH_8GB
Also the command xsetwacom seems from the man page to do what you want but I have not really tried it.
I think that is for x devices.
On Fri, 2011-03-25 at 16:22 -0400, Howard wrote:
On 03/25/2011 10:45 AM, Aaron Konstam wrote:
I can't find a mlabel command with an -i option that works as the mlabel command in the webpage listed above.
Yes I saw nothing in man mlabel but there is a bit in mtools Something about disk image.
I used the command as shown it the ubuntu page referenced in my page.
Without the -i it does not work : (with the flash plugged in, mounted or umounted but still assigned to sdb1 )
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is FLASH_8GB
root hbin> mlabel /dev/sdb1 -s :: Mtools version 4.0.12, dated November 3rd, 2009 Usage: mlabel [-vscVn] [-N serial] drive:
root hbin> mlabel /dev/sdb1 :: Mtools version 4.0.12, dated November 3rd, 2009 Usage: mlabel [-vscVn] [-N serial] drive:
root hbin> mlabel -i /dev/sdb1 :: Volume label is FLASH_8GB Enter the new volume label : Delete volume label (y/n): y
root hbin> mlabel -i /dev/sdb1 -s :: Volume has no label
root hbin> mlabel -i /dev/sdb1 :: Volume has no label Enter the new volume label : FLASH_8GB
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is FLASH_8GB
root hbin> mlabel -i /dev/sdb1 ::0123456789
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 0123456789¡
root hbin> mlabel -i /dev/sdb1 ::01234567890
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 01234567890
root hbin> mlabel -i /dev/sdb1 ::0123456789012345
root hbin> mlabel -i /dev/sdb1 -s :: Volume label is 01234567890
root hbin> mlabel -i /dev/sdb1 ::FLASH_8GB
root hbin> mlabel -i /dev/sdb1 -s ::FLASH_8GB Volume label is FLASH_8GB
Also the command xsetwacom seems from the man page to do what you want but I have not really tried it.
I think that is for x devices.
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
On Fri, Mar 25, 2011 at 4:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Run "yum whatprovides */mlabel" on F14...
On Fri, 25 Mar 2011 15:33:34 -0500 Aaron Konstam akonstam@sbcglobal.net wrote:
On Fri, 2011-03-25 at 16:22 -0400, Howard wrote:
On 03/25/2011 10:45 AM, Aaron Konstam wrote:
I can't find a mlabel command with an -i option that works as the mlabel command in the webpage listed above.
Yes I saw nothing in man mlabel but there is a bit in mtools Something about disk image.
whack
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Mlabel is part of mtools, and must be included in the standard Fedora installation, since I don't recall installing it.
-- cmg
On Fri, Mar 25, 2011 at 8:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Interesting - I am running Fedora 14 - a couple of commands in a terminal are reproduced here: [mike@home1 ~]$ uname -r 2.6.35.11-83.fc14.i686.PAE
[mike@home1 ~]$ man mlabel
gives:
mlabel(1) mlabel(1)
Name mlabel - make an MSDOS volume label
Note of warning This manpage has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete. See the end of this man page for details.
Description The mlabel command adds a volume label to a disk. Its syntax is: mlabel [-vcsn] [-N serial] drive:[new_label]
Mlabel displays the current volume label, if present. If new_label is not given, and if neither the c nor the s options are set, it prompts the user for a new volume label. To delete an existing volume label, press return at the prompt.
Reasonable care is taken to create a valid MS-DOS volume label. If an invalid label is specified, mlabel changes the label (and displays the new label if the verbose mode is set). Mlabel returns 0 on success or 1 on failure.
plus more on succeeding pages!
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
look... I am using Fedora 13 and it must have been part of the original install or a dependency to a later package install. You can probaly easily YUM it in.
It was suggested at that thread, I saw that I had it installed and used it. Sorry
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
So Aaron is right, the posted solution is not useful to Fedora users.
On Fri, 2011-03-25 at 21:56 -0400, Kevin J. Cummings wrote:
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
So Aaron is right, the posted solution is not useful to Fedora users.
yum install dosfstools man dosfslabel
poc
On 03/25/2011 08:56 PM, Kevin J. Cummings wrote:
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
My Fedora 14 installation (a new install, not an upgrade) has mtools-4.0.13-2.fc14.i686, and its mlabel command definitely _does_ support the "-i" option.
On 03/25/2011 09:56 PM, Kevin J. Cummings wrote:
Yes, mlabel is a part of Fedora. But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel? So Aaron is right, the posted solution is not useful to Fedora users.
Dude, I AM a Fedora 13 user and it is useful to me. As far as I know it was on the install disks.
Check it out: ----- media> rpm -qi mtools Name : mtools Relocations: (not relocatable) Version : 4.0.12 Vendor: Fedora Project Release : 1.fc13 Build Date: Tue 10 Nov 2009 04:40:26 AM EST Install Date: Fri 03 Sep 2010 08:17:40 AM EDT Build Host: x86-3.fedora.phx.redhat.com Group : Applications/System Source RPM: mtools-4.0.12-1.fc13.src.rpm Size : 317155 License: GPLv2+ Signature : RSA/SHA256, Thu 04 Feb 2010 09:15:59 AM EST, Key ID 7edc6ad6e8e40fde Packager : Fedora Project URL : http://mtools.linux.lu/ Summary : Programs for accessing MS-DOS disks without mounting the disks Description : Mtools is a collection of utilities for accessing MS-DOS files. Mtools allow you to read, write and move around MS-DOS filesystem files (normally on MS-DOS floppy disks). Mtools supports Windows95 style long file names, OS/2 XDF disks, and 2m disks
Mtools should be installed if you need to use MS-DOS disks -----
September is back when I first installed F13.
I showed how mlabel would NOT work for me UNLESS I used the -i option. If yours does not work with the -i option I'm sorry, I don't know why it doesn't.
-----
But I went and tried dosfslabel again and this time with success:
Here's what I did: As above, my first flash inserted is assigned to /dev/sdb1.
First get set up: - plug the drive in - close gnome file browser without ejecting drive - from the command line as root do: umount /dev/sdb1 - the drive should still be listed as /dev/sdb1
Then get the present listing:
root ~> dosfslabel /dev/sdb1 There are differences between boot sector and its backup. Differences: (offset:original/backup) 71:46/66, 72:4c/6c, 73:41/61, 74:53/73, 75:48/68, 78:47/67, 79:42/20 , 80:bf/20, 81:b6/20 Not automatically fixing this. FLASH_8GB��
That was is the present label as assigned earlier by mlabel: FLASH_8GB From the looks of that message, it appears that something was not quite "right" about the way mlabel relabeled it.
Now assign a new label:
root ~> dosfslabel /dev/sdb1 blah There are differences between boot sector and its backup. Differences: (offset:original/backup) 71:46/66, 72:4c/6c, 73:41/61, 74:53/73, 75:48/68, 78:47/67, 79:42/20 , 80:bf/20, 81:b6/20 Not automatically fixing this.
root ~> dosfslabel /dev/sdb1 blah
I note that dosfslabel assigned the label in lower case and did NOT padd it out to 11 characters! Now re-plug the drive:
Gnome file browser opens showing the new drive label as the name! So does the mount point:
root ~> ls -l /media lrwxrwxrwx. 1 root root 25 Oct 2 00:39 F13 -> /media/Fedora 13 i386 DVD drwxr-xr-x. 2 root root 4096 Mar 25 10:42 flash1 drwx------. 4 hlenderk hlenderk 32768 Dec 31 1969 blah
root ~> ls /media/blah blah blah2 blah3
So that seems like a better solution. Thanks for prodding me to re-try it.
On Fri, 2011-03-25 at 21:05 +0000, mike cloaked wrote:
On Fri, Mar 25, 2011 at 8:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Interesting - I am running Fedora 14 - a couple of commands in a terminal are reproduced here: [mike@home1 ~]$ uname -r 2.6.35.11-83.fc14.i686.PAE
[mike@home1 ~]$ man mlabel
gives:
mlabel(1) mlabel(1)
Name mlabel - make an MSDOS volume label
Note of warning This manpage has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete. See the end of this man page for details.
Description The mlabel command adds a volume label to a disk. Its syntax is: mlabel [-vcsn] [-N serial] drive:[new_label]
Mlabel displays the current volume label, if present. If new_label is not given, and if neither the c nor the s options are set, it prompts the user for a new volume label. To delete an existing volume label, press return at the prompt. Reasonable care is taken to create a valid MS-DOS volume label. If an invalid label is specified, mlabel changes the label (and displays the new label if the verbose mode is set). Mlabel returns 0 on success or 1 on failure.plus more on succeeding pages!
-- mike c
You notice this mlabel does not have a -i option.
On Fri, 2011-03-25 at 16:53 -0400, Tom H wrote:
On Fri, Mar 25, 2011 at 4:33 PM, Aaron Konstam akonstam@sbcglobal.net wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Run "yum whatprovides */mlabel" on F14...
Look this is getting tiring.. F14 doews have program callwed mlabel program but it is not the program the OP is using.
On Fri, 2011-03-25 at 23:49 -0500, Robert Nichols wrote:
On 03/25/2011 08:56 PM, Kevin J. Cummings wrote:
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
My Fedora 14 installation (a new install, not an upgrade) has mtools-4.0.13-2.fc14.i686, and its mlabel command definitely _does_ support the "-i" option.
-- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
The4 mystery is getting deeper.. I have the same mtools installed and the mlabel which the rpm -qf reports comes from that rpm does not have a -i option. Just for laughs I brought up my Live Ubuntu version 10.10 and the mlabel in that distribution also does not have a -i option.
On 03/26/2011 09:34 AM, Aaron Konstam wrote:
I have the same mtools installed and the mlabel which the rpm -qf reports comes from that rpm does not have a -i option. Just for laughs I brought up my Live Ubuntu version 10.10 and the mlabel in that distribution also does not have a -i option.
I thought I said way back that my man page for mlabel does NOT show an -i option either yet it works notwithstanding...
If it were not for that one web page I wouldn't have figured out to use it as above.
Nevertheless, use the dosfslabel command instead.
On 03/26/2011 08:34 AM, Aaron Konstam wrote:
On Fri, 2011-03-25 at 23:49 -0500, Robert Nichols wrote:
On 03/25/2011 08:56 PM, Kevin J. Cummings wrote:
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
My Fedora 14 installation (a new install, not an upgrade) has mtools-4.0.13-2.fc14.i686, and its mlabel command definitely _does_ support the "-i" option.
-- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
The4 mystery is getting deeper.. I have the same mtools installed and the mlabel which the rpm -qf reports comes from that rpm does not have a -i option. Just for laughs I brought up my Live Ubuntu version 10.10 and the mlabel in that distribution also does not have a -i option.
You need to look at `man mtools` and read the section, "Common features of all mtools commands." That section has very detailed information about how drive letters, long file names, case sensitivity, etc., are handled.
On Fri, Mar 25, 2011 at 9:56 PM, Kevin J. Cummings cummings@kjchome.homeip.net wrote:
On 03/25/2011 04:33 PM, Aaron Konstam wrote:
Look I don't want to be difficult. But this is a Fedora list and the command mlabel that you are using does not exist in Fedora 14. So your information about changing usb drive labels using mlabel -i is useless to Fedora users.
Let;s be clear here, since Tom, Carroll, mike, and Howard seem to have missed Aaron's point:
Yes, mlabel is a part of Fedora.
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
So Aaron is right, the posted solution is not useful to Fedora users.
I've just re-read Aaron's post and, yes, I didin't realize that he meant that "-i" doesn't exist.
It doesn't exist in Ubuntu either when you run "man mlabel" or "mlabel --help".
It does however work on both Fedora and Ubuntu to pass an mlabel command to a Linux device ("mlabel -i /dev/sdXY ...") as opposed to a DOS-like device (for example: "echo 'drive z: file="/dev/sdXY"' > ~/.mtoolsrc; mlabel -z f: ...").
On Friday, March 25, 2011 09:56:19 pm Kevin J. Cummings wrote:
But, the version of mlabel that Fedora provides does *not* support the -i flag that the posted solution says to use. Perhaps the -i flag is an Ubuntu only extension to their version of mlabel?
So Aaron is right, the posted solution is not useful to Fedora users.
Sorry, please read the full relevant manual section at: http://www.gnu.org/software/mtools/manual/mtools.html#SEC5
Then try the '-i' option; no, it doesn't show up in the man page, but that's because it's a GNU program stuck on texinfo instead of man pages.
Repeating: for *many* GNU-originated packages the man pages are incomplete, and you must use the texinfo manual. Or you will be using outdated, unmaintained, documentation since the man pages aren't well maintained, since the primary docs for those packages are in texinfo format.
Or to demonstrate: [root@localhost ~]# uname -r 2.6.35.11-83.fc14.x86_64 [root@localhost ~]# rpm -q mtools mtools-4.0.13-2.fc14.x86_64 [root@localhost ~]# mlabel --help Mtools version 4.0.13, dated February 28th, 2010 Usage: mlabel [-vscVn] [-N serial] drive: [root@localhost ~]# mlabel -i /dev/sdc1 -s :: Volume has no label [root@localhost ~]# which dosfslabel /sbin/dosfslabel [root@localhost ~]# dosfslabel /dev/sdc1 FEDORA [root@localhost ~]#
Note that the label seen and manipulated by dosfslabel is the one that F14 is using for the mount point: [root@localhost ~]# mount [snip] /dev/sdc1 on /media/FEDORA type vfat (rw,nosuid,nodev,uid=501,utf8,shortname=mixed,flush) [root@localhost ~]#
So the answer for the OP: use dosfslabel since it seems to really change the label that F14 is using. The mlabel utility, while it seems to be doing the proper thing with -i, isn't picking up the proper label.
Good grief, guys, check your facts before posting that the version the poster is using isn't in F14.