Kangry.com [insert cool graphic here]
home | Topics | Logout | Search | Contact | ?? Kangry ?? | Bandwitdh
Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor

Name

Password

New user

uploaded files
(linux_command_line)-> (Parent)->other hdparm options, Force eject submited by Russell Tue 31 Jan 06
Edited Thu 09 Mar 06
Web kangry.com
From time to time I have a CD drive that is locked up, such that I can not mount it and I can not eject it.
eject /media/cdrecorder1
eject: unable to eject, last error: Invalid argument
It seemed that the only solution is to reboot the computer, and as a linux user I *HATE* rebooting, I mean why should I have to reboot for something so minor.

The Work around for this issue I found is to use hdparm
as root:
hdparm -w /dev/hdd
Where /dev/hdd is the device name of the cdrom drive. After this eject should work, ( usualy the eject button on the drive works for me after this)

BE CARFUL

From the hdparm manpage
-w Perform a device reset (DANGEROUS). Do NOT use this option. It exists for unlikely situations where a reboot might otherwise be required to get a confused drive back into a useable state.
Sometimes I have done this and not had any problems. Other times I was unable to mount anything on the drive until after the next reboot.

This should also answer:
How to linux manualy unlock cdrom drive:


Replys:
bash: hdparm: command not found fedora4 (Russell)

Add comment or question...:
Subject:
Submited by: NOT email address. Leave blank for anonymous    (Spam Policy)

Enter Text: (text must match image for posting)




This file (the script that presented the data, not the data itself) , last modified Tuesday 06th of March 2018 11:41:12 PM
your client: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
current time: Thursday 25th of April 2024 11:17:52 AM