On Fri, 2004-05-21 at 00:57, toughguy wrote:
> I've got a USB keychain-drive, and a 120GB external firewire drive with 4
> partitions. I want to make mounting them simple, so my wife can use the
> computer too, and so I don't have to think to do routine tasks like these.
> All partitions are of type msdos, so I can't (apearantly) use
> LABEL="mylabel" with them in fstab. The problem is, since they're external
> drives, where they show up changes depending on what's already mounted. IE.
> Whatever drive I mount first gets /dev/sda*, and the second one gets
> /dev/sdb*. I'd like to always mount the same partitions to the same folder
> in /mnt, no matter if it were designated sdb or sda.
> Is there a (fairly simple) way to do this?

In theory, updfstab is supposed to be able to do this, although I
haven't had much luck.  What I have done, though, is write a script that
checks /proc/partitions to see if the partition signature of my external
drive is there and if so sets up the proper fstab entries (using the
device paths handily reported by /proc/partition).  I think the process
can even be automated by hacking /etc/hotplug/ieee1394.agent to run the
script automatically when it detects the firewire drive.

If your external disk is USB, there is a chance you can set up entries
in /etc/updfstab.conf.defaults and it would work, since I know updfstab
does scan the usb-storage devices.

Now if I could just fix that stupid problem where fam won't let go of
the device.  It's so annoying.  I've tried doing a umount -l for a lazy
unmount which works, but I corrupted my usb pen drive doing that.

Michael


> When my wife uses the computer, it'll already be in X, with Fluxbox, so I
> don't even _need_ to have them in fstab, since the fluxbox menu just runs
> whatever command designated.
> 
> Thanks!
> 
> ~Michael Moroe
> 
> 
> 
> Visit www.elementsbycaroline.com for great photography deals!
> We do weddings, engagments, and bridal portraits.
> 
> 
> 
> ____________________
> BYU Unix Users Group 
> http://uug.byu.edu/
> ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
-- 
Michael L Torrie <[EMAIL PROTECTED]>


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to