[ale] ignorance, just ignorance
Michael B. Trausch
mbt at naunetcorp.com
Thu Oct 3 09:42:46 EDT 2013
On 10/02/2013 03:46 PM, Sean Kilpatrick wrote:
>
> Anyway,
>
> I have this thumb drive named {thumb1} I need to rename it [thumb2]
>
> so, as root, I did this:
>
> cd /media
>
> mv thumb1 thumb2
>
> and was told that 'device or resource busy.'
>
> But if I unmount the thumb drive, then it isn't seen by the OS, and
> there isn't anything to rename.
>
I know that you've already solved the renaming part, but I thought I'd
offer an explanation for this.
When anything is mounted on a directory, the directory becomes a /mount
point/. That mount point is special in that it cannot be renamed or
moved, as it is "in use" by the filesystem which is mounted on it.
> So, how do I rename this thing?
>
For future reference, here are commands for renaming/relabeling various
filesystems:
* ext2/3/4: tune2fs -L <NEWNAME> /dev/foo
* btrfs: btrfs filesystem label <NEWNAME> /dev/foo
* FAT12/16/32: fatlabel /dev/foo <NEWNAME>
* exFAT: ???
For ISO9660 and UDF, the filesystem names are set at creation.
These are just the ones I know. I am sure that JFS, XFS, ZFS, etc. all
have their own commands as well.
--- Mike
--
Naunet Corporation Logo Michael B. Trausch
President, *Naunet Corporation*
? (678) 287-0693 x130 or (855) NAUNET-1 x130
FAX: (678) 783-7843
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20131003/26a6ea7e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cehbafhc.png
Type: image/png
Size: 1701 bytes
Desc: not available
URL: <http://mail.ale.org/pipermail/ale/attachments/20131003/26a6ea7e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mail.ale.org/pipermail/ale/attachments/20131003/26a6ea7e/attachment.sig>
More information about the Ale
mailing list