[TriLUG] Laptop CD Drive

Brian Daniels bitmage at pobox.com
Fri Mar 28 10:53:09 EDT 2008


On Fri, Mar 28, 2008 at 08:49:28AM -0400, Brian Phelps wrote:
> My laptop has a trigger-happy CD Drive button.  Is there a way (command
> or system call) to disable the drive from ejecting upon pressing the
> button?
> 
> 
> -Brian
> -- 
> <a href=http://electronjunkie.wordpress.com>Got e-?</a>

There's a system call:
http://www.mjmwired.net/kernel/Documentation/ioctl/cdrom.txt#773
CDROM_LOCKDOOR

that would work.

hdparm has a -L option to set the drive's doorlock flag - don't know if that 
would work on a cd...

--Brian

-- 
Be it thy course to busy giddy minds
With foreign quarrels; that action, hence borne out,
May waste the memory of the former days.
			Henry IV, Part 2
	

Brian Daniels                  bitmage at pobox.com
      http://www.eviloverlord.net




More information about the TriLUG mailing list