Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: jester on April 12, 2011, 11:23:20 AM
-
Is it possible to mount fat32 usb pendrive using the drive LABEL?
-
Yes.
-
Assuming the LABEL is CRUZER1 :
CRUZER1=`blkid |grep CRUZER1 |cut -d: -f1` ; CRUZER1=`basename "${CRUZER1}"` ; [ -n "${CRUZER1}" ] && sudo mount -t vfat /dev/${CRUZER1} /mnt/${CRUZER1}
-
install util-linux-ng.tcz
Assuming the LABEL is CRUZER1 :
mount -L CRUZER1 /mnt/CRUZER1
-
Thx. got it working now. ::)
-
Ok work fine (mount -L label), but for umount?
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)