Unintentional "mounting" of DVD - safe action needed

I yesterday managed (with this forum's help - thank you) to sort the source list in synaptic but think I clicked on the "add CD" whilst so doing (shaky old hands!). No problem, I thought when all else was done I could simply tell the drive symbol on the destop to "eject" - so I did, resulting in:

unmount: only root can unmount /dev/hdc from /media/cdrom0
eject: unmount of "media/cdrom0" failed

I have, since, unticked the box beside the CD source in synaptic, which has been accepted by it.

I could, in theory, just bring the dvd slide out and remove the disk by hand, but the reason I ask is that I do not know if there's an untoward result from so doing or if the "mount" situation will remain anywhere? I'm being very careful - advice please?

TIA, phorepents

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Unintentional "mounting" of DVD - safe action needed

Hi there - having already benefited from the thought of others in this forum, I note here that I have solved this apparent problem myself.
I looked, read, thought, and slept on it.
This morning I opened a terminal, invoked su, typed "umount /media/cdrom0", hit enter - and the logo left the screen. I then exited the terminal, found the drive, clicked to show the DVD, clicked on "eject" - and it ejected.
All now seems OK.

phorepents

DVD/CDROM permissions

Glad you solved it. Normally, regular users have permissions to mount and u(n)mount CDs and DVDs. Probably what happened in this case was that synaptic was running with root permissions (so you could install stuff), and so the DVD got mounted with root permissions.

So except when something is mounted by root, your previous attempt to eject/unmount should normally work.

plugdev

not sure here, but does belonging to the group "plugdev" extend to you the rights to eject the cd drive?
or is it just for automatically mounting usbdrives etc?

plugdev

I just tried mounting the cd as root, and typing eject as a regular user:

umount: only root can unmount /dev/hdc from /media/cdrom0
eject: unmount of `/media/cdrom0' failed

Don't know if plugdev would work for root-mounted usb devices.

pmount

ok, i didn't quite get that right. (that's what happens when i'm forced to write comments on a windows machine, because my wireless is down)

To eject a cd, you need to be in the group "cdrom". I think you also need to be the user who mounted the cd.

also, plugdev controls the use of pmount. It allows non-root users to mount (and afterwards, unmount) removable volumes, without requiring root permissions. As Matt said, it will not allow you to unmount devices which have been mounted by root.

Syndicate content