How To Locate Attached Disk Devices in Linux

Author: , April 24th, 2018

https://linux.die.net/man/8/lsblk # lsblk -a 1 2 3 4 5 NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT nvme1n1       259:0    0  100G  0 disk /volumes/data nvme0n1       259:1    0   20G  0 disk ├─nvme0n1p1   259:2    0   20G  0 part / └─nvme0n1p128 259:3   […]

How To Create a Bootable MacOSX USB Flash Drive

Author: , June 11th, 2016

As the root user, execute: “/Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia” –volume /Volumes/{USB_DRIVE_NAME_HERE}/ –applicationpath “/Applications/Install OS X El Capitan.app” Be sure to include the required double-quotes, or use backslashes to escape the spaces in the path. Full instructions may be found on the Apple site: https://support.apple.com/en-us/HT201372 Turn on your Mac by pressing the power button Press […]

How To Eject a Volume from the Terminal Command Line in MacOSX

Author: , December 8th, 2015

As always, YMMV… 1 2 3 4 5 6 7 8 9 #!/bin/bash # Usage: eject [fullpath to mount point] DISK="${1:-/Volumes/YourUSBFlashDriveName/}" df -h "$DISK" > /dev/null 2>&1 if [ $? -eq 0 ]; then    diskutil unmountDIsk `diskutil list "$DISK" | grep ^/dev/` else    echo Volume $DISK is not mounted…skipping. fi #!/bin/bash # Usage: […]

How To use the MacBook Air SuperDrive on other Mac computers

Author: , June 11th, 2013

Edit the file: /Library/Preferences/SystemConfiguration/com.apple.Boot.plist Make sure that the two lines “Kernel Flags” and “mbasd=1″ exist: 1 2 3 4 5 6 7 8 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>     <key>Kernel Flags</key>     <string>mbasd=1</string> </dict> </plist> <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST […]