LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-17-2009, 11:44 AM   #1
n0wiq
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Automaticly mounting a USB flash drive to a specific directory


I have put the wine drive_c information onto a USB flash drive and I want it to mount automatically to $HOME/.wine/drive_c. How do I do this?
 
Old 09-17-2009, 12:28 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by n0wiq View Post
I have put the wine drive_c information onto a USB flash drive and I want it to mount automatically to $HOME/.wine/drive_c. How do I do this?
Try:

Code:
path="$HOME/.wine/drive_c"

[ -e $path ] || mkdir -p $path

mount (device) $path
Untested.
 
Old 09-17-2009, 01:26 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,036

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
I have put the wine drive_c information onto a USB flash drive and I want it to mount automatically to $HOME/.wine/drive_c. How do I do this?
You could write a udev rule. This sort of thing is exactly what udev was developed for.

See here there are several examples towards the end of the page.

Note that udev will not understand $HOME, you'll have to use /home/n0wiq/.wine/drive_c instead.

Welcome to LQ!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to make autofs mount to specific USB flash drive to specific folder? utahnix Linux - Software 2 11-24-2010 06:27 PM
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 09:58 AM
Mounting a USB Flash Drive hm3buzz Linux - Hardware 4 08-25-2006 11:05 AM
mounting a usb flash drive chodeman07 Linux - Hardware 1 02-09-2006 09:59 AM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 09:59 AM


All times are GMT -5. The time now is 05:06 PM.

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