Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: jester on April 12, 2011, 11:23:20 AM

Title: [solved] Mounting fat32 usb pendrive with LABEL?
Post by: jester on April 12, 2011, 11:23:20 AM
Is it possible to mount fat32 usb pendrive using the drive LABEL?
Title: Re: Mounting fat32 usb pendrive with LABEL?
Post by: curaga on April 12, 2011, 12:16:15 PM
Yes.
Title: Re: Mounting fat32 usb pendrive with LABEL?
Post by: Lee on April 12, 2011, 12:58:56 PM
Assuming the LABEL is CRUZER1 :
Code: [Select]
CRUZER1=`blkid |grep CRUZER1 |cut -d: -f1` ; CRUZER1=`basename "${CRUZER1}"` ; [ -n "${CRUZER1}" ] && sudo mount -t vfat /dev/${CRUZER1} /mnt/${CRUZER1}
Title: Re: Mounting fat32 usb pendrive with LABEL?
Post by: gerald_clark on April 12, 2011, 01:26:42 PM
install util-linux-ng.tcz

Assuming the LABEL is CRUZER1 :
mount -L CRUZER1 /mnt/CRUZER1
Title: Re: Mounting fat32 usb pendrive with LABEL?
Post by: jester on April 12, 2011, 04:44:54 PM
Thx. got it working now.  ::)
Title: Re: [solved] Mounting fat32 usb pendrive with LABEL?
Post by: vinnie on December 06, 2011, 09:34:18 AM
Ok work fine (mount -L label), but for umount?

Code: [Select]
tc@box:~$ mount -L magipen
tc@box:~$ umount -L magipen
umount: invalid option -- 'L'
Usage: umount -h | -V
       umount -a [-d] [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-d] [-f] [-r] [-n] [-v] special | node...
tc@box:~$

I install util-linux.tcz in regards of http://forum.tinycorelinux.net/index.php?topic=3675.0 (http://forum.tinycorelinux.net/index.php?topic=3675.0)