CDROM question

Cole Tuininga colet at code-energy.com
Mon Aug 9 17:01:14 EDT 2004


On Mon, 2004-08-09 at 16:28, Bruce Dawson wrote:
> If /proc/ide/hdb/capacity contains a non-zero number, then there's a CD
> in the drive. (Assuming you have a cd drive at /dev/hdb). This appears
> to work for both audio and data cdroms.

Interesting trick, but it seems to react differently on my system.

With no media in the drive:

trogdor:/proc/ide/ide1/hdc# cat capacity
2147483647

I have hdc available through the ide-scsi module - would that make a
difference?

-- 
I haven't lost my mind!  It's backed up on disk somewhere...

Cole Tuininga
Lead Developer
Code Energy, Inc
colet at code-energy.com
PGP Key ID: 0x43E5755D





More information about the gnhlug-discuss mailing list