Re: How to create .iso file image of cdrom (atapi)?
Sergey 'DoubleF' Zaharchenko [EMAIL PROTECTED] writes: Ah, I see, first mount the cdrom, then make an iso from its filesystem - then that's OK, but is seems a little of an overkill, as the cdrom already `contains' the iso. If created your way, the image will not be completely identical to the one on the cd (for example, the boot sectors, if any, will be missing). The canonical answer from the handbook is Duplicating Data CDs You can copy a data CD to a image file that is functionally equivalent to the image file created with sysutils/mkisofs, and you can use it to duplicate any data CD. The example given here assumes that your CDROM device is acd0. Substitute your correct CDROM device. A c must be appended to the end of the device name to indicate the entire partition or, in the case of CDROMs, the entire disc. # dd if=/dev/acd0c of=file.iso bs=2048 Now that you have an image, you can burn it to CD as described above. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#IMAGING-CD -- Lowell Gilbert, embedded/networking software engineer, Boston area: resume/CV at http://be-well.ilk.org:8088/~lowell/resume/ username/password public ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Wed, 7 Jan 2004, Sergey 'DoubleF' Zaharchenko wrote: Ah, I see, first mount the cdrom, then make an iso from its filesystem - then that's OK, but is seems a little of an overkill, as the cdrom already `contains' the iso. If created your way, the image will not be completely identical to the one on the cd (for example, the boot sectors, if any, will be missing). Yes. I mentioned that, the mkisofs approach would not be a bootable image. Thanks for pointing out the difference. I could never figure out how to make an ISO of a bootable CD. :-) Other than speed is there any consideration about the buffer size? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
Francisco Reyes wrote: Other than speed is there any consideration about the buffer size? I assume you are referring to the 'bs=2048' argument to dd. The argument 'bs=2048' sets the block size to be used for the device. You can't use another value for cdrom drives than 2048 except you are able to change the blocksize on the drive. Some can be jumpered for 512 per block, but there is no need to do that. If you use another value for bs the operation will fail on a cdrom drive. Hendrik -- Ahhh there's only 10 types of people in the world, those who understand binary and those who don't... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Wed, Jan 07, 2004 at 06:05:47PM +0100, Hendrik Hasenbein wrote: Francisco Reyes wrote: Other than speed is there any consideration about the buffer size? I assume you are referring to the 'bs=2048' argument to dd. The argument 'bs=2048' sets the block size to be used for the device. You can't use another value for cdrom drives than 2048 except you are able to change the blocksize on the drive. Some can be jumpered for 512 per block, but there is no need to do that. If you use another value for bs the operation will fail on a cdrom drive. Well, you can use a bs value that is a multiple of 2048 (like the 64k in my previous example). Using a larger block size will generally speed up the transfer, up to a point. Scott -- === Scott Mitchell | PGP Key ID | Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines scott at fishballoon.org | 0xAA775B8B | -- Anon ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Mon, 5 Jan 2004, W. Sierke wrote: Is there a straightforward way of creating a file image (.iso) of a data cdrom mounted in an atapi cd-rom drive? I use a port called mkisofs. mkisofs -R -l -J -o filename . So you would mount the CD and then CD into it. To later burn to another CD I use burncd -f /dev/acd0c -s 10 data $1 fixate Where 10 is the speed of my burner, but you should set it to the max speed of yours.. which if your CD burner is recent is probably faster than 10. :-) Hope that helps. As far as I knowh though this approach will not work to copy a bootable CD. The ISO image will be created and the content will be there, but the new CD will not be bootable. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Tue, 6 Jan 2004 22:42:35 + (GMT) Francisco [EMAIL PROTECTED] probably wrote: On Mon, 5 Jan 2004, W. Sierke wrote: Is there a straightforward way of creating a file image (.iso) of a data cdrom mounted in an atapi cd-rom drive? I use a port called mkisofs. mkisofs -R -l -J -o filename . He means getting the .iso from the cdrom, not putting it there. So the previous postings are more `on topic', though this one should still be interesting to the OP. So you would mount the CD and then CD into it. :) To later burn to another CD I use burncd -f /dev/acd0c -s 10 data $1 fixate Where 10 is the speed of my burner, but you should set it to the max speed of yours.. which if your CD burner is recent is probably faster than 10. :-) Hope that helps. As far as I knowh though this approach will not work to copy a bootable CD. The ISO image will be created and the content will be there, but the new CD will not be bootable. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- DoubleF Oh, I am a C programmer and I'm okay I muck with indices and structs all day And when it works, I shout hoo-ray Oh, I am a C programmer and I'm okay pgp0.pgp Description: PGP signature
Re: How to create .iso file image of cdrom (atapi)?
On Wed, 7 Jan 2004, Sergey 'DoubleF' Zaharchenko wrote: On Tue, 6 Jan 2004 22:42:35 + (GMT) Francisco [EMAIL PROTECTED] probably wrote: On Mon, 5 Jan 2004, W. Sierke wrote: Is there a straightforward way of creating a file image (.iso) of a data cdrom mounted in an atapi cd-rom drive? I use a port called mkisofs. mkisofs -R -l -J -o filename . He means getting the .iso from the cdrom, not putting it there. So the previous postings are more `on topic', though this one should still be interesting to the OP. I though understood the question. Wouldn't making the image with mkisofs be what he is looking for? He said a data CD.. so IF.. and that is the issue, he can mount it he may be able to use mkisofs to make an ISO of the data. Maybe I am not really understanding the question... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Wed, 7 Jan 2004 01:10:45 + (GMT) Francisco Reyes [EMAIL PROTECTED] probably wrote: On Wed, 7 Jan 2004, Sergey 'DoubleF' Zaharchenko wrote: On Tue, 6 Jan 2004 22:42:35 + (GMT) Francisco [EMAIL PROTECTED] probably wrote: On Mon, 5 Jan 2004, W. Sierke wrote: Is there a straightforward way of creating a file image (.iso) of a data cdrom mounted in an atapi cd-rom drive? I use a port called mkisofs. mkisofs -R -l -J -o filename . He means getting the .iso from the cdrom, not putting it there. So the previous postings are more `on topic', though this one should still be interesting to the OP. I though understood the question. Wouldn't making the image with mkisofs be what he is looking for? He said a data CD.. so IF.. and that is the issue, he can mount it he may be able to use mkisofs to make an ISO of the data. Ah, I see, first mount the cdrom, then make an iso from its filesystem - then that's OK, but is seems a little of an overkill, as the cdrom already `contains' the iso. If created your way, the image will not be completely identical to the one on the cd (for example, the boot sectors, if any, will be missing). Maybe I am not really understanding the question... -- DoubleF A very intelligent turtle Found programming UNIX a hurdle The system, you see, Ran as slow as did he, And that's not saying much for the turtle. pgp0.pgp Description: PGP signature
Re: How to create .iso file image of cdrom (atapi)?
On Mon, Jan 05, 2004 at 01:59:11AM +1030, W. Sierke wrote: Hi, Is there a straightforward way of creating a file image (.iso) of a data cdrom mounted in an atapi cd-rom drive? All my googling has turned up is suggestions like dd if=/dev/acd0 ... but I neither have nor can create (with MAKEDEV) /dev/acd0 (only /dev/acd0a and /dev/acd0c - FreeBSD 4.8) You want to use /dev/acd0c - the 'c' partition covers the whole disk. Something like: dd if=/dev/acd0c of=foo.iso bs=64k should do what you want. Scott -- === Scott Mitchell | PGP Key ID | Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines scott at fishballoon.org | 0xAA775B8B | -- Anon ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
Scott Mitchell wrote: You want to use /dev/acd0c - the 'c' partition covers the whole disk. Something like: dd if=/dev/acd0c of=foo.iso bs=64k Ah! Thanks for that. The bs argument is crucial, I hadn't thought to try anything further when without it I got: dd: /dev/acd0c: Invalid argument I let myself be led astray into thinking that there must be something amiss with using that device. So if the 'c' partition is the whole disk, what's the 'a' partition, out of curiosity? Thanks, Wayne ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Mon, Jan 05, 2004 at 02:51:12AM +1030, W. Sierke wrote: Scott Mitchell wrote: You want to use /dev/acd0c - the 'c' partition covers the whole disk. Something like: dd if=/dev/acd0c of=foo.iso bs=64k Ah! Thanks for that. The bs argument is crucial, I hadn't thought to try anything further when without it I got: dd: /dev/acd0c: Invalid argument The block size of a data CD is 2048 bytes, so I guess you'd need to specify some multiple of 2048 for dd. Bigger reads should improve performance somewhat, hence my use of 64k. On the other hand, for audio CDs the block size is 2352, as discussed in the handbook: http://www.uk.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html I let myself be led astray into thinking that there must be something amiss with using that device. So if the 'c' partition is the whole disk, what's the 'a' partition, out of curiosity? On an ISO9660 data CD, the 'a' partition appears to cover the whole disk, just like 'c'. That might change if you had, say, a UFS filesystem on there, or no filesystem at all, just raw data of some kind. A data CD won't in general have a BSD disklabel on it, so I assume disklabel is faking up an 'a' partition to cover the whole disk when I do: (504) tuatara:~ $ disklabel acd0 # /dev/acd0c: type: unknown disk: acd0 label: unknown flags: removeable bytes/sector: 2048 sectors/track: 100 tracks/cylinder: 1 sectors/cylinder: 100 cylinders: 3231 sectors/unit: 323014 rpm: 300 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 1 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 32301404.2BSD0 0 0 # (Cyl.0 - 3230*) boot block size 0 super block size 0 Cheers, Scott -- === Scott Mitchell | PGP Key ID | Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines scott at fishballoon.org | 0xAA775B8B | -- Anon ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to create .iso file image of cdrom (atapi)?
On Mon, 5 Jan 2004 02:51:12 +1030 W. Sierke [EMAIL PROTECTED] probably wrote: Scott Mitchell wrote: You want to use /dev/acd0c - the 'c' partition covers the whole disk. Yes, for those devices which are disklabel(8)'d. Something like: dd if=/dev/acd0c of=foo.iso bs=64k Ah! Thanks for that. The bs argument is crucial, I hadn't thought to try anything further when without it I got: dd: /dev/acd0c: Invalid argument I let myself be led astray into thinking that there must be something amiss with using that device. That is because the default block size is 512 bytes, and cdroms only support (multiples of) 2048 bytes. So if the 'c' partition is the whole disk, what's the 'a' partition, out of curiosity? $ ls -l /dev/acd0a /dev/acd0c crw-r- 4 root operator 117, 0 4 19:47 /dev/acd0a crw-r- 4 root operator 117, 0 4 19:47 /dev/acd0c The nodes seem to be completely identical. The reason for `a''s creation is some sort of compatibility, I think... Thanks, Wayne ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- DoubleF Have you lived here all your life? Oh, twice that long. pgp0.pgp Description: PGP signature