LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-11-2007, 07:55 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Rep: Reputation: 36
fstab and mounting devices


hello everyone,
so far i have an fstab entry for when i mount the ipod shuffle /dev/sdf1 to be mounted in /mnt/ipod..

additionally i have a flash drive that i use quite often which i would like to mount on /mnt/memory whenever i have it plugged in.

as you may have guessed the problem that arises is that the first usb device i plug in will be on /dev/sdf1 and that will me mounted on /mnt/ipod regardless of whether it is the ipod indeed. then if i plug in the 2nd device , it will be /dev/sdg1 and will be mounted on /mnt/memory..

is it possible that i can somehow tell the system to mount the ipod shuffle nomatter what the /dev/ entry to /mnt/ipod always? and the respective for the flash drive?

thank you for your help
nass
 
Old 07-11-2007, 08:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
you'd presuambly use udev under slack to create /dev/ipod as a device when certain criteria of the associated device is matched, e.g. vendor of serial no. http://www.reactivated.net/writing_udev_rules.html
 
Old 07-11-2007, 09:18 AM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
thank you very much! i read the doc, applied it and voila!
works like a charm!
thanks again!
 
  


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
USB devices in mtab, not fstab coldsalmon Linux - Hardware 1 02-05-2006 03:12 AM
Manage automatic mounting/adding to fstab of new devices?? brynjarh Debian 2 02-13-2005 12:40 PM
Editing fstab to mount devices? apachedude Suse/Novell 7 12-03-2004 05:35 AM
fstab and loop devices MBH Linux - Hardware 3 10-21-2004 09:58 AM
fstab and devices (making) TheBman Linux - Hardware 14 12-31-2003 10:55 AM


All times are GMT -5. The time now is 02:48 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