LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-10-2004, 11:13 PM   #1
vagrawal
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
How do I map device serial number to its mount point directory?


hi!
I have two maxtor usb external hard drive mounted on my Mandrake 9.2 machine.
If i look at /proc/bus/usb/devices, it shows me these two drives and their respective serial numbers and these two drives are mounted as /mnt/removable and /mnt/removable2.
I wanted to find out which serial number disk is mounted as which directory?
Any help will be appreciated.
Thank you.
 
Old 03-11-2004, 12:25 AM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
I believe recent kernels and mount utilities have added support for mounting based on filesystem labels. However you need to have the drives formatted as ext* for this to work, then use e2label to add the label to each drive, then edit your fstab to change the device name to "LABEL=labelname" instead of /dev/whatever. This will still require that you try to mount both mountpoints when you add a drive, unless you know which label you're putting in there.

I think hotplug also has some features to automatically mount drives like this, and it might work better.
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
Missing Mount Point Directory jvang Linux - Networking 1 08-09-2005 08:19 AM
Maximun NIS Map number for automount jeanpba Linux - Networking 0 02-25-2005 03:26 AM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 12:10 PM


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