Skip to contentSkip to conversation

umount

DISCUSSION Edgar Alwers 3 participants 5 messages Nov 8, 2002 – Nov 11, 2002

lore
Share & tools
lore
#0 lore raw

Hallo,
in my KDE 3.0.3 (linux from the scratch ) I installed an CD-ROM Icon on the desk, which mounts /dev/cdrom on the mount point /media/cdrom. Klicking on the Icon ( as user ) mounts the CD-ROM perfectly. But if I then try to umount the device klicking with the right mouse on the icon and selecting "umount", I get an error message: only root can umount /dev/cdrom from /media/cdrom.
What should I do to enable the "umount" ? ( why is by the way "mount" functioning ? )
Thanks
Edgar

Signature · 8 lines
--------------------------------
Dr.-Ing. Edgar Alwers
Mailto: [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 9 lines · Edgar Alwers

Hallo,
in my KDE 3.0.3 (linux from the scratch ) I installed an CD-ROM Icon on the desk, which mounts /dev/cdrom on the mount point /media/cdrom. Klicking on the Icon ( as user ) mounts the CD-ROM perfectly. But if I then try to umount the device klicking with the right mouse on the icon and selecting "umount", I get an error message: only root can umount /dev/cdrom from /media/cdrom.
What should I do to enable the "umount" ? ( why is by the way "mount" functioning ? )

Well ... I'd guess there is a permissions difference between mount and umount. Check both by using "ls -l /bin/mount" and "ls -l /bin/umount" and see what the difference is. It might be simply the mode, or it might also involve group each is "owned" by.

The other possibility if an entry in /etc/fstab that makes mounting possible but not umounting (though I can't offhand think of a setting that will do this).

BTW, is "klicking" some KDE idiom?

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 2 lines · Ray Olszewski

Well ... I'd guess there is a permissions difference between mount and umount. Check both by using "ls -l /bin/mount" and "ls -l /bin/umount"

nope: both are -rwsr-xr-x, but both owned by root and group = root ?

Quoted 3 lines

The other possibility if an entry in /etc/fstab that makes mounting possible but not umounting (though I can't offhand think of a setting that will do this).

/devf/cdrom ro,noauto,user,exec 0 0

Quoted 1 line

BTW, is "klicking" some KDE idiom?

hmm.... sorry Ray, german english for "to click" . I promise, I will try harder ! ;-)

Regards,
Edgar

Signature · 8 lines
--------------------------------
Dr.-Ing. Edgar Alwers
Mailto: [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#3 lore raw
Quoted 4 lines
Quoted 3 lines

The other possibility if an entry in /etc/fstab that makes mounting possible but not umounting (though I can't offhand think of a setting that will do this).

/devf/cdrom ro,noauto,user,exec 0 0

(I assume you mean ``/dev/cdrom /media/cdrom iso9660 ro,noauto,user,exec 0 0'')

The ``user'' option is fstab indicates that any user should be able to mount the filesystem, but that only that user should be able to unmount it. (So if sos22 mounts it, spqr2 can't unmount it). If you want the more obvious behaviour, use option ``users'' rather than option ``user''.

The obvious thing to check is that the mounting user is being recorded correctly in the mtab. There should be something along the lines of ``user=sos22'' (or whatever your username is) in the /etc/mtab line for /dev/cdrom. If not, or if it specifies a different username, you'll be allowed to mount, but not unmount.

In particular, making /etc/mtab a symlink to /proc/mounts will break umounts from ordinary user accounts, but appart from that won't be terribly visible. If you have such a symlink, you should probably ``rm /etc/mtab; cp /proc/mounts /etc/mtab'' and then reboot.

Steven Smith,
[email protected].

#4 lore raw

Hallo, Ray and Steven,

thank you very much for the help. Details as follows:

Quoted 7 lines · Steven Smith

The obvious thing to check is that the mounting user is being recorded correctly in the mtab. There should be something along the lines of ``user=sos22'' (or whatever your username is) in the /etc/mtab line for /dev/cdrom. If not, or if it specifies a different username, you'll be allowed to mount, but not unmount.

This was the clue. After entering a line as given in mtab, I could also umount cdrom as user.

Quoted 2 lines

If you have such a symlink, you should probably ``rm /etc/mtab; cp /proc/mounts /etc/mtab'' and then reboot.

I did this also. There was a symlink there, which I removed.

Thanks again
Edgar

Signature · 8 lines
--------------------------------
Dr.-Ing. Edgar Alwers
Mailto: [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs