How do I edit labels for a fat-32 (or vfat) partition - SOLVED!!
Carthik Sharma
carthik at gmail.com
Thu Sep 15 16:14:01 UTC 2005
On 9/15/05, Magnus Therning <magnus at therning.org> wrote:
>
> On Thu, Sep 15, 2005 at 10:31:47AM -0400, Carthik Sharma wrote:
> >On 9/15/05, Magnus Therning <magnus at therning.org> wrote:
> <bigsnip />
> You need to edit /etc/mtools.conf. Add something like this:
>
> drive d: file="/dev/sdb1"
>
> Choose your own drive letter and the correct device. I haven't tried
> renaming my USB stick (I'm happy with the name I gave it) but this at
> least makes it turn up in MToolsFM (from the package mtoolsfm).
>
> /M
Alright, I did it.
Step by step instructions to re-label fat partitions follows:
1) Install mtools:
$sudo apt-get install mtools
2) After the usb mount is automounted after plugging in, find out the device
descriptor using:
$mount
and Note down where it says "sda1" or similar
3) copy the mtools.conf to ~/.mtoolsrc
$cp /etc/mtools.conf ~/.mtoolsrc
4) Edit ~/.mtoolsrc to add one line at the very end:
drive i: file="/dev/sda2"
--you may have to change sda2 to something else depending on what you got in
step 2 above.
5) Change to the "drive" i:
$mcd i:
6) Check what the label for the drive is currently:
$sudo mlabel -s i:
7) Change the label to something pretty:
$sudo mlabel i:magnus
Yes, I named my ipod after the gallant man who showed me the way!
8) Check if the label has changed:
$sudo mlabel -s i:
I got the following output --
Volume label is MAGNUS
You're all set!!
Thanks again, Magnus.
Carthik.
--
Ph.D. Candidate
University of Central Florida
Homepage: http://carthik.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050915/f3b50096/attachment.html>
More information about the ubuntu-users
mailing list