From owner-freebsd-questions@freebsd.org Sat Oct 17 07:10:51 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8200DA173CE for ; Sat, 17 Oct 2015 07:10:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47F65F7F for ; Sat, 17 Oct 2015 07:10:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-41-64.dynamic.qsc.de [92.195.41.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id D11FA27686 for ; Sat, 17 Oct 2015 09:10:48 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t9H7Am2T002051 for ; Sat, 17 Oct 2015 09:10:48 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 17 Oct 2015 09:10:48 +0200 From: Polytropon To: FreeBSD Questions Subject: How to recognise different types of optical media from quite a long way away Message-Id: <20151017091048.d89f5e28.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2015 07:10:51 -0000 Can someone suggest a convenient way to identify optical media when inserted into an optical drive? I have no problem with using several tools or grepping through verbose output. What I need is something like: This media is a CD / CD-R / CD-RW / DVD / DVD-R / DVD+R / DVD+RW / DVD-RW / DVD-RAM. Of course the ability to read / write the media depends on of the drive, so I'm using a writer (because I assume that a manufactured DVD, DVD-R or DVD+RW don't matter much to a reader). I know I can use tools like "cdrecord -prcap" to obtain a list of the abilities of the drive, but I'm more interested in the media. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...