Open a terminal and run the following command to list your hard drives
It should return something similar to the following
bobs-MacBook:~ bob$ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1000.1 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_HFS Macintosh HD 999.1 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *8.0 GB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS Install macOS Sierra 7.0 GB disk2s2 bobs-MacBook:~ bob$
From above we see that the EFI partition on the main drive is disk0s1.
Make a directory for it to mount to
sudo mkdir /Volumes/TMPEFI
sudo mount -t msdos /dev/disk0s1 /Volumes/TMPEFI
It should now show up in finder for you to browse.
To unmount it simple eject it in Finder, or use one of the following commands
diskutil unmount /Volumes/TMPEFI
- Bootable macOS USB drive (Guide here)
- Clover (Download here, or on source forge)
- Computer running macOS to run clover from
Plug the drive into your Mac, or current Hackintosh and launch the Clover installation package you downloaded from above. Click Continue
You should now be able to boot the USB on a PC. You will need to change the settings on the PC to boot using EFI, and make sure your hardware is compatible.
Note : This is not a complete guide to Installing macOS Sierra on an Alienware, mainly just some notes for now. Everything here should apply to the Alienware 14 and 17, and maybe some of the newer ones 15 R1, 17 R2, etc.
You will need to either patch the kernel for the Haswell CPU, or enable it from clover when booting up. If you don’t, the system will reboot on start up (See Troubleshooting section).
You may need to boot with the nv_disable=1 option if you don’t have a supported nvidia card
Creating the Boot Drive
- Download macOS Sierra
- Download Clover (Download from SourceForge, or here)
Create the boot drive just like you normally would and then run clover. When you install Clover, be sure to CHANGE THE INSTALL LOCATION to the USB drive.
Also select the following options when installing clover.
- Install for UEFI booting only
- Install Clover in the ESP
After that is finished, you should be good to go. Setup the Alienware BIOS for UEFI, and boot from the USB drive. Install like you normally would.
More coming later…
Alienware reboots after selecting the macOS drive in Clover.
Issue is related to the unpatched kernel for Haswell.
- Once you get to clover, hit “o” this will give you the options menu
- Select “Binaries patching->“
- Select “Kernel PM Patch“
- Go back to the main menu
- Select the macOS drive and hit “Space Bar”
- Select the other options you want i.e.(safe mode, nv_disabled, etc.), and hit “Boot macOS with selected options“
Black screen after selecting the macOS boot drive
Looks like the issue is some sort of incompatible hardware. I had a wifi card that was causing trouble.
Disable wireless card in BIOS.
Could be any number of things:(
Things to try,
Boot in safe mode
- Boot to clover
- Select the macOS drive
- Hit the “Space Bar”
- Select the option that says “Safe mode”
- Hit “Boot with selected Options”
This is helpful if you need to control the volume on a Mac that you have access to via SSH, or need to control it with a bash script.
sudo osascript -e "set volume (0-10)"
Turn volume off
sudo osascript -e "set volume 0"
Turn volume to 100%
sudo osascript -e "set volume 10"
Turn volume to 51%
sudo osascript -e "set volume 5.1"
Hit the Windows key, type in diskpart and hit enter
You should get a black Command like Prompt window.
List the disks
You should get a list of the disk you have as well as the number for the disk.
Select the disk you want in our case disk 3. Change the number to the number of your drive
select disk 3
clean the disk
Now you can open up Disk Manager and create a new Simple Volume on your drive.
Note: To install sshpass you need to make sure you have Xcode installed along with the Xcode command line tools. You can download Xcode from the app store, and then install the command line tools from Xcode’s Preferences.
Now open up your terminal and run the following commands.
Download sshpass from source forge.
curl -O -L http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
Extract the tarball and cd into the directory.
tar zxvf sshpass-1.05.tar.gz && cd sshpass-1.05
make and install.
./configure make sudo make install
Now test and make sure it works
You should receive the following.
sshpass 1.05 (C) 2006-2011 Lingnu Open Source Consulting Ltd. This program is free software, and can be distributed under the terms of the GPL See the COPYING file for more information.
sudo port install ddrescue
If you don’t have ports installed, then I would recommend doing some web searching on how to install ddrescue.
identify the “name” of the disk you want to “image” .
Macbook:~ bob$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *200.1 GB disk0 1: EFI EFI 204.2 MB disk0s1 2: Apple_HFS Mac 199.7 GB disk0s2 3: Apple_Boot Recovery HD 641.1 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *250.8 GB disk1 1: Windows_NTFS Windows Hard Drive 250.8 GB disk1s1 Macbook:~ bob$
The first disk “disk0” is the OS X System disk, the second one “disk1” is an external drive, the one I want to image.
Change /dev/disk1s1 to your disk. If you have multiple partitions and want to image the whole drive then just use the disk name like “/dev/disk1” instead of “/dev/disk1s1”.
sudo ddrescue -v /dev/disk1s1 ~/Desktop/ddrescue.dmg ddrescue.log
In the above command I am attempting to rescue data from the first partition on disk1 and send it to an image “ddrescue.dmg” on my desktop.
Now go get some coffee, lunch, etc. and it might be finished when you get back…
The wget tool is an extremely useful command that allows you to download files from websites from the command line. Before you begin you should make sure you have Xcode installed. If you don’t, just download it from the App Store, its free.
To install wget on your mac you first need to download the source code from here. Next you need to extract the tarball. You can do this by double clicking the file in Finder or you can run the following command in the terminal
tar -zxvf ~/Downlaods/wget-1.14.tar.gz
Run the rest of these commands in the Terminal app.
Next we will cd into the directory.
and finally install it.
sudo make install
And of course make sure it works.
Congratulations, you have successfully compiled wget from source.