User Tools

Site Tools


pages:howtos:suse:apple_superdrive_with_opensuse_tumbleweed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pages:howtos:suse:apple_superdrive_with_opensuse_tumbleweed [2023/05/07 12:33] – created mischerhpages:howtos:suse:apple_superdrive_with_opensuse_tumbleweed [2023/05/07 12:46] (current) – [Using an Apple SuperDrive with openSUSE Tumbleweed] mischerh
Line 5: Line 5:
   * https://askubuntu.com/questions/226638/how-to-eject-a-cd-dvd-from-the-command-line   * https://askubuntu.com/questions/226638/how-to-eject-a-cd-dvd-from-the-command-line
   * https://www.reactivated.net/writing_udev_rules.html   * https://www.reactivated.net/writing_udev_rules.html
 +  * https://wiki.archlinux.org/title/udev
  
 Make sure the [[https://github.com/doug-gilbert/sg3_utils | sg3_utils]] package is installed. Make sure the [[https://github.com/doug-gilbert/sg3_utils | sg3_utils]] package is installed.
Line 102: Line 103:
  
 We will need the values of "ID_VENDOR_ID" and "ID_MODEL_ID". We will need the values of "ID_VENDOR_ID" and "ID_MODEL_ID".
 +
 +Then we use udev to automatically send the activation command. This way, the device will get activated automatically when it gets plugged in.
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 install -vbD --owner=root --group=root --mode=0644 -T <(cat << 'EOF' install -vbD --owner=root --group=root --mode=0644 -T <(cat << 'EOF'
Line 108: Line 111:
 EOF EOF
 ) /etc/udev/rules.d/96-applesuperdrive.rules ) /etc/udev/rules.d/96-applesuperdrive.rules
 +</sxh>
  
  
 +If you don't want to use udev, this is how to do it manually:
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 +# find the device
 ls /dev/sr* ls /dev/sr*
 +# send the magic string to activate the device
 sg_raw /dev/sr1 EA 00 00 00 00 00 01 sg_raw /dev/sr1 EA 00 00 00 00 00 01
 +# to eject the media from command line
 eject /dev/sr1 eject /dev/sr1
 </sxh> </sxh>
pages/howtos/suse/apple_superdrive_with_opensuse_tumbleweed.1683462806.txt.gz · Last modified: 2023/05/07 12:33 by mischerh