LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-13-2008, 01:22 PM   #1
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Rep: Reputation: 15
Way to make autofs mount to specific USB flash drive to specific folder?


Is there a way to configure autofs to auto mount a specific USB drive (via a unique identifier) to a specific folder?

For example, perhaps I have three flash drives and I want Linux to recognize each is different. If flash drive "A" is plugged in, I want it mounted in folder "A". If flash drive "B" is plugged in, I want it mounted in folder "B".

Is this do-able?
 
Old 02-13-2008, 10:27 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,319

Rep: Reputation: 140Reputation: 140
You can label the partitions on the flash drives with identifying labels if you have the right partitioning tools. For example, I have two flash drives each having one partition. Using Acronis Disk Director, I was able to give each partition a unique label, one "Backup" and the other "Data". Every time I insert the "Backup" flash drive, it mounts on /media/Backup and when I insert the "Data" flash drive it mounts on /media/Data. In general, once you label a partition on and external usb mass storage device, that partition will always be mounted on /media/<partition label>.

I know Partition Magic is capable of labeling FAT32 partitions as well. For ext2 and ext3 partitions, you can label them within linux using the e2label command:

# e2label <device file> <label name>

But I'm not familiar with any native linux tools that allow you to label FAT32 which is the way most flash drives come formatted. I think there may be a way of doing this using mtools but I'm not really up on that.
 
Old 11-24-2010, 05:27 PM   #3
_tek_
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
GParted is what you're after

bring this thread back to life with an answer to help the next guy .

gparted can label vfat (fat32) partitions in linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
untar to a specific folder kennmurrah Linux - General 4 05-22-2010 06:06 AM
Force USB drive to specific /dev/sd? without udev cb8100 Linux - Hardware 1 01-17-2007 05:51 PM
How to make a specific command(s) work for specific users or group only naren_0101bits Linux - General 3 08-28-2005 05:22 PM
How to make a specific command(s) work in a specific shell only naren_0101bits Linux - Newbie 3 08-28-2005 01:24 PM
specific USB Flash Disk not being mounted on Red hat 9 on kernel 2.4.20 irfanhab Linux - Hardware 3 01-30-2004 04:19 AM


All times are GMT -5. The time now is 04:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration