How To Burn Disk From Command Line

I know that I can use hdiutil to burn a disk from the command line, but how can I specify which superdrive I want to burn to?

I have two superdrives on my Mac Pro, and I'd like to burn to both of them independently from the command line (not Toast or Disk Utility).

Anybody know how to do this?

TIA

Eight-Core Mac Pro (3 GHz 2x Quad-Core Intel Xeon), Mac OS X (10.5.2), 5GB 667 MHz DDR2 RAM, 500GB SATA HD, 1.5TB RAID 0, 2x Superdrives

Posted on May 13, 2008 3:34 PM

Reply
9 replies

May 13, 2008 6:11 PM in response to Rob Frei

I can confirm that what Clea suggests works. Jun T. demonstrated how to use my external firewire burner using the openfirmware path provided by hdiutil burn -list. You might try editing the following to find your target drive (first try hdiutil burn -list to find a unique string to match):
<pre style="padding-left: .75ex; padding-top: .25em; padding-bottom: .25em; margin-top: .5em; margin-bottom: .5em; margin-left: 1ex; max-width: 80ex; overflow: auto; font-size: 10px; font-family: Monaco, 'Courier New', Courier, monospace; color: #444; background: #eee; line-height: normal">hdiutil burn your.dmg -device `hdiutil burn -list | sed -ne '/ via FireWire / {n; p;}'`
</pre>
--
Cole

May 13, 2008 7:17 PM in response to Cole Tierney

Thanks Clea and Cole. The command,

hdiutil burn -list

returned three errors and the following for my drives:

OPTIARC DVD RW AD-7170A via ATAPI (DRDeviceSupportLevelAppleShipping)
IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1
/AppleIntelPIIXATARoot/PRID@0/AppleIntelPIIXPATA/ATADeviceNub@1
/IOATAPIProtocolTransport/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType05
/IODVDServices

OPTIARC DVD RW AD-7170A via ATAPI (DRDeviceSupportLevelAppleShipping)
IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1
/AppleIntelPIIXATARoot/PRID@0/AppleIntelPIIXPATA/ATADeviceNub@0
/IOATAPIProtocolTransport/IOSCSIPeripheralDeviceNub/IOSCSIPeripheralDeviceType05
/IODVDServices

ATADeviceNub@0 and ATADeviceNub@1 distinguishes the two drives.

Can you suggest a command to burn a .dmg to either of these drives using the paths provided? I'm still not 100% clear. I don't see /AppleACPIPlatformExpert on my system. I'm don't understand this path.

TIA

May 13, 2008 8:05 PM in response to Rob Frei

I think that you would set up the hdiutil burn command as you usually would and then add "-device /AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1/AppleIntelPIIXATARoot/PR ID@0/AppleIntelPIIXPATA/ATADeviceNub@1/IOATAPIProtocolTransport/IOSCSIPeripheral DeviceNub/IOSCSIPeripheralDeviceType05/IODVDServices" as an(other) option to the burn command.

I haven't done this, mind you. But I think that path is supposed to be such that you feed it straight to the device option. It says it is an "open firmware path" in the manpage. I know virtually nothing about open firmware but I suspect that is why the path looks strange - it is a path at a very low level. It is not a path at the file-system level at all. I don't know if that is true. I don't know if it makes sense, but that's my guess.

Maybe somebody else can confirm. Otherwise, I would probably just try it - maybe as a standard user, though I don't think you are likely to harm anything (open firmware just makes me nervous). I think it just might not work.

- cfr

May 13, 2008 8:48 PM in response to Clea Rees

Thanks again Clea.

Unfortunately, it didn't like the option.

This isn't a huge deal. I simply have a bunch of CD's that I have to burn, and I thought it might be easy to do this from the command line.

I have learned something tonight. I created two instances of Apple's Disk Utility and was able to successfully burn two CD's simultaneously. Curious though,
one burned at 36x and the other at 24x. Both drives are identical. I wonder if a hardware limitation is coming into play???

Pretty cool to burn two disks at once though. Very fast.

Thanks again for your help. Maybe someone will happen by who has actually done this ... apparently most aren't 😉

Rob

May 14, 2008 6:28 AM in response to Rob Frei

{quote:title=Rob Frei wrote:}Thanks again for your help. Maybe someone will happen by who has actually done this ... apparently most aren't 😉
{quote}

I use the hdiutil -device option in my production work flow to create masters of our educational software. I can tell you with a high degree of confidence that this does work. 🙂

Each entry is two lines. The first line contains the name of the device followed by another very long line with the OF path to the device. In my case I'm looking for the device whose name contains 'firewire' then printing the following line. But you're looking for a string in the actual path so it becomes simpler.

The path to my internal burner contains ATADeviceNub@0 and this works for me:
<pre style="padding-left: .75ex; padding-top: .25em; padding-bottom: .25em; margin-top: .5em; margin-bottom: .5em; margin-left: 1ex; max-width: 80ex; overflow: auto; font-size: 10px; font-family: Monaco, 'Courier New', Courier, monospace; color: #444; background: #eee; line-height: normal">hdiutil burn your.dmg -device `hdiutil burn -list | fgrep 'ATADeviceNub@0'`</pre>
--
Cole

May 15, 2008 11:21 AM in response to Clea Rees

{quote:title=Clea Rees wrote:}
Aha - so the IOService: is part of the path? I wondered about that...
{quote}

Yes. It's natural to assume the path begins with the forward slash. I wrestled with that for awhile until Jun T. helped out. It's an ugly long string which is why I like to extract it with a separate command.

Actually drutil has a nice rich set of drive selection methods, but surprisingly lacks the ability specify burn speed (at least in my version). This was a show stopper for me, since our replicator prefers masters be burned at 4x.

--
Cole

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How To Burn Disk From Command Line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.