LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2012, 11:58 PM   #1
goodvikings
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Rep: Reputation: Disabled
Mounting a thumb drive


Hiya all

Running Fedora 17

I'm trying to make it so my thumb drive mounts to a certain location when I plug it in, instead of the default place. However, I'm having a few issues with it that google can't solve for me.... Apparently this is a common (enough) problem but no one actually has an answer for it.

The line for it in /etc/fstab is:

Code:
UUID=045A-1E3E	/mnt/POINT	vfat	rw,noauto	0	0
I figured it was to do with the option auto vs noauto, but with auto, the OS blocks on boot if the drive isn't connected, and with noauto I have to sudo mount the drive manually after connecting it, defeating the purpose.

Any ideas?

Cheers

Ramo
 
Old 10-24-2012, 12:25 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 610

Rep: Reputation: 42
just write a script called map.sh
Code:
#!/bin/bash
mount -t vfat /dev/thumbdrive /destination
then in rc.local

put
Code:
source  /location_of_the_script/map.sh
 
Old 10-24-2012, 12:38 AM   #3
goodvikings
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Uhhh what you describe is accomplishing the same thing as having the 'auto' option in /etc/fstab, which doesn't really solve the problem
 
Old 10-25-2012, 06:49 PM   #4
goodvikings
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Dey see me bumpin
 
Old 10-25-2012, 07:22 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Include the "user" or "users" option in your /etc/fstab entry. The "user" option allows unmount only by the user that mounted the filesystem. The "users" option allows any user to unmount.

Note that a non-root user of the mount command is forbidden from using any options other than read-only and must specify either the device or the mount point, not both.
 
  


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
Install Linux to SATA drive but GRUB2 on to USB thumb drive Quija Linux - General 2 11-22-2011 07:40 PM
USB Thumb drive mounting issues joreen Linux - Hardware 3 07-13-2006 05:38 AM
USB thumb drive mounting as Read Only baryonyx SUSE / openSUSE 3 05-25-2006 01:57 AM
Mounting a thumb drive lucky6969b Linux - General 10 02-16-2006 11:52 PM
Mounting USB Thumb Drive Issues xm0b31 Linux - Hardware 2 04-27-2004 07:04 PM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration