Maybe it sounds strange to use a USB-CD Drive nowadays. However, I need to get an old data from a CD and the only available CD-Drive was my old Apple's SuperDrive. Thus, I did the following steps:
First connect the SuperDrive.
Then, install the
sg3-utilsby:$ sudo apt-get install sg3-utilsThen, to identify where the SuperDrive is use:
$ ls -lt | less | grep sr brw-rw----+ 1 root cdrom 11, 1 jun 26 09:55 sr1 lrwxrwxrwx 1 root root 3 jun 26 09:32 cdrw -> sr0 lrwxrwxrwx 1 root root 3 jun 26 09:32 dvdrw -> sr0 lrwxrwxrwx 1 root root 3 jun 26 09:32 cdrom -> sr0 lrwxrwxrwx 1 root root 3 jun 26 09:32 dvd -> sr0 brw-rw----+ 1 root cdrom 11, 0 jun 26 09:32 sr0choose that with a b in the details of file, in my case is
sr1Then you need to have a CD or DVD ready on the device, please do not push the CD if you try it the Drive will not allowed, the send this code to initialize the Super Drive
$ g_raw /dev/sr1 EA 00 00 00 00 00 01and magically the SuperDrive will introduce the CD and the drive can be used.
However, this procedure has to be repeated after you boot the system again.
Is there a method or procedure to do it easier ???
2 Answers
You can create a udev rule file to run this automatically. Create this as /etc/udev/rules.d/90-mac-superdrive.rules:
#
# Apple SuperDrive initialization rule
#
# See:
ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw %r/sr%n EA 00 00 00 00 00 01"Read for detailed explaination:
A tiny typo from the initial post, s missing for sg_raw:
should read$ sg_raw /dev/sr1 EA 00 00 00 00 00 01