LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-27-2003, 11:26 AM   #1
tallguy999
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Question Mounting specific hardware devices to specfic mount points


I have 2 internal and 4 external USB ports that I use for various types of external storage (hard drives / USB Flash drives / Camera Compact Flash cards etc).

I understand that the device name these end up with is basically in order of detection, i.e. the first device that gets picked up will be /dev/sda1, the second /dev/sdb1, the third /dev/sdc1 etc.

At the moment I have several directories in my /mnt folder named, usbdrive1, usbdrive2, usbdrive3 etc and relevant entries in my /etc/fstab so that if any of these devices are present at boot, they'll get mounted. So sda1 will get mounted to usbdrive1, sdb1 will get mounted to usbdrive2 etc. This part I understand

What I really want is to have more meaningful folder names in /mnt. But if I create a folder called /mnt/compactflash what do I put in /etc/fstab to ensure the compact flash card always gets mounted to that point, when it could potentially be allocated any of the device names listed above.

It maybe that this is impossible, but if there is a way to do it I would be very keen to find out! I've noticed the product/vendor info gets picked up in /var/log/messages as soon as the device is inserted. Is there anyway this can be used? I did start looking at the hotplug stuff but got totally confused!
 
Old 11-27-2003, 12:31 PM   #2
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
hi friend.

googling for linux mount points gave this. Check it out.

http://members.blue.net.au/felgall/lincmd2.htm

Hope this helps
 
Old 11-27-2003, 12:59 PM   #3
tallguy999
LQ Newbie
 
Registered: Oct 2003
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for the URL - took a look but it only really covers the bits I've already managed to work out. Apart from the fsck option for mount, but I don't think that's quite what I need.

Thanks anyway!
 
Old 11-27-2003, 02:07 PM   #4
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Make the directories you want to mount to, then just take a look in your /etc/fstab file. The part you need is pretty simple, each line in fstab has info on a certain filesystem. It'll be pretty easy to find the lines you're looking for, it'll start with /dev/sda1 and such. After that, you'll see the directory to be mounted to, and you can change this to whatever you want (like /mnt/compactflash instead of /mnt/usbdrive1).
 
  


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
Mount points on usb devices (dig. camera, zip drive, external hard disk) Impaler Linux - Hardware 3 05-29-2006 11:08 PM
Mounting new HD space into existing mount points? GT_Onizuka Linux - Hardware 4 05-26-2004 05:15 AM
two mount points for same hardware? cadkins Linux - Newbie 4 04-15-2004 09:54 PM
Mount hardware to specific location with specified device blixel Linux - Hardware 5 10-21-2003 04:21 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM


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