Live CD can be inadvertently ejected via hotkey

Bug #34643 reported by Andreas Schildbach
24
Affects Status Importance Assigned to Milestone
Baltix
New
Undecided
Unassigned
casper (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

It should not possible to eject the Live CD during the session, because this effectively locks up the session. Pressing the Eject hotkey should maybe cause a warning popup.

Revision history for this message
Andreas Schildbach (schildbach) wrote :

This issue is still present on Dapper Flight 7.

Revision history for this message
towsonu2003 (towsonu2003) wrote :

Confirming this in my system, flight cd 7, accidentally ejected CD, everything went borked... Bumping to critical bc it causes a hard system crash.

Revision history for this message
Matt Zimmerman (mdz) wrote :

The drive is locked because a filesystem is mounted on it, so pressing the hardware eject button should not have any effect. The software eject may override this, however. Confirm?

Revision history for this message
towsonu2003 (towsonu2003) wrote :

> The software eject may override this, however. Confirm?

yes, sudo eject ejects the CD, borking the system.

Revision history for this message
Rodrigo Novo (rodarvus) wrote : First attempt at disabling Eject hotkey on Live CD

Given the timeframe for Dapper, I believe it could be dangerous to hack GNOME to popup a warning when the user presses the "Eject" hotkey during installation.

This patch adds scripts to casper-bottom and ubiquity-hooks to completely remove the hotkey for "Eject".

Please take this patch with a grain of salt, as it is untested on LiveCD. (hopefully it doesn't have side effects, such as disabling Eject hotkey on post-install)

Feedback is appreciated :)

Revision history for this message
Martin Pitt (pitti) wrote :

D'oh, it took about a year to get the hardware eject button work as nicely as it does now, and in the meantime we got lots of bug reports about it, saying that it was imperative that it works...

Revision history for this message
Martin Pitt (pitti) wrote :

If we want it, we could hack a gconf key or support for a tag file into gnome-volume-manager to inhibit ejection. But frankly, I do not think we should. If you inadvertedly operate the buttons on your computer, then we cannot do anything about pressing the reset or the power button either.

Revision history for this message
towsonu2003 (towsonu2003) wrote :

> then we cannot do anything about pressing the reset or the power button either.

the problem here is: what if the user doesn't know the liveCD shouldn't be ejected? that is what "inadvertently" means to me, not by accidentally pressing the button.

> D'oh, it took about a year to get the hardware eject button work as nicely as it does now,

lol
is it possible to take out the specific code that accomplishes this from the liveCD-only? it would be something like
check if ubuntu is *installed* on boot:
1. yes: enable ejecting - don't comment out code / enable eject script
2. no: disable ejecting - comment out code / disable eject script

of course, this would go to the liveCD and not the installed ubuntus :)

just brain-dumping thanks.

Revision history for this message
David Balažic (xerces8) wrote :

Just thinking aloud : User pushes the eject button (hardware, hotkey, whatever), there are 3 possibilities:
 - medium is not used (mounted) -> eject it
 - vital system files are on the medium (like in live CD scenario) -> two possibilities :
 --- eject is silently denied
 --- a dialog pops up with explanation (like "CD is vital, ejecting would cause a crash"; "Dismiss" maybe another button "Eject anyway" - I know what am I doing )
 - medium is mounted/in use : -> unmount and eject or maybe a dialog, if there are open files or similar

Revision history for this message
David Balažic (xerces8) wrote :

Bug still there in crap^wubuntu 7.04 i386 desktop.

I guess everybody works on the next shiny and useless feature.

(sorry for the tone, but quadrillion, mostly unresolved, bugs in the years do that to a person)

Revision history for this message
Peter Berry (pwberry) wrote :

It's also possible to eject using eject(1) from a terminal.

See also bug 32849 (more generally warn about doing dangerous things).

Revision history for this message
Peter Berry (pwberry) wrote :

That is in feisty btw

Revision history for this message
David Balažic (xerces8) wrote :

Same in ubuntu 7.10 desktop i386

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

I just tried it on 8.04. It doesn't lock or freeze. It just doesn't let you run any new programs. I am currently typing this on a computer booted from the liveCD (with the liveCD ejected).

Is that "solved" enough?

Revision history for this message
Cerin (chrisspen) wrote :

Heh, I was about to submit a bug report about not be able to eject the CD. My machine has only one burner, and I want to download and burn an ISO, which I can't.

Revision history for this message
David Balažic (xerces8) wrote :

10.04 LTS

CD can be ejeted.
(HP nw8440 laptop)

Booted the CD, selected "Try Ubuntu", then after a while in dekstop I pushed the hardware eject button,and the CD was ejected.

Revision history for this message
David Balažic (xerces8) wrote :

Same on another PC.
(
GA-7VAXP Ultra - GIGABYTE
Athlon XP 2200+
1.5 GB RAM
)

Revision history for this message
Stéphane Graber (stgraber) wrote :

As of Ubuntu 12.10, the cdrom drive is no longer shown in the UI, the shortcut doesn't do anything and a manual eject from the command line fails as the drive is reported as busy.

Changed in casper (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
David Balažic (xerces8) wrote :

I just ran the daily build (see below) and the live CD can be ejected by the hardware eject button.
A CD inserted in the second CD drive is mounted and it's hardware eject button disabled.
So it can be done, just is not for the live CD medium.

Someone, please reopen the bug.
and then fix it ;)

http://cdimage.ubuntu.com/daily-live/current/saucy-desktop-i386.iso
md5sum : eb8ff86ce4fc10a305b918ce28e0908e
.disk/info:
Ubuntu 13.10 "Saucy Salamander" - Beta i386 (20131005)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.