Re: How to recognize hdc as a CD-ROM drive?

mlord (mlord@pobox.com)
Mon, 18 May 1998 13:32:51 -0400


Andries.Brouwer@cwi.nl wrote:
>

> # cat /proc/ide/hdd/media
> cdrom
>
> Very good. That will suffice.

The for fdisk, the test should probably be something like:

if (media != "tape" && media != "cdrom")
/* must be a disk, either "disk" or "floppy" */

-- 
mlord@pobox.com
The Linux IDE guy

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu