From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 21:10:04 2005 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 0A89B16A4CE for ; Wed, 9 Mar 2005 21:10:04 +0000 (GMT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 5FE5143D41 for ; Wed, 9 Mar 2005 21:10:03 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 43408 invoked from network); 9 Mar 2005 21:10:01 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 9 Mar 2005 21:10:01 -0000 X-pair-Authenticated: 200.115.214.28 Date: Wed, 9 Mar 2005 18:10:43 -0300 From: Alejandro Pulver To: "Michael C. Shultz" Message-ID: <20050309181043.6716e3ce@ale.varnet.bsd> In-Reply-To: <200503091233.34536.ringworm01@gmail.com> References: <20050309163647.24f893d5@ale.varnet.bsd> <200503091233.34536.ringworm01@gmail.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Multisession CDs with 'burncd' 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: Wed, 09 Mar 2005 21:10:04 -0000 On Wed, 09 Mar 2005 12:33:33 -0800 "Michael C. Shultz" wrote: > On Wednesday 09 March 2005 11:36 am, Alejandro Pulver wrote: > > Hello, > > > > How can I burn multisession CDs with 'burncd'? > > > > I have FreeBSD 5.3. > > > > # atacontrol list > > > > ATA channel 0: > > Master: ad0 ATA/ATAPI revision 6 > > Slave: acd0 ATA/ATAPI revision 0 > > ATA channel 1: > > Master: ad2 ATA/ATAPI revision 7 > > Slave: no device present > > > > I tried this: > > > > == first session == > > > > % mkisofs -o proj.iso -allow-lowercase -allow-multidot Projects > > > > # burncd -e -f /dev/acd0 -m -s 4 -v data proj.iso fixate > > > > (works, I can mount it, read it, read it with Windows, and it > > appears to close the session but not the disk) > > > > == second session == > > > > # burncd -f /dev/acd0 msinfo > > 0,12794 > > > > % mkisofs -o test.iso -allow-lowercase -allow-multidot -C 0,12794 > > instalar > > > > # burncd -e -f /dev/acd0 -m -s 4 -v data test.iso fixate > > > > adding type 0x08 file test.iso size 40492 KB 20246 blocks > > next writeable LBA 12794 > > addr = 12794 size = 41463808 blocks = 20246 > > writing from file test.iso size 40492 KB > > > > only wrote -1 of 32768 bytes: Input/output error > > > > fixating CD, please wait.. > > > > (it does not write anything) > > > > ------------------------------------------------------------------ > > > > What am I doing wrong? > > > > What is the DAO mode? > > > > Should I try with SCSI programs like 'cdrecord', etc.? Are them > > better? > > > > Thanks and Best Regards, > > Ale > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > Here is a snippette from the script I use, maybe it will give you > some ideas: > > DT=`date "+%Y%m%d%H%M%S"` > > To start a new CD > > mkisofs -r -o /home/mike/backup-${DT}.iso -C `cdrecord -msinfo \ > dev=1,0,0` -M /dev/cd0 /home/mike/BACKUP-${DT} > cdrecord -v -multi -speed 4 -data dev=1,0,0 > /home/mike/backup-${DT}.iso > > > To add to the CD > > mkisofs -r -o /home/mike/backup-${DT}.iso /home/mike/BACKUP-${DT} > cdrecord -v -multi -speed 4 -data dev=1,0,0 > /home/mike/backup-${DT}.iso > > -Mike > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Thank you for your reply. I am a bit confused with your answer (I think "start a new CD" and "add to the CD" are swapped; I think a session on a new CD will not require -C). The manual page of burncd(1) says the following: -C last_sess_start,next_sess_start This option is needed when mkisofs is used to create the image of a second session or a higher level session for a multi session disk. [...] Could you please send me the complete script if possible? Thanks and Best Regards, Ale