Re: Autodetection of CD-ROM devices
On Dec 17, Brian Almeida wrote:
> On Fri, Dec 17, 1999 at 09:00:39PM +0100, Hartmut Koptein wrote:
> > > Anyway, it's packaged as a standalone program so people can test it
> > > and let me know if it fails to detect a CD-ROM it should, or detects
> > > something wrongly.
> > Compiles cleanly and is fuctional on powerpc:
> > gcc -o detect-devices detect-devices.c
> > detect-devices
> > CD-ROM: /dev/scd0
> Doesn't seem to work on my i386 box...
> balmeida@trantor [~]: gcc -o detect-devices detect-devices.c
> balmeida@trantor [~]: detect-devices
> balmeida@trantor [~]: uname -a
> Linux trantor 2.2.13 #1 Mon Nov 29 13:47:45 EST 1999 i686 unknown
> balmeida@trantor [~]: dmesg|grep CD-ROM
> hda: TOSHIBA CD-ROM XM-6502B, ATAPI CDROM drive
1. Do you have /proc enabled?
2. What does "ls /proc/ide" say?
3. What does "cat /proc/ide/hda/media" say?
| Chris Lawrence | Get Debian GNU/Linux CDROMs |
| <firstname.lastname@example.org> | http://www.lordsutch.com/cds/ |
| | |
| Debian Developer | Join the party that opposed the CDA |
| http://www.debian.org/ | http://www.lp.org/ |