Re: rename flash drive auto mount point

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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.

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux