On 3/24/06, James <[EMAIL PROTECTED]> wrote: > Christoph Eckert <ce <at> christeck.de> writes: > > > > > Sure, I can put manual entries in to fix this, but, isn't that what > > > udev and hal/ivman/dbus are support to do, automagically? Every time > > > I want to use 2 usb memory sticks on any computer, my only option is > > > to manually edit the fstab? > > > shouldn't it be possible to create an udev rule to give different device > > names? Furthermore: > > OK, I'm not sure I can create a udev rule for this. Got an example? > > > Isn't it possible to make mount mounting the > > devices according to their disc labels? > > Yes but udev + hal/ivman/dbus should do this automatically. > > > The advantage of Linux is that there are choices, and I guess it is not > > that easy to choose the right one for your issue . > > If I have to choose, I'd choose udev rule. If I write a specific rule > in fstab for these devices, what happens when I use another (3rd) different > usb memory device? > > James >
You do not write "rules" for the device at fstab, you only specify that this device is going to be mounted at this directory, so, you just have to write lines for all /dev/sdX that you'll use: /dev/sda /mnt/usbdisk1 auto user,defaults,noauto 0 0 /dev/sdb /mnt/usbdisk2 auto user,defaults,noauto 0 0 /dev/sdc /mnt/usbdisk3 auto user,defaults,noauto 0 0 This is mine, I usually have an Iomega 20GB drive pluged as usbdisk1, and sometimes I copy stuff to my pendrive at usbdisk2, and eventually (who knows) I may plug two pens in order to clone them or copy from one to another... -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- [email protected] mailing list

