Date: Sun, 21 Sep 2003 14:44:04 -0400 From: Adam McLaurin <blueeskimo@gmx.net> To: freebsd-questions@freebsd.org Subject: Extracting the label of a CD Message-ID: <1064169843.674.12.camel@jake>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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@gmx.net> [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/bfFzt+DSc2Q4lGYRAjoEAJ9U7Djq8/g2uVpYRbQqZs534msitQCgx+K/ yHON7MioUU5IlSvWqtMQJ2Y= =ZChf -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1064169843.674.12.camel>
