From owner-freebsd-questions@FreeBSD.ORG Sun Sep 21 11:44:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B5E316A4B3 for ; Sun, 21 Sep 2003 11:44:12 -0700 (PDT) Received: from titanic.serversetup.com (titanic.serversetup.com [216.94.125.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id E86AD43FE3 for ; Sun, 21 Sep 2003 11:44:10 -0700 (PDT) (envelope-from blueeskimo@gmx.net) Received: from [64.39.186.145] (dsl-cust-145.openweb.ca [64.39.186.145]) h8LIfhRq014205 for ; Sun, 21 Sep 2003 14:41:43 -0400 From: Adam McLaurin To: freebsd-questions@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vz7x8j/vKz9Ezdkz5g6d" Message-Id: <1064169843.674.12.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sun, 21 Sep 2003 14:44:04 -0400 Subject: Extracting the label of a CD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 18:44:12 -0000 --=-vz7x8j/vKz9Ezdkz5g6d Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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=3D/dev/acd0a bs=3D64k |strings -a |head -n 3 |tail -n 1 =20 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, --=20 Adam McLaurin --=-vz7x8j/vKz9Ezdkz5g6d Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/bfFzt+DSc2Q4lGYRAjoEAJ9U7Djq8/g2uVpYRbQqZs534msitQCgx+K/ yHON7MioUU5IlSvWqtMQJ2Y= =ZChf -----END PGP SIGNATURE----- --=-vz7x8j/vKz9Ezdkz5g6d--