On Fri, 2005-12-30 at 14:02 +1100, Leslie Katz wrote:
> My email client, Thunderbird, required me, when setting it up, to give
> the path to my "local directory". I did so. That path, which led to
> files on my USB hard drive, began as follows: "/media/usbdisk1/...".
> 
> When I look at my "/etc/fstab" file, it shows that "/media/usbdisk1" is
> the mount point for "/dev/sda1".

> 
> I understand that I can identify my USB hard drive in a udev rule as
> follows:
> 
> BUS="usb", SYSFS{serial}="503110007286" (that serial number having been
> got by using udevinfo).
> 
> Next come(s) the assignment key(s).
> 
> One article I read suggested using NAME="%k" and then specifying any
> "extra names in the SYMLINK parameter so that you do not lose the
> default sensible names".

Seams reasonable

> 
> However, I don't understand presently how doing that would solve my
> problem. My problem, as I dimly understand it, is the path to my "local
> directory" in Thunderbird, which begins with "/media/usbdisk1". If, in
> a udev rule, I created a SYMLINK called "/media/usbdisk1", it seems
> that that would add to my "/dev" directory an entry
> "/dev/media/usbdisk1". But would that mean that Thunderbird would find
> my "local directory" even when sdb1 was unplugged?
> 

Yes, the symlink would be created under /dev with the side effect being
that you always end up with the same symlink name when you plug the USB
drive in (not depending on other USB drives being plugged or not).

> Alternatively, I understand that I could not bother with a SYMLINK and
> merely assign a NAME value of "media/usbdisk1" to sda1, which would
> also create an entry in the "/dev" directory called "/dev/usbdisk1".
> But again I don't understand how sda1's having that NAME value would
> solve my path problem in Thunderbird if sdb1 was unplugged on bootup.
> 
> I suppose I could reframe my fundamental question as this: don't I need
> a permanent mount point, rather than a permanemt device name?
> 

If you name the SYMLINK="usb_hd" you could add an fstab line like
 
/dev/usb_hd     /media/usbdisk1     ...

and mount that when you have the USB drive plugged in. Personally I
don't use HAL/pmount, but perhaps you could instruct the automounter to
always use your fstab line for that specific drive?



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to