[arch-general] CD eject as non-root user

Karol Blazewicz karol.blazewicz at gmail.com
Thu Aug 18 15:08:11 EDT 2011


On Thu, Aug 18, 2011 at 8:59 PM, Norbert Zeh <nzeh at cs.dal.ca> wrote:
> Heiko Baums [2011.08.18 2033 +0200]:
>> Am Thu, 18 Aug 2011 20:08:47 +0200
>> schrieb Karol Blazewicz <karol.blazewicz at gmail.com>:
>>
>> > I put the data CD, close the tray, try to mount it, but
>> >   [karol at white ~]$ sudo mount /dev/sr0 /media/cd/
>> >   mount: /dev/sr0 already mounted or /media/cd/ busy
>> >
>> > It's definitely not mounted, let's try again
>> >   [karol at white ~]$ mount | grep sr0
>> >   [karol at white ~]$ sudo mount /dev/sr0 /media/cd/
>> >   mount: block device /dev/sr0 is write-protected, mounting read-only
>> >
>> > OK, let's see if it's mounted indeed
>> >   [karol at white ~]$ mount | grep sr0
>> >   /dev/sr0 on /media/cd type iso9660 (ro)
>> >
>> > Looks fine, unmount it and eject it
>> >   [karol at white ~]$ sudo umount /media/cd/
>> >   [karol at white ~]$ mount | grep sr0
>> >   [karol at white ~]$ eject /dev/sr0
>> >   eject: unable to eject, last error: Inappropriate ioctl for device
>> >
>> > Despite the error, the CD got ejected. Using eject is the only way to
>> > do it - pushing the button on the case doesn't to a damn thing ...
>> > unless I push it and try mounting again - in this case, the tray will
>> > open.
>>
>> Since when do you have those issues? It's probably a bug in the kernel
>> (package linux 3.0.2 and 3.0.3).
>
> As I said in my earlier post, I'm not sure when all this started to
> happen, but it my have arisen as recently as you report in your bug
> report.  Thanks for filing by the way.
>
> Cheers,
> Norbert
>

I was having those issues before updating to linux 3 (I have switched
only yesterday ;P), they started about a week go. As I've always used
the button to open and close tray, so I noticed it immediately.

With regard to the bug - my CD drive works fine, so it's not the same case.


More information about the arch-general mailing list