Re: Copying a CDROM to a file
From: Lew Pitcher (lpitcher_at_sympatico.ca)
Date: 07/05/04
- Next message: Philo Kvetch: "Reading /etc/fstab without a reboot?"
- Previous message: P.T. Breuer: "Re: Installation suggestions needed."
- In reply to: Baho Utot: "Re: Copying a CDROM to a file"
- Next in thread: Baho Utot: "Re: Copying a CDROM to a file"
- Reply: Baho Utot: "Re: Copying a CDROM to a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 05 Jul 2004 00:06:38 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Baho Utot wrote:
> Lew Pitcher wrote:
>
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Baho Utot wrote:
>>
>>>How does one make a copy of a cdrom to its iso file.
>>>
>>>I have my purchased RedHat cdroms and I want to place them onto my server
>>>as
>>>iso's. I have tried dd if=/dev/cdrom of=RedHat-9.0-Disk-1.iso but it
>>>fails with this error:
>>
>>Nope, it /succeeds/ with this error ;-)
>>
>>
>>>[root@damaged ISO]# dd if=/dev/cdrom of=RedHat-9.0-Disk-1.iso
>>>dd: reading `/dev/cdrom': Input/output error
>>>640912+0 records in
>>>640912+0 records out
>>
>>You successfully copied 640912 512-byte records from /dev/cdrom to
>>RedHat-9.0-Disk-1.iso Then, dd tried to read the 640913'th record from
>>/dev/cdrom, but /dev/cdrom reported that no record existed. In other
>>words, you hit end-of-file on /dev/cdrom.
>>
>>Now, I agree that dd could be nicer in how it tells you that it reached
>>eof. But, reach eof it did, with no ill effects.
>>
>>You can ensure that your iso matches the source cd by running md5sum
>>against each, and comparing the output
>> md5sum /dev/cdrom
>> md5sum RedHat-9.0-Disk-1.iso
>>
>>
>>
>>>Is there another way?
>>
>>You /could/ mount the cdrom as an cdfs (if you have cdfs support in your
>>kernel), and just /copy/ the iso file off the cdrom.
>>
>
>
> How do you do that?
> Can you please give me an example.
OK, watch carefully :-) ....
I put my Slackware 9.0 CDROM #1 into my cdrom drive, and
root@bitsie:/mnt/hd# ls -a
./ ../
root@bitsie:/mnt/hd# ls -a /mnt/cdrom
./ ../
root@bitsie:/mnt/hd# mount -t cdfs /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
root@bitsie:/mnt/hd# ls /mnt/cdrom
boot.image_0 sessions_1-1.iso
root@bitsie:/mnt/hd# cp /mnt/cdrom/sessions_1-1.iso .
root@bitsie:/mnt/hd# ls -a
./ ../ sessions_1-1.iso
If you are interested in the cdfs filesystem driver, check out
http://www.elis.rug.ac.be/~ronsse/cdfs/
>
>>Or, you could mount the cdrom as an iso9660 fs and mkisofs from the
>>mounted directory structure.
>>
>
>
> How do you do that?
> Can you please give me an example.
I put my Slackware 9.0 CDROM #1 into my cdrom drive, and
root@bitsie:/mnt/hd# ls -a
./ ../
root@bitsie:/mnt/hd# ls -a /mnt/cdrom
./ ../
root@bitsie:/mnt/hd# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
root@bitsie:/mnt/hd# ls /mnt/cdrom
ANNOUNCE.9_0 CRYPTO_NOTICE.TXT README90.TXT isolinux/
BOOTING.TXT ChangeLog.txt RELEASE_NOTES kernels/
CHECKSUMS.md5 FAQ.TXT SPEAKUP_DOCS.TXT slackware/
CHECKSUMS.md5.asc FILELIST.TXT SPEAK_INSTALL.TXT
COPYING GPG-KEY Slackware-HOWTO
COPYRIGHT.TXT PACKAGES.TXT UPGRADE.TXT
root@bitsie:/mnt/hd# mkisofs -J -r -o Slackware_9.0_#1.iso /mnt/cdrom
...
1.47% done, estimate finish Mon Jul 5 00:04:06 2004
2.95% done, estimate finish Mon Jul 5 00:04:40 2004
...
97.25% done, estimate finish Mon Jul 5 00:04:51 2004
98.73% done, estimate finish Mon Jul 5 00:04:52 2004
Total translation table size: 0
Total rockridge attributes bytes: 137689
Total directory bytes: 243712
Path table size(bytes): 448
Max brk space used c15a4
339328 extents written (662 Mb)
root@bitsie:/mnt/hd# ls -a
./ ../ Slackware_9.0_#1.iso
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFA6NPNagVFX4UWr64RAuorAKCauW0ayL1Bej+wUVcwlsdnOJJjSgCfapcx
GD7VVoinTS2CLfDKF+9K7d8=
=wpBH
-----END PGP SIGNATURE-----
- Next message: Philo Kvetch: "Reading /etc/fstab without a reboot?"
- Previous message: P.T. Breuer: "Re: Installation suggestions needed."
- In reply to: Baho Utot: "Re: Copying a CDROM to a file"
- Next in thread: Baho Utot: "Re: Copying a CDROM to a file"
- Reply: Baho Utot: "Re: Copying a CDROM to a file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|