From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Mon, 24 Oct 2011 09:43:54 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: [9fans] how to burn iso Topicbox-Message-UUID: 397cfede-ead7-11e9-9d60-3106f5b1d025 Hello, how can I, in plan9, burn a CD ISO image to a blank CD? [I know there is cdfs, but this seems to only burn files, and I, if I am right, don't want to have it there as a file.] Thank you! Ruda From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 24 Oct 2011 10:04:52 +0200 Message-ID: From: "Peter A. Cejchan" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=bcaec520ea85afcf2404b006e020 Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 3982d264-ead7-11e9-9d60-3106f5b1d025 --bcaec520ea85afcf2404b006e020 Content-Type: text/plain; charset=UTF-8 #!/bin/rc # burn a CD from ISO-9660 image on $home/cd.iso # version 0.03 # Thu Jul 3 06:35:32 EDT 2003 rfork e t1 =`{date} kill cdfs | rc kill 9660srv | rc cdfs -d /dev/sdD0 cp $home/cd.iso /mnt/cd/wd || echo CD BURNING ERROR t2 =`{date} echo begin: $t1 echo end: $t2 # -eof- --bcaec520ea85afcf2404b006e020 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable #!/bin/rc
# burn a CD from ISO-9660 image on $home/cd.iso
# version 0= .03
# Thu Jul=C2=A0 3 06:35:32 EDT 2003 <cej@gli.cas.cz>

rfork e
t1 =3D`{date}
kill cdfs |= rc
kill 9660srv | rc
cdfs -d /dev/sdD0
cp $home/cd.iso=C2=A0 /mnt/cd/wd = || echo CD BURNING ERROR
t2 =3D`{date}
echo begin: $t1
echo end: $= t2
# -eof-

--bcaec520ea85afcf2404b006e020-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 24 Oct 2011 08:15:09 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 399fc5d6-ead7-11e9-9d60-3106f5b1d025 On Mon Oct 24 04:05:31 EDT 2011, tyapca7@gmail.com wrote: > #!/bin/rc > # burn a CD from ISO-9660 image on $home/cd.iso > # version 0.03 > # Thu Jul 3 06:35:32 EDT 2003 > > rfork e > t1 =`{date} > kill cdfs | rc > kill 9660srv | rc > cdfs -d /dev/sdD0 > cp $home/cd.iso /mnt/cd/wd || echo CD BURNING ERROR > t2 =`{date} > echo begin: $t1 > echo end: $t2 > # -eof- the key bit to understand is that cdfs is the only part of the system that knows how to send special scsi commands for talking to dvd+/+/i or blu-ray-* or cd-* devices. it uses the raw interface to inject the commands directly. neither the disk drivers nor the sd system know anything about cdroms, except that they are removable. - erik From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 24 Oct 2011 15:41:20 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 39b13a8c-ead7-11e9-9d60-3106f5b1d025 On 24 October 2011 14:15, erik quanstrom wrote: > On Mon Oct 24 04:05:31 EDT 2011, tyapca7@gmail.com wrote: > >> #!/bin/rc >> # burn a CD from ISO-9660 image on $home/cd.iso >> # version 0.03 >> # Thu Jul =C2=A03 06:35:32 EDT 2003 >> >> rfork e >> t1 =3D`{date} >> kill cdfs | rc >> kill 9660srv | rc >> cdfs -d /dev/sdD0 >> cp $home/cd.iso =C2=A0/mnt/cd/wd || echo CD BURNING ERROR >> t2 =3D`{date} >> echo begin: $t1 >> echo end: $t2 >> # -eof- > > the key bit to understand is that cdfs is the only part of the system > that knows how to send special scsi commands for talking to dvd+/+/i > or blu-ray-* or cd-* devices. =C2=A0it uses the raw interface to inject t= he > commands directly. =C2=A0neither the disk drivers nor the sd system > know anything about cdroms, except that they are removable. > > - erik I am still lost. My current understanding is that I need as if 3 different views on a CD: -- if audio CD is to be written, I need to follow some structure in which audio tracks should be written, so that other audio readers understand it, -- if data files are to be written, I first need some filesystem (iso9660) on the CD and then write the data files into this filesystem, -- if I have an ISO image, I'd expect that this is, without any translation, just somehow raw-copied to the CD (similarly to a way a dd command works). While writing to cd/wa may solve the audio case, I don't understand how the data file vs ISO is coped with, as the example just writes an ISO to cd/wd... Thanks for explanation! Ruda PS.: also, the example doesn't fixate the disk. Should it? Shouldn't it? (Why is this (un)needed?) From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 24 Oct 2011 09:47:12 -0400 To: 9fans@9fans.net Message-ID: <4721e2199fa63610aed1d0b325fb7f0c@chula.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 39b694e6-ead7-11e9-9d60-3106f5b1d025 > I am still lost. > My current understanding is that I need as if 3 different views on a CD: > -- if audio CD is to be written, I need to follow some structure in > which audio tracks should be written, so that other audio readers > understand it, > -- if data files are to be written, I first need some filesystem > (iso9660) on the CD and then write the data files into this > filesystem, > -- if I have an ISO image, I'd expect that this is, without any > translation, just somehow raw-copied to the CD (similarly to a way a > dd command works). > > While writing to cd/wa may solve the audio case, I don't understand > how the data file vs ISO is coped with, as the example just writes an > ISO to cd/wd... > > Thanks for explanation! > > Ruda > > PS.: also, the example doesn't fixate the disk. Should it? Shouldn't > it? (Why is this (un)needed?) fixation is a feature provided by cdfs. it happens when you remove wa/wd. fixation depends on the type of media. cdfs also deals with writing data or audio tracks. 9660srv serves 9660 file systems. this doesn't have anything to do with the storage media, so 9660srv will be able to serve an iso on cd or in a ramfs. mk9660 makes 9660 file systems that are directly writable to cdfs' wd file. - erik From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 24 Oct 2011 15:54:00 +0200 Message-ID: From: "Peter A. Cejchan" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 39c1b682-ead7-11e9-9d60-3106f5b1d025 > PS.: also, the example doesn't fixate the disk. Should it? Shouldn't > it? (Why is this (un)needed?) > > I don't know. I do not use isofs anymore. I rather write a tar file to raw CD. Maybe I am crazy, but it works fine for me, at least for backup. From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 24 Oct 2011 10:13:28 -0400 To: tyapca7@gmail.com, 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] how to burn iso Topicbox-Message-UUID: 39c87f9e-ead7-11e9-9d60-3106f5b1d025 On Mon Oct 24 09:54:34 EDT 2011, tyapca7@gmail.com wrote: > > PS.: also, the example doesn't fixate the disk. Should it? Shouldn't > > it? (Why is this (un)needed?) > > > > > > I don't know. I do not use isofs anymore. I rather write a tar file to > raw CD. Maybe I am crazy, but it works fine for me, at least for > backup. it's going to depend if you need session/track support or not. this is a function of the media. certain media types require session closing. i think direct access might accidentally work for the first track on media. i wouldn't feel comfortable depending on this though. as i have confused cd-r for dvd+r media before. - erik From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 24 Oct 2011 11:58:28 -0400 Message-ID: Subject: Re: [9fans] how to burn iso From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Message-UUID: 39df3ed2-ead7-11e9-9d60-3106f5b1d025 On Mon, Oct 24, 2011 at 9:41 AM, Rudolf Sykora wrote: > My current understanding is that I need as if 3 different views on a CD: > -- if audio CD is to be written, I need to follow some structure in > which audio tracks should be written, so that other audio readers > understand it, > -- if data files are to be written, I first need some filesystem > (iso9660) on the CD and then write the data files into this > filesystem, > -- if I have an ISO image, I'd expect that this is, without any > translation, just somehow raw-copied to the CD (similarly to a way a > dd command works). > > While writing to cd/wa may solve the audio case, I don't understand > how the data file vs ISO is coped with, as the example just writes an > ISO to cd/wd... cdfs only provides the 'ISO image raw-copied to the CD' case. You have an ISO image, so the scripts that have been posted will do the burn to the CD. If data files are to be written, you have the order of operations backward: you don't start with a file system on the CD and then write the files to that file system, because the CD is write-once and the file system is not really set up for that. Instead, you create an ISO image from the files you care about and then you write that directly to the CD. Russ