From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 10:35:07 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 415C216A4B3 for ; Thu, 9 Oct 2003 10:35:07 -0700 (PDT) Received: from dhumketu.homeunix.net (dialpool-210-214-64-176.maa.sify.net [210.214.64.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4217043FE0 for ; Thu, 9 Oct 2003 10:35:05 -0700 (PDT) (envelope-from freebsd@dhumketu.cjb.net) Received: by dhumketu.homeunix.net (Postfix, from userid 1000) id 5CD298CC; Thu, 9 Oct 2003 23:04:03 +0530 (IST) Date: Thu, 9 Oct 2003 23:04:03 +0530 From: Shantanoo Mahajan To: aleksandr.derevianko@ru.transport.bombardier.com Message-ID: <20031009173403.GA1045@dhumketu.homeunix.net> Mail-Followup-To: aleksandr.derevianko@ru.transport.bombardier.com, freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: Hmmm... I dunno X-OS: FreeBSD 4.8-STABLE i386 cc: freebsd-questions@freebsd.org Subject: Re: How to find out the type of CD in burner from script ? 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: Thu, 09 Oct 2003 17:35:07 -0000 +-- aleksandr.derevianko@ru.transport.bombardier.com [freebsd] [09-10-03 19:05 IST]: | Hello ! | | I have the following problem: I'm writing backup scripts, to store SCM tree on | CD via ATAPI CD-burner. | I need to have ability from inside the script find out the type of CD in burner: | Is it CD-R or CD-RW, and is it blank or not, | and also obtain at least CD label without mounting CD. | | Search in mail archive does nothing, so if anybody know how to do this, please | respond. | | P.S. I'm using FreeBSD 4.8 and PLEXTOR CD-R PX-W4824A. | | Best regards, | Alexander. If you are using cdrecord, you may be interested in # cdrecord -scanbus -- With Best Regards, Shantanoo Mahajan