[NTLUG:Discuss] USB hard drive question
Chris Cox
cjcox at acm.org
Tue Jun 10 18:32:12 CDT 2008
Chris Cox wrote:
> Mike LaPlante wrote:
>> Fred James wrote:
>>> All
>>> I have two external USB hard drives on my Linux box, they never get
>>> unplugged, and they are listed in fstab. But on boot they don't always
>>> come back as expected - the one I think of a ONE, might come back as
>>> TWO, etc. Is that just a feature of the beast? BTW - Restarting
>>> usually fixes that.
>>> Regards
>>> Fred James
>>>
>> You can setup Udev rules to identify each drive and create symlinks such
>> as /dev/usbdriveONE and /dev/usbdriveTWO.
>>
>> The idea is to setup a rule that on boot detects things like
>> make/model/serial number and creates a symlink from /dev/sdb1 to
>> /dev/usbdriveONE. While the device may differ from sdb to sdc on each
>> boot, the symlink should remain correct. So you would use the symlink in
>> your fstab.
>>
>> Afraid I won't be much help giving specific instructions though, I had a
>> hell of time getting the rule for my two PVR cards to work right. Ended
>> up just taking stabs at it and lots of reboots later it seemed to be
>> working so I've left it alone ever since.
>>
>> This site may be of help if you're up to the long read.
>>
>> http://www.reactivated.net/writing_udev_rules.html
>
> You can read my unfinished article (it's cluttered at the bottom
> with junk... thus... it's unfinished).. you have to log
> into the ntlug site do view it though...
>
> Use GuestReader and the word guest written twice to login
> as the password.
>
> If that helps...
Article url (won't see anything if not logged in)
http://www.ntlug.org/Articles/Hotplug
More information about the Discuss
mailing list