LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-27-2019, 12:11 PM   #1
Brother77
Member
 
Registered: Jul 2018
Location: US, Washington, Seattle
Distribution: openSUSE Tumbleweed
Posts: 36

Rep: Reputation: Disabled
Eject command lacks permissions after upgrade to 15.1


Did the permissions changed after upgrade 15.0 -> 15.1?

Error: umount failed: Operation not permitted

For unmounting a cdrom.

With sudo there is no problem but normally i do this just with a icon on the desktop.

Any advice here?

Thanks in advantage!

Peter
 
Old 08-27-2019, 12:49 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,970

Rep: Reputation: 271Reputation: 271Reputation: 271
The device needs permissions. For me that's /dev/sr0. I put a command in /etc/rc.d/rc.local
 
Old 08-27-2019, 01:05 PM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by RandomTroll View Post
The device needs permissions. For me that's /dev/sr0.
I don't know how it works in openSUSE 15, but here the device files need to be in the group cdrom (and writable for the group) and I, myself, need to be in that group too to have those permissions.
Code:
brw-rw---- 1 root cdrom 11, 0 2019-07-29 19:46:00 /dev/sr0
brw-rw---- 1 root cdrom 11, 1 2019-07-29 19:46:00 /dev/sr1
This is the default in Slackware's "udev", but of course in openSUSE all that has been taken over by systemd, so I do not know what the defaults there are.
 
Old 08-28-2019, 12:05 PM   #4
Brother77
Member
 
Registered: Jul 2018
Location: US, Washington, Seattle
Distribution: openSUSE Tumbleweed
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
CODE]
brw-rw---- 1 root cdrom 11, 0 2019-07-29 19:46:00 /dev/sr0
brw-rw---- 1 root cdrom 11, 1 2019-07-29 19:46:00 /dev/sr1[/CODE]
I did work before without any configuration on 15.0 and older.

The eject command works with a cdrom:
Code:
% eject -v
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: trying to eject using CD-ROM eject command
eject: CD-ROM eject command succeeded
But not as DVD:
Code:
eject: using default device `/dev/sr0'
eject: device name is `/dev/sr0'
eject: /dev/sr0: mounted on /run/media/neljor/openSUSE-Leap-15.1-DVD-x86_64470
eject: /dev/sr0: is whole-disk device
eject: /run/media/neljor/openSUSE-Leap-15.1-DVD-x86_64470: unmounting
umount: /run/media/neljor/openSUSE-Leap-15.1-DVD-x86_64470: umount failed: Operation not permitted.
eject: unmount of `/run/media/neljor/openSUSE-Leap-15.1-DVD-x86_64470' failed
What i notice is that the cdrom is not mounted, but functions fully.
And the dvd IS mounted but cannot be unmounted without root permission.

Code:
% groups
users cdrom

% ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Aug 28 09:56 /dev/sr0

Kindly,

Peter
 
Old 08-28-2019, 04:00 PM   #5
Brother77
Member
 
Registered: Jul 2018
Location: US, Washington, Seattle
Distribution: openSUSE Tumbleweed
Posts: 36

Original Poster
Rep: Reputation: Disabled
[QUOTE=Brother77;6030200]Did the permissions changed after upgrade 15.0 -> 15.1?

Somehow the eject command is not suitable anymore, but just found that everything now is fully controlled by the device notifier,
mounting and ejecting of dvd's and cdroms. So i will give this a "problem solved" mark.

Thanks for reading.
 
Old 08-29-2019, 12:51 AM   #6
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Brother77 View Post
And the dvd IS mounted but cannot be unmounted without root permission.
So the problem is not with elect, but with umount, you don't have the privilege to UNmount a mounted disk on /dev/sr0, probably because it has been auto-mounted as root by something in your desktop environment. That would have been a showstopper too if it had been a CDrom. I never automount and my fstab has the "users" option in it so that every user is allowed to unmount CD's and/or DVD's:
Code:
/dev/dvd             /mnt/dvd        auto    noauto,users,ro         0 0
/dev/cdrom           /mnt/cdrom      auto    noauto,users,ro         0 0
Note that I use symlinks, as I got two drives and I have got an external (double-layer writer) 3rd one, so I do not want to restrict it to physical device names.

Last edited by ehartman; 08-29-2019 at 12:54 AM.
 
Old 08-29-2019, 11:56 AM   #7
Brother77
Member
 
Registered: Jul 2018
Location: US, Washington, Seattle
Distribution: openSUSE Tumbleweed
Posts: 36

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
Code:
/dev/dvd             /mnt/dvd        auto    noauto,users,ro         0 0
/dev/cdrom           /mnt/cdrom      auto    noauto,users,ro         0 0
Note that I use symlinks, as I got two drives and I have got an external (double-layer writer) 3rd one, so I do not want to restrict it to physical device names.
Thank you kindly, will look further in to this.
In 15.0 ejecting was no problem the device notifier seems to have had a update that it now supports ejecting too with the disadvantage that the
eject command is unable to do its job as i used to do. So have to question if i want to go along with the new functionality of the device notifier
or make some lines in the fstab. Doesn't that need the exec option too? Which also make me question if it needs a 3rd line for writable disks.

Have a great day!

Peter
 
Old 08-29-2019, 11:37 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
It might matter which DE you use. openSUSE offers Gnome, KDE, XFCE, LXQt and several others. Which do you use?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to eject a removable device in a software way, but not by "eject"command viktor2000 Linux - Newbie 13 10-14-2011 04:40 AM
Unmount and Eject with CD-Rom Eject Button? CrownAmbassador Linux - Hardware 3 12-26-2006 08:45 PM
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM
Toggling "eject" and "eject -t" daihard Linux - Software 3 12-27-2004 03:01 AM
CD Won't Eject With "eject" Command Dr. Ephemeron Slackware 13 11-13-2003 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration