View previous topic :: View next topic |
Author |
Message |
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Wed Sep 28, 2005 3:07 am Post subject: how to copy audio CD with mkisofs? [SOLVED] |
|
|
Hi all,
I've been able to use mkisofs to make iso images ready to burn from my DVD's after running them through dvdbackup.
I thought it would be even simpler to backup my audio cd's with it, but, can't figure out what I'm doing wrong...just trying to make an iso image from an audio CD, but, get this type error:
Code: | mkisofs -o band_on_run.iso /dev/cdrom
mkisofs: Symlink /dev/cdrom ignored - continuing.
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
48 extents written (0 Mb) |
I mount /dev/cdrom to /mnt/cdrom I get this:
ount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom: can't read superblock
So...I'm kinda lost....and all my searches on this topic seems to pull up stuff about DVD's...nothing good on audio CD backups that I can find on the forums.
Can someone give me some pointers or links? I know I'm missing something here that's basic...
Thanx,
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Last edited by cayenne on Thu Sep 29, 2005 4:11 am; edited 1 time in total |
|
Back to top |
|
|
elvisthedj Guru
Joined: 21 Jun 2004 Posts: 483 Location: Nampa, ID
|
Posted: Wed Sep 28, 2005 3:25 am Post subject: |
|
|
If it's ignoring the symlink, what happens if you put in the actual device? (whatever it points to .. e.g. /dev/hdc or whatever) _________________ Kris Edwards
kris edwards at g mail dot c0m
PGP
WWW |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Wed Sep 28, 2005 3:38 am Post subject: Tried that... |
|
|
elvisthedj wrote: | If it's ignoring the symlink, what happens if you put in the actual device? (whatever it points to .. e.g. /dev/hdc or whatever) |
It is hdb when I looked at the link. This gives:
Quote: | mkisofs -o band_on_run.iso /dev/hdb
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
48 extents written (0 Mb) |
why won't it just make and image out of the cd I'm wondering?
Still trying to figure this out...
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
elvisthedj Guru
Joined: 21 Jun 2004 Posts: 483 Location: Nampa, ID
|
Posted: Wed Sep 28, 2005 3:48 am Post subject: |
|
|
Well, I hate to point you in a different direction, but why not use dd to make your iso?
The following is from This handy page
rawread wrote: |
#!/bin/sh
device=$1
blocksize=`isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5`
if test "$blocksize" = ""; then
echo catdevice FATAL ERROR: Blank blocksize >&2
exit
fi
blockcount=`isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4`
if test "$blockcount" = ""; then
echo catdevice FATAL ERROR: Blank blockcount >&2
exit
fi
command="dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
echo "$command" >&2
$command
|
To use this script to create an iso, do the following:
Code: |
rawread /dev/cdrom > myiso.iso
|
_________________ Kris Edwards
kris edwards at g mail dot c0m
PGP
WWW |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Wed Sep 28, 2005 3:59 am Post subject: Interesting... |
|
|
Interesting.
I was just trying the parts of the script you posted...I'd never seen isoinfo before. I got this weird result:
isoinfo -d -i /dev/cdrom
CD-ROM is NOT in ISO 9660 format
Same result as with /dev/hdb which is my cdrom.
Is their something weird about commercial audio cds? What format are the?
TIA,
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
elvisthedj Guru
Joined: 21 Jun 2004 Posts: 483 Location: Nampa, ID
|
Posted: Wed Sep 28, 2005 4:20 am Post subject: |
|
|
Hmm. Well, maybe I'm just dumb and that doesn't work for audio cd's
I'm SURE that cdrdao does though
Quote: |
Copying an audio CD
There are a couple ways to do this. Cdrdao is probably the easiest way to make a perfect copy of an audio CD, that's what I like to use:
cdrdao copy \
--device 0,4,0 \
--source-device 0,3,0 \
--speed 12 \
--eject
You can also use cdrdao to make a copy of the disc for burning later:
cdrdao read-cd --source-device 0,3,0
Using the copy command with cdrdao will cause the program to create an image file and then burn that. If you want no image file (like a cdrecord disc to disc copy), use the --on-the-fly option.
|
http://www.lugatgt.org/articles/cd_burning/#toc_4_6
I'll shut up now so maybe somebody can get back to your original subject _________________ Kris Edwards
kris edwards at g mail dot c0m
PGP
WWW |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Wed Sep 28, 2005 2:54 pm Post subject: Hmm..still puzzled |
|
|
ok...I'll keep searching. I'm trying to figure out the cdrdao thing...but, am confused by its syntax...LUN scsi numers and such? I'm not very familiar with that.
Seems like there should be a fairly straightforward way to backup a commercial audio CD, they was you can with DVD's.
I can't understand why mkisofs can just create an iso image from an audio CD inserted in the player/recorder.
Any other insight out there?
TIA,
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
mnxAlpha Apprentice
Joined: 15 Sep 2004 Posts: 210
|
Posted: Wed Sep 28, 2005 4:49 pm Post subject: Re: Hmm..still puzzled |
|
|
cayenne wrote: | I can't understand why mkisofs can just create an iso image from an audio CD inserted in the player/recorder. |
The most obvious reason is that audio CDs are nothing at all like data CDs. Audio data is burned differently, has a different format on the disc, has a different track type, and it even needs to be read back differently. An ISO image isn't sufficient for storing all the audio data, and couldn't store more than one track even if it were.
The second reason is that you can't create an ISO image containing a device node and expect it to copy the contents of the CD. The device file doesn't actually contain the contents of the disc - it's just a pointer to the device. You could copy the data off the disc by reading from that (and you can copy simple data CDs using dd), but it's not quite that easy for audio CDs.
To copy audio CDs, you have to use some program that can understand (and duplicate) audio CDs. cdrdao will do that for you.
First, you need the SCSI ID of your burner. It's the same one that cdrecord uses. I really don't know why cdrecord and cdrdao use SCSI IDs, considering that they make no sense at all even on SCSI systems, but there you go. I think it was some misguided attempt by cdrecord's author to make cdrecord consistent across multiple operating systems by making it inconsistent with whatever convention the operating system normally uses to identify CD drives. Anyway, to get your drive's ID, type this:
That'll give you a list of valid devices. My burner's ID is ATAPI:0,0,0, for example (an IDE burner). A burner connected to something that shows up as SCSI (SCSI, SATA, USB, Firewire, whatever) will show up as just three numbers. Now, to copy the disc: Code: | cdrdao copy --device ?,?,? |
Replace ?,?,? with the SCSI ID. That'll read the disc in the drive, prompt you to insert a CD-R, and then burn the disc for you. |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Thu Sep 29, 2005 4:11 am Post subject: Thank you! |
|
|
Thank you for the explanation...and instructions.
It worked just great!
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
UgolinoII Tux's lil' helper
Joined: 25 Apr 2004 Posts: 119
|
Posted: Thu Oct 06, 2005 10:19 am Post subject: |
|
|
Quote: | Well, I hate to point you in a different direction, but why not use dd to make your iso? |
outstanding little script, 10/10 - many thanks to the author! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|