From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 22:57:49 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 40DA916A4B3 for ; Thu, 9 Oct 2003 22:57:49 -0700 (PDT) Received: from demas002.adtranz.com (demas002.adtranz.com [213.68.98.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B58D43F75 for ; Thu, 9 Oct 2003 22:57:47 -0700 (PDT) (envelope-from aleksandr.derevianko@ru.transport.bombardier.com) Received: from de.transport.bombardier.com (demalng2 [53.191.115.105]) by demas002.adtranz.com (8.12.9/8.12.9) with SMTP id h9A5vK2K003320; Fri, 10 Oct 2003 07:57:20 +0200 (MEST) Received: by de.transport.bombardier.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256DBB.0020B6E7 ; Fri, 10 Oct 2003 07:57:19 +0200 X-Lotus-FromDomain: TRANSPORT From: aleksandr.derevianko@ru.transport.bombardier.com To: Shantanoo Mahajan Message-ID: Date: Fri, 10 Oct 2003 09:57:15 +0000 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline 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: Fri, 10 Oct 2003 05:57:49 -0000 No, i can't use cdrecord. It is for SCSI CD-writers, and i have ATAPI. Best regards, Alexander Shantanoo Mahajan on 09.10.2003 17:34:03 To: Aleksandr Derevianko/RU/Transport/Bombardier@Transport cc: freebsd-questions@freebsd.org Security Level:? Internal Subject: Re: How to find out the type of CD in burner from script ? +-- 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