Re: Device umount on SuSE Linux 9.1

From: K. Doniger (k.doniger_at_ieee.org)
Date: 10/04/04


Date: Mon, 04 Oct 2004 00:07:02 GMT

DWC -
Thanks for the response. The fstab lines on my machine look more like:

/dev/cdrom /media/cdrom subfs
fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

(This is actually one long line split into two.) The fourth field is
more complicated than in your example. My inclination is to add "users"
to it. Will removing "exec" stop the automatic mounting at login? Can
I remove some of the other pieces in the 4th field?
- Ken

PS. What's with this "Black Sun" thing?

Dances With Crows wrote:
> On Sun, 03 Oct 2004 23:07:53 GMT, K. Doniger staggered into the Black
> Sun and said:
>
>>I recently installed SuSE 9.1 Personal and might have a problem with
>>devices. The OS will not let me (as nonroot) umount the CD ROM, the
>>floppy, or the USB jump drive. I get a message saying that only root
>>has the privilege to do this.
>
>
> Yep. Look at the following fstab lines. The top one is wrong, the
> bottom one is right:
>
> /dev/scd0 /mnt/cdrom auto ro 0 0
> /dev/scd0 /mnt/cdrom auto noauto,ro,users 0 0
>
> ...note the differences in the 4th field. "noauto" means that the
> device will not be automatically mounted at boot time. "users" means
> that any user can mount and umount the device.
>
>
>>It will also not let me eject a CD. I assume that's because it is
>>still mounted.
>
>
> Yep.
>
>
>>It looks as though everything in /etc/fstab is automatically
>>mounted at login.
>
>
> Fix that.
>
>
>>I can physically remove the media without umounting or ejecting. I've
>>heard this is not desirable for jump drives, as they must complete any
>>file transfers before removal.
>
>
> Fix that too. Add "noauto,users" to the 4th field of all the removable
> media devices you have in /etc/fstab, and things will work better for
> you. HTH,
>



Relevant Pages

  • Re: [opensuse] umount automounted media
    ... Thanks Carlos, for the moment this a good solution. ... I think the problem is in the umount facility, it do's some checks for uid and fstab first, this is not relevant for usermounted devices. ... The automounter does not use the traditional method with fstab, so umount does not work. ...
    (SuSE)
  • Re: [SLE] Safely Removing USB Stick as a user
    ... Kai Ponte wrote: ... I get the following message when trying to "safely remove" USB Stick as ... umount: /media/usbdisk is not in the fstab ...
    (SuSE)
  • Re: umount: not coherent with fstab
    ... I'm using kubuntu 7.04 and I've got in my fstab the following lines: ... but if I try to umount one of them I've got a message: ... how can I display the UUID for a partition? ... IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL. ...
    (Ubuntu)
  • Re: Root cannot umount fat device mounted in fstab?
    ... > But a script I had been using can no longer work ... With the above line in fstab even ... > root cannot umount the device ...
    (alt.os.linux)