WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] Mounting fat32 usb pendrive with LABEL?  (Read 3094 times)

Offline jester

  • Newbie
  • *
  • Posts: 2
[solved] Mounting fat32 usb pendrive with LABEL?
« on: April 12, 2011, 11:23:20 AM »
Is it possible to mount fat32 usb pendrive using the drive LABEL?
« Last Edit: April 12, 2011, 04:46:05 PM by jester »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Mounting fat32 usb pendrive with LABEL?
« Reply #1 on: April 12, 2011, 12:16:15 PM »
Yes.
The only barriers that can stop you are the ones you create yourself.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Mounting fat32 usb pendrive with LABEL?
« Reply #2 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}
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Mounting fat32 usb pendrive with LABEL?
« Reply #3 on: April 12, 2011, 01:26:42 PM »
install util-linux-ng.tcz

Assuming the LABEL is CRUZER1 :
mount -L CRUZER1 /mnt/CRUZER1

Offline jester

  • Newbie
  • *
  • Posts: 2
Re: Mounting fat32 usb pendrive with LABEL?
« Reply #4 on: April 12, 2011, 04:44:54 PM »
Thx. got it working now.  ::)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: [solved] Mounting fat32 usb pendrive with LABEL?
« Reply #5 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
« Last Edit: December 06, 2011, 09:38:50 AM by vinnie »