Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-27-2003, 12:26 PM   #1
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, 01:31 PM   #2
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.

Hope this helps
Old 11-27-2003, 01:59 PM   #3
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, 03:07 PM   #4
LQ 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).


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-30-2006 12:08 AM
Mounting new HD space into existing mount points? GT_Onizuka Linux - Hardware 4 05-26-2004 06:15 AM
two mount points for same hardware? cadkins Linux - Newbie 4 04-15-2004 10:54 PM
Mount hardware to specific location with specified device blixel Linux - Hardware 5 10-21-2003 05:21 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 06:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 PM.

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