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