Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

cdrecord....shortcut?

  • 11-06-2003 12:59AM
    #1
    Registered Users, Registered Users 2 Posts: 2,518 ✭✭✭


    I'm pretty sure there is a way to burn a cd with cdrecord without having to build an iso image first, I just want to put it into a shell script and make a nice and simple command :)

    Anyone managed to do this?


Comments

  • Registered Users, Registered Users 2 Posts: 1,186 ✭✭✭davej


    I haven't tried this myself but I guess the following in theory would work if you have 2 cd drives. cdrecord can't do it by itself.

    dd if=/dev/cdrom2 bs=32k | cdrecord -v speed=x dev=n,n,n -

    davej


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    shouldn't that be

    readcd dev=0,1 | cdrecord blah ?


  • Registered Users, Registered Users 2 Posts: 2,518 ✭✭✭Hecate


    Well its a laptop so theres only 1 drive available; but what I mean is supplying a list of files or directories on the hard drive to cdrecord.

    Could I send the output of mkisofs to cdrecord using a pipe? (or named pipe?)


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    What you mean like from man cdrecord

    mkisofs -R /master/tree | cdrecord blah
    ?


  • Registered Users, Registered Users 2 Posts: 1,766 ✭✭✭hamster


    I though you always need to make an image first ? eg say for a directory 'disk2' with a load of files:

    mkisofs -r -o ora9id2.iso Disk2/


    then burning it:

    cdrecord -v speed=10 dev=0,0 ora9id1.iso


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,780 ✭✭✭niallb


    Hi, I've used this successfully.

    You can use 'dd' to make an iso image from a CD, so you can consider them identical, so nothing stopping you from telling cdrecord to use a disc as a track.
    The problem is the iso filesystem size is generated slightly incorrectly.

    cdrecord offers an isosize option which tells it to use the iso9660 filesystem size given as the size of this track.

    What that means is you can use:

    cdrecord driveropts=burnfree -v speed=4 dev=02,03,00 -eject -isosize /dev/scd2

    (remembering to change device numbers for your own system) to copy your CD.


    I have only used this on a system where both reader and writer were SCSI.
    IDE devices have much more overhead, but with burnfree on, it should work fine.
    I've never burned it faster than 4 speed.
    It won't work on multi-session discs.
    It will probably not work on CD-RW discs created with packet writinig software. (udf)
    It won't work for audio discs as they're not iso9660 either. ww)

    NiallB


Advertisement