2007-06-26 DVD Copying

Every year I have the same problem. Somebody Claudia knows has made a DVD of a performance or workshop or whatever, and I need to copy it. I want it on our external harddisk, and a copy on DVD. And I keep forgetting how to do these things. It seems once I’ve done it a certain way once or twice, I switch computers and the stuff I learnt has become useless.

After wasting about 10 empty DVDs with unusable images, here’s what I had to do.

Figure out the device the DVD is on:

diskutil list

Unmount the disk without ejecting it (otherwise you’ll get a “dd: _dev_disk2: Resource busy” error):

diskutil unmount /dev/disk2

Make image:

dd if=/dev/disk2 of="Volkshaus 1.img" bs=1048576

I still don’t understand why the regular `hdiutil makehybrid -udf` did not work. Somehow I have no trouble understanding that using Apple’s Disk Utility did not work. ;)

​#DVD ​#Software ​#Mac

Comments

(Please contact me if you want to remove your comment.)

This is what I tried at first:

I used MacTheRipper to extract the VIDEO_TS folder on the external harddisk, faintly remembering that just copying the VIDEO_TS folder didn’t work. Trying to remember what the problem was (2005-05-05 Software), I think it was unrelated to simply copying the files. The problem at the time was that my images were not created using `-dvd-video` for `mkisofs`. Later I tried mounting the broken DVDs (that worked), and recreating a disk image using the `dvd-image` shell script below. It did not work either.

MacTheRipper

2005-05-05 Software

#!/bin/sh
DIR=$1
if test -z "$1"; then
    echo Path to directory is missing
    exit 1
elif test ! -d "$1/VIDEO_TS"; then
    echo Directoy does not contain a VIDEO_TS folder
    exit 2
fi
NAME=$(basename "${DIR}")
hdiutil makehybrid -udf -udf-volume-name "${NAME}" -o "${NAME}" "${DIR}"
dvd-image /Volumes/Volkshaus\ 2

Most of the above based on Burn a playable DVD from a VIDEO_TS folder at mac OSX hints.

Burn a playable DVD from a VIDEO_TS folder

mac OSX hints

No matter what I tried, I was not create an image that I could burn such that I could play the DVD on a regular player. It only worked using VLC.

VLC

I tried to use File → New → Disk Image from Folder in Disk Utility, choosing “DVD/CD master” as the image type or format. This resulted in a *.cdr file, but after burning it, I was still not able to play the DVD on a DVD player.*

– Alex Schroeder

Alex Schroeder

---

dd if=_dev_dvd of=disk.img bs=1048576 ?

– AlokSingh 2007-06-27 10:33 UTC

AlokSingh

---

Yeah, I thought about that. A quick search of my own blog led me to 2005-05-05 Software where I had a filesize problem. That’s why I didn’t pursue the solution. But you are right – as long as the external hard disk doesn’t use the VFAT filesystem it should work. Compared to reading and burning the disks, the conversion to a disk image really didn’t matter much.

2005-05-05 Software

VFAT

– Alex Schroeder 2007-06-27 11:19 UTC

Alex Schroeder

---

It turns out that none of the things I tried produced a DVD that could actually be read! I hate these things...

So now I did what you suggested.

Figure out the device the DVD is on:

diskutil list

Unmount the disk without ejecting it (otherwise you’ll get a “dd: _dev_disk2: Resource busy” error):

diskutil unmount /dev/disk2

Make image:

dd if=/dev/disk2 of="Volkshaus 1.img" bs=1048576

Let’s see whether that works.

– Alex Schroeder 2007-06-27 13:41 UTC

Alex Schroeder

---

It works!!

❤ ❤ ❤ Thank you Alok! :D

I wonder what the problem was. I ran out of empty DVDs of a particular make and switched to another. I created the initial VIDEO_TS folders using MacTheRipper. Theoretically, either of these two could be the culprit.

MacTheRipper

In a strange way, I’m happy I’m returning to the command line. ;)

– Alex Schroeder 2007-06-27 15:00 UTC

Alex Schroeder

---

heh. To be honest, this is the only way I know to make copies of disks. When I did it front of a friend once, he asked me if I was some kind of Luddite. “Don’t you have something more sophisticated ?”

I suppose some fiddling with block_size would help make things go a bit faster.

– AlokSingh 2007-06-28 06:58 UTC

AlokSingh

---

I am so incredibly happy. I nearly started down the same road once again. But then I remembered to search my own blog. I feel like my past self is helping me out right now. Leaving messages to your future self is weird.

Except that it doesn’t work in this case. 😢 The dd operation just kept reading data and the image was reaching more than 6G when in fact there is only about 300M of data. Damn it!

Oh and I tried the Mac The Ripper + hdiutil combo, and I tried the Disk Util → File → New → Disk Image from Folder, and sure enough neither will play on my DVD player. I hate hate hate hate this. Two DVD blanks wasted.

I tried reducing the block size. `dd if=/dev/disk2 of="31.01.2009 Hochzeit Ariane.img" bs=2048`. Then I realized that this time around the DVD was on disk3. I had unmounted disk3, but read the image from disk2. No wonder it got to 6G and counting! :groan: There is no headshot icon to use... :fishbone:

– Alex Schroeder 2009-09-19 12:38 UTC

Alex Schroeder

---

For DVDs that are borked, I’ve tried using `ddrescue` as follows:

ddrescue -b 1048576 /dev/disk2 \
                    /Volumes/Video/Oriental\ Moods\ 2009.img \
                    /Volumes/Video/Oriental\ Moods\ 2009.log

– Alex Schroeder 2010-02-07 20:56 UTC

Alex Schroeder