Rippit the Ogg Frog wrote: > One would think that the "file" command would say, but it just tells you > that the CDROM device file is a device file, rather than saying anything > about the media that is accessed through it: > > # file /dev/scd0 > /dev/scd0: block special (11/0)
`man file`, or `file --help`. Use -s: Audio CD: pyromaniacs:~# file -s /dev/hdc /dev/hdc: ERROR: cannot read `/dev/hdc' (Input/output error) Data CD: pyromaniacs:~# file -s /dev/hdc /dev/hdc: ISO 9660 CD-ROM filesystem data 'LABEL ' Where "LABEL" is the ISO label of the CD. -- Chris Howie http://www.chrishowie.com -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/IT d-(--) s:- a--->? C++(+++)$> UL++++ P++++$ L+++>++++ E--- W++ N o++ K? w--$ O M- V- PS--(---) PE++ Y+ PGP++ t+ 5? X- R(+)>- tv-(--) b- DI+> D++ G>+++ e>++ h(--)>--- !r>+++ y->+++ ------END GEEK CODE BLOCK------
signature.asc
Description: OpenPGP digital signature