Extracting the label of a CD

Adam McLaurin blueeskimo at gmx.net
Sun Sep 21 11:44:12 PDT 2003


Is there any elegant way to extract the label of a CD in FreeBSD 5.x ?

I can use dd to get to it, but it's far from elegant. Wondering if there
is some ioctl to do it cleanly; maybe even something in ports.

If anyone is curious, this is how I'm doing it now:
-$ dd if=/dev/acd0a bs=64k |strings -a |head -n 3 |tail -n 1    

I don't think it's safe to assume that it's always on the 3rd line, but
that seems to be the case quite often.

Thanks,
-- 
Adam McLaurin <blueeskimo at gmx.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030921/4f8941b7/attachment.bin


More information about the freebsd-questions mailing list