On Wed, Oct 22, 2008 at 8:33 AM, Aioanei Rares <[EMAIL PROTECTED]> wrote: > > > On Tue, Oct 21, 2008 at 9:22 PM, Emanoil Kotsev <[EMAIL PROTECTED]> wrote: >> >> --- On Tue, 10/21/08, Paul Cartwright <[EMAIL PROTECTED]> wrote: >> >> > From: Paul Cartwright <[EMAIL PROTECTED]> >> > Subject: Re: USB ownership >> > To: [EMAIL PROTECTED] >> > Cc: debian-user@lists.debian.org >> > Date: Tuesday, October 21, 2008, 12:48 PM >> > Emanoil Kotsev wrote: >> > > Paul Cartwright wrote: >> > > >> > >> Andrei Popescu wrote: >> > >>> On Mon,20.Oct.08, 17:06:25, Emanoil Kotsev >> > wrote: >> > >>> >> > >>>> I suggested to use device by uuid >> > >>>> >> > >>>> >> > /dev/disk/by-uuid/3fca395b-d75d-44ab-98be-9ec05b2e45fd >> > >>>> /media/usb_2G_part3 auto >> > users,noauto,atime,rw,nodev,noexec,nosuid 0 0 >> > >>> >> > >>> You can shorten this a bit: >> > >>> >> > >>> UUID=3fca.... >> > >>> >> > >>> It's not much, but given that the UUID is >> > already very long... >> > >>> >> > >> here is my /etc/fstab entry ( that works) >> > >> UUID=686C-7E81 /media/usb_DAWGS vfat >> > >> users,atime,rw,nodev,noexec,nosuid,noauto 0 0 >> > >> >> > >> ( that was all one line) >> > >> >> > >> in the /media folder is a file called .hal-mtab >> > >> I was trying to add an entry in there for this, so >> > my wife could unmount >> > >> it, but I was not successful. The fstab entry >> > still mounts it: >> > >> >> > >> drwxr-xr-x 2 root root 4096 2008-08-16 15:14 >> > usb_DAWGS >> > >> >> > >> >> > > >> > > For me the UUID= entry did not work >> > > >> > > The /dev/disk/by-uuid work >> > > >> > > Paul, the .hal entries are system entries they do not >> > have to be set in >> > > fstab >> > > >> > I tried adding that /dev/disk/by-uuid entry to .hal-mtab , >> > but no change. >> > I think the REAL way to do it would be with a >> > /etc/udev/rules.d entry, >> > but after looking at man udev and the 50.udev-rules file, >> > it is way over >> > my head. I give up. I'll just have to tell her to >> > switch to my user to >> > add entries, since I seem to own everything inserted. >> > >> > >> >> I don't think you have to mess up with the .hal entries >> >> the correct place would be /etc/fstab >> >> you need the /dev/disk .... entry in the fstab file >> >> I've tried it as I said it didn't work with UUID but with this entry in >> the /etc/fstab file all was fine >> >> regards >> >> >> >> regards >> >> >> >> >> >> -- >> To UNSUBSCRIBE, email to [EMAIL PROTECTED] >> with a subject of "unsubscribe". Trouble? Contact >> [EMAIL PROTECTED] >> > > I've read something about a year ago that adding an entry in fstab for usb > sticks isn't > such a good idea...can't remember the link though.YMMV.
Maybe that is due to the fact that it messes with the automounter. If you want to add an USB stick to fstab then this should be because you need the mount point to be consistent. In that case you should always use the UUID, since the /dev location can vary. However, the OP wants to solve another problem: his wife cannot acces an USB stick with write rights. The best solution for this cannot be to add the UUID of every USB stick his wife decides to use (including borrowed ones) to some file. He would have to add a borrowed USB stick to this file if his wife needs to transport some documents to someone (and they are to big for mail). I hope a better solution is available. Neil -- There are three kinds of people: Those who can count, and those who cannot count ----------------------------------------------------------------------- ** Hi! I'm a signature virus! Copy me into your signature, please! ** ----------------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]