LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-26-2004, 07:29 AM   #1
TheCoffeeMug
Member
 
Registered: Aug 2002
Location: Faroe Islands
Distribution: Knoppix on hd
Posts: 54

Rep: Reputation: 15
Unmount cdrom no matter what!


Is there some way to unmount the cdrom when the eject button is pressed regardless of what programs might be using it?

I find it very annoying that I have to go to the console to kill various programs just because I want to unmount the cdrom
 
Old 01-26-2004, 07:37 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you're using the KDE desktop (standard with Knoppix) you should be able to just
right-click on the CD-ROM icon on the desktop and select unmount.

If that doesn't work, rather than killing the programs, have you tried to do
#umount /dev/cdrom
or whatever is the correct path to your CD-ROM?

If the device is in use, however, there may be no alternative but to stop whatever
program happens to have it in use.

Last edited by Bruce Hill; 01-26-2004 at 07:38 AM.
 
Old 01-26-2004, 07:41 AM   #3
TheCoffeeMug
Member
 
Registered: Aug 2002
Location: Faroe Islands
Distribution: Knoppix on hd
Posts: 54

Original Poster
Rep: Reputation: 15
The thing I want is to have a functioning eject button on the cd/dvd drive. What is the point of having it there if you can't use it?
 
Old 01-26-2004, 08:00 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you mean the way you used it in Windoze, then you'll not have that in Linux in the same manner. Actually, in Windoze if you have a program(s) running that's using the CD-ROM and you hit the eject button, the OS has to kill the program(s) for you before it ejects the CD. This does, on some Windoze OSes, give you the ole BSOD.

In Linux your drives are mounted. That's really good, for you can't crash your system or cause one of those BSOD's like you can do in Windoze. But the flipside is that you have to unmount your CD-ROM device before you can "use the eject button," and if you have a busy device, you have to stop the programs which are using it. IMO, it's quite a bit more intelligent than an OS which just crashes if you hit the eject button.

And, the point of having an eject button is to move the cup holder out of your case so you can set a cup of coffee there - hey, with your sig, you should know that
 
Old 01-26-2004, 08:27 AM   #5
TheCoffeeMug
Member
 
Registered: Aug 2002
Location: Faroe Islands
Distribution: Knoppix on hd
Posts: 54

Original Poster
Rep: Reputation: 15
hehe Chinaman, you are right, I should know about using my cdrom drive as a cup holder

But I still thing that there should be some way to get the cdrom unmounted when the user presses the eject button. This is more user friendly, especially for users switching from Windows to Linux. It could also be useful for a mp3 or divx box where the user could switch cd's just by pressing the eject button; instead of going through many menues.
 
Old 01-26-2004, 09:47 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
An option would be to install supermount like Mandrake. You do not need to explicitly use the mount / umount commands. However, convenient it can lead to other problems.
 
Old 01-26-2004, 04:03 PM   #7
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Supermount works great with (internal) CD/DVD and floppy drives. Only problem I had was when using it with (external) hotplug devices.

Last edited by Crito; 01-26-2004 at 04:19 PM.
 
  


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
is there a way to force your cdrom to eject no matter what??? mojarron Slackware 9 03-21-2005 08:05 PM
cdrom will not unmount. bbmx952 Linux - Newbie 7 07-21-2004 04:35 PM
can't mount /dev/cdrom no matter what I do a52b52 Linux - General 4 05-14-2004 12:10 AM
I can't unmount my cdrom... ramsees Linux - Hardware 2 12-07-2003 12:42 AM
cdrom won't unmount! yocompia Slackware 3 11-07-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:26 AM.

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