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".
The "/etc/fstab" file also has a line in it relating to "dev/sdb1",
whose mount point is given as "/media/usbdisk". sdb1 is a USB flash
drive.
Recently, I booted up with sdb1 being, by mistake, not plugged in.
Then, when I started Thunderbird, it was unable to find my "local
directory". I discovered that that was because the path to my "local
directory" that I'd given it earlier, beginning with "/media/usbdisk1",
couldn't be found, the mount point for sda1 having been changed
automatically to "/media/usbdisk" when sdb1 wasn't present on bootup.
After that experience, I posted a question about it to this list.
However, I don't believe that I explained in my post about the path in
Thunderbird.
In any event, it was suggested to me that I could create a udev rule to
solve my problem.
I've read what I could find on creating udev rules, but still remain
confused, hence this further posting.
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".
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?
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?
Send instant messages to your online friends http://au.messenger.yahoo.com
-------------------------------------------------------
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