LinuxQuestions.org
Review your favorite Linux distribution.
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 03-12-2008, 12:17 PM   #1
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Rep: Reputation: 30
Eject CD/DVD Media using Eject Button - Hal/Udev help


Im trying to get my DVD writer to eject mounted media when i press the eject button. This worked fine until the Hal/UDev method of mounting using the title of the cdrom, came into effect.

At present i get an error message with this text, if i try and eject a mounted disk.

Quote:
Given device "/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_2510A" is not a volume or drive.
Does anyone know of way to make it run as it did in the past (Fedora 7)?

Any on-topic tutorials or howto's would be greatly appreciated, or just general reading, as i dont really know what to search for on google, beyond maybe udev rules (is this what im needing to sort the problem out?).

Thanks in advance.
 
Old 03-12-2008, 02:37 PM   #2
Cyhaxor
Member
 
Registered: Nov 2004
Location: UK
Distribution: Fedora 12
Posts: 129

Rep: Reputation: 15
I use slackware and I have to umount the hardware before I am able to take off a cd.. There is a way to do this automatically but I have never try to configure my system in terms of mounting and unmounting.. You may have to edit your /etc/fstab if I am not wrong.

Last edited by Cyhaxor; 03-12-2008 at 02:47 PM.
 
Old 03-12-2008, 02:58 PM   #3
AlphaOmega
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
This isn't so much a bug or problem (at least not being able to eject by pushing a button) but something safe about Linux. You do need to unmount a mounted drive before removing any media from it because Linux needs to verify that all buffers to it are empty. This way you can't screw anything up if you are copying data of a CD-ROM. Compare this to Windows where if you eject the CD-ROM during some sort of read to it you get an ugly error dialog.
 
Old 03-12-2008, 06:00 PM   #4
Cyhaxor
Member
 
Registered: Nov 2004
Location: UK
Distribution: Fedora 12
Posts: 129

Rep: Reputation: 15
Quote:
Originally Posted by AlphaOmega View Post
This isn't so much a bug or problem (at least not being able to eject by pushing a button) but something safe about Linux. You do need to unmount a mounted drive before removing any media from it because Linux needs to verify that all buffers to it are empty. This way you can't screw anything up if you are copying data of a CD-ROM. Compare this to Windows where if you eject the CD-ROM during some sort of read to it you get an ugly error dialog.
I strongly agree with you and that's the reason which I'm not bothering my self with HAL and auto mount and umount configures At least is not a pain to put a command in terminal and know what's going on each time
 
Old 03-17-2008, 03:04 PM   #5
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Fedora 8, Centos 5.1
Posts: 480

Original Poster
Rep: Reputation: 30
Sorry for not replying.

The thing is, in Fedora 8 if you pressed eject and a file i/o operation was happenning at that time it wouldnt eject as you would expect. If the need was to eject during a file i/o operation there are ugly ways of killing such operations and forcing the eject. But not what i want.

What i wanted was it to eject when it was idle, if i pressed the button. So i dont have to unmount/eject from the file manager. In Fedora 8 this occurs by default. You can choose your ejection method, and most situations that might occur are catered for, ie, you cant eject while writing to a cd, or reading from a cd, but if idle you can.

I will see if adding a udev rule to associate the drives exact name with its id will sort this out, so when mounted in media it will always mount as the drives id and not the volume name.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to eject CD. ?HAL problem arubin Slackware 10 01-26-2008 04:48 PM
Udev and eject problems with Ipod arubin Slackware 3 05-18-2007 02:19 AM
Unmount and Eject with CD-Rom Eject Button? CrownAmbassador Linux - Hardware 3 12-26-2006 08:45 PM
DVD Eject Button not working gfem Fedora 2 06-06-2006 02:25 PM
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration