Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2015 00:19:40 +0200
From:      Polytropon <freebsd@edvax.de>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        freebsd-questions@freebsd.org, Polytropon <freebsd@edvax.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Oct 2015 09:39:01 +0100, Steve O'Hara-Smith wrote:
> On Sat, 17 Oct 2015 09:10:48 +0200
> Polytropon <freebsd@edvax.de> 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151018001940.14c4d1cf.freebsd>