How to mount and umount a USB pen drive without being root?

Paul Smith phhs80 at gmail.com
Mon Nov 6 00:58:13 UTC 2006


On 11/6/06, Paul Smith <phhs80 at gmail.com> wrote:
> > > > > How to mount and umount a USB pen drive without being root?
> > > > ----
> > > > which sort of explains...
> > > > - why 'safely remove' didn't work for you (because it is in user space)
> > > > - why copying didn't work (probably because you were mounting as root
> > > > and copying as user)
> > >
> > > Thanks, Craig. I do not know what KDE does internally. If one could
> > > manually mount pen drives as mere users (and not only as root), then
> > > one would escape from the KDE bug... :-)
> > ----
> > mount should occur automatically as user - at least it has in FC-3, FC-4
> > and FC-5 and I assume FC-6 but I haven't tested FC-6 yet.
> >
> > As I suggested in another e-mail on this thread, IF you are logged in as
> > user and you insert USB Key/pen whatever you want to call it...it should
> > be automatically mounted as the logged in user in /media/usb-disk or
> > something very similar in /media
> >
> > This of course assumes that you haven't mucked with /etc/fstab or udev
>
> It happens as you describe. However, there is no way of safely
> removing the media but removing it as root.

Yes, it is possible to mount and unmount a usb pen drive:

1. create the directory /media/mydisk

2. add the following line to /etc/fstab:

/dev/sdaX /media/mydisk vfat noauto,user 0 0

Paul




More information about the fedora-list mailing list