From owner-freebsd-questions@freebsd.org Sat Oct 17 07:31: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 4557AA17622 for ; Sat, 17 Oct 2015 07:31:51 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AD2614D3 for ; Sat, 17 Oct 2015 07:31:51 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by igbkq10 with SMTP id kq10so27588999igb.0 for ; Sat, 17 Oct 2015 00:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BIH7+VV0lvaZpvEEpjqh/WuPedM52KJ6pXAlJfF+ZnI=; b=lxvV6bohxysuQpt3VJqtLZIgyuAeCn57+vl9UqVCJhFHeomWBEd9ZZ2ttNtr0v/OKx MPWV6QKrp1dAxkZj7nBf7cRuC/m5tGLsE73gbMCdvDsP02q9i2SAHFAXJKDkqS4l8XIS Bm0i+4koY2vXQRl5qm8P5W06wIvjzIfOieyC4CE21Qdb0xNU6nAD3F5tfAQZqpDfpBfj MkJyBSyKqGm9KaRsmxa3HgAtTqjYakYFOdVuYVC+p8uGqhOr7g/k0ZulukevNkOXVx19 YbiK1Fcx72pi6Qj6opctx3RJyefgecxU6x+TH8BxDu0GfyTrtjsY+IcbiitFpi8tSNjF gITA== MIME-Version: 1.0 X-Received: by 10.50.112.199 with SMTP id is7mr9118359igb.63.1445067110440; Sat, 17 Oct 2015 00:31:50 -0700 (PDT) Received: by 10.64.241.227 with HTTP; Sat, 17 Oct 2015 00:31:50 -0700 (PDT) In-Reply-To: <20151017091048.d89f5e28.freebsd@edvax.de> References: <20151017091048.d89f5e28.freebsd@edvax.de> Date: Sat, 17 Oct 2015 00:31:50 -0700 Message-ID: Subject: Re: How to recognise different types of optical media from quite a long way away From: Mehmet Erol Sanliturk To: Polytropon Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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:31:51 -0000 On Sat, Oct 17, 2015 at 12:10 AM, 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: > > 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, ... > _______________________________________________ > > I think , if you study K3B sources , there you will find how it is detected media types , because , it is detecting media type and performing recording with respect to media type . Mehmet Erol Sanliturk