From owner-freebsd-questions@freebsd.org Sat Oct 17 22:19:44 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 6ED71A180EF for ; Sat, 17 Oct 2015 22:19:44 +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 336488E2 for ; Sat, 17 Oct 2015 22:19:43 +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 6F62927608; Sun, 18 Oct 2015 00:19:40 +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 t9HMJeR3004072; Sun, 18 Oct 2015 00:19:40 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 18 Oct 2015 00:19:40 +0200 From: Polytropon To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org, Polytropon Subject: Re: How to recognise different types of optical media from quite a long way away Message-Id: <20151018001940.14c4d1cf.freebsd@edvax.de> In-Reply-To: <20151017093901.e2c11a664d8186d02870f096@sohara.org> References: <20151017091048.d89f5e28.freebsd@edvax.de> <20151017093901.e2c11a664d8186d02870f096@sohara.org> 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 22:19:44 -0000 On Sat, 17 Oct 2015 09:39:01 +0100, Steve O'Hara-Smith wrote: > On Sat, 17 Oct 2015 09:10:48 +0200 > Polytropon wrote: > > > 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: > > Try dvd+rw-mediainfo from dvd+rw-tools, it's been a while since I > used it but ISTR it doing what you're looking for. This works quite fine (except for CDs, which it probably isn't supposed to support). I can get the relevant information, like: % dvd+rw-mediainfo /dev/dvd | grep "Mounted Media:" Mounted Media: 11h, DVD-R Sequential or Mounted Media: 1Bh, DVD+R or Mounted Media: 1Ah, DVD+RW or Mounted Media: 10h, DVD-ROM Thanks, this will help a lot! Surprising finding: The message "1Bh, DVD+R" was obtained from a media labeled both "DVD+R" and "RW" by the distributor, even though the "paper DVD" on top of the spindle does not mention "RW". Maybe the distributor requires a friendly letter not to label DVDs with a property they do not have... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...