Create a Mavericks USB Key

Something that has been around for  while, but I’ve just stumbled across it, is Diskmaker X

This nifty app will do all the donkey work in creating a bootable Mac OS X USB Key, you just need to following

1. Mavericks Installation app from the Mac App Store

2. Diskmaker X app from their website

3. an empty 8GB USB Key

 

Once you have downloaded the Mavericks app from the App Store and Diskmaker X from their website, then insert your USB Key into your Mac

Run Diskmaker X

When prompted, choose 10.9

It will then look for your Mavericks app, when it finds it, choose ‘Use this copy’

Then if you are using an 8GB USB key, then choose  ‘An 8GB USB Thumb Drive’

If you are using a partition on a larger drive, then choose ‘Another kind of disk’

Confirm the choice of disk by clicking on ‘Choose this disk’

When it warns you about erasing the drive, confirm that you wish to continue by clicking on ‘Erase and create the disk’

You will then be warned that you will need to input your admin password, so click ‘Continue’ and then enter your admin username and password when prompted

The process is fully automated, so from now until completion it will take around an hour, maybe longer on slower machines, you will get a dialog box when it has completed, confirming this and asking you for a donation, it’s not compulsory, but as it is quite a useful app, its always good to encourage future development, so please consider it.

 

You can then boot into the USB from the Startup Disk option in System Preferences, or by holding down ALT when the machine boots up

 

Enjoy

Creating never booted images – 10.8 – InstaDMG

System_Image_Utility

I’m going to run through the process of creating a never booted image using InstaDMG on Mac OS X 10.8, Once this has been done it will be ready to deploy using Deploystudio.

First, you will need to ensure that you have the Command Line Tools installed, you can download them from the Apple Developer site

You will need to create an account, but you don’t need to sign up for any of the paid programs to gain access to the tools we need

Go here to register

developer.apple.com/programs/register/

Once registered, click on the link below, this will take you to the downloads page, where you can get the Command Line Tools, we are after the Command Line Tools for OS X Mountain Lion

Command Line Tools (OS X Mountain Lion) for Xcode – January 2013

it’s roughly 120MB download, once you have it, install the package and we can get started.

First, open Terminal, then enter the following, this will change to your home directory, create an InstaDMG folder, then move you into the newly created folder

cd ; mkdir InstaDMG ; cd InstaDMG

next you will need to download InstaDMG, you do this by entering the following command into Terminal

svn checkout http://instadmg.googlecode.com/svn/trunk .

this shouldn’t take long, if you already have InstaDMG installed from a while ago, then it will be worth updating it, you can do this by entering the following into Terminal

cd ~/InstaDMG/
svn update

Next, you need to move your copy of the 10.8 InstallESD.dmg file into the InstaDMG installer disc folder

You need to have the Install Mac OS X Mountain Lion app in /Applications, if you don’t then you need to download it from the Mac App Store

When you have it, open Terminal and enter the following

sudo cp /Applications/Install\ OS\ X\ Mountain\ Lion.app/Contents/SharedSupport/InstallESD.dmg ~/InstaDMG/InstallerFiles/InstallerDiscs/

Next you need to make a change to the catalog file (10.8_vanilla.catalog) located at

~/InstaDMG/AddOns/InstaUp2Date/CatalogFiles

At the time of writing this points to an older Java installation file which will cause errors when trying to create the image, so we need to edit this, open Terminal and enter the following

nano ~/InstaDMG/AddOns/InstaUp2Date/CatalogFiles/10.8_vanilla.catalog

delete this line

Java for OS X 2012-006  http://support.apple.com/downloads/DL1572/en_US/JavaForOSX.dmg  sha1:eff777cdc39b4e3336b3477f60e8ad769ded8532

replace with this line

Java for OS X 2013-002 http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2013-002.dmg sha1:47e38cf089a6a7bba9e2b0b387fe09e2b77e10a6

make sure there are tabs rather than spaces between each line, otherwise it will error when trying to build the image

then press CTRL X

then Y

then ENTER

this saves the file and you shouldn’t encounter any problems

next we need to make the image, which is all done in Terminal, so enter the following

cd ~/InstaDMG/AddOns/InstaUp2Date/

sudo ./instaUp2Date.py -p 10.8_vanilla

this took around 30 minutes on a 2012 MacBook Pro, times will vary on different models, but this should give you a rough idea

Setting your Computer ‘Names’ – Command Line

 

Now some of you may not be aware that your computer even has 1 name, let alone 3, but here I will explain how to set them.
First, by default, your ‘Computer Name’ is set by the Operating System when you initially set your machine up, and it tends to use your account long name and the model of Mac, such as ‘John Smith’s MacBook Air’. I don’t like this as it gives away more information than I’d like, so you should change this by typing the following into Terminal, replacing the name within the quotes with the name you’d like to use

sudo scutil --set ComputerName "Mac1"

you can also change this by going to System Preferences, then Sharing, then changing the entry in Computer Name

 

Next you can change your Bonjour host name, your Bonjour host name is the name that shows up when you go to Finder and look under the Shared tab in the sidebar, to change this, open Terminal and type the following, again, replace the name in quotes with something of your own

sudo scutil --set LocalHostName "MBA1"

 

Finally, we have the hostname, this is the name which your machine can be reached from via the internet, through SSH normally, commonly this would be the DNS name of your machine. again, this would be changed through Terminal by typing the following

scutil --set HostName "mac1.domain.com"

I would recommend only using lowercase letters for this.
to confirm the changes have been successful, you can type the following into Terminal

scutil --get ComputerName
scutil --get LocalHostName
scutil --get HostName

USB Key Labelled EFI Boot

If you have created a Mac OS X bootable USB Key and it shows up as EFI Boot when you are at the boot selection menu then you can rectify this via the following Terminal command

sudo bless --folder /Volumes/VOLUMENAME/System/Library/CoreServices --bootefi

replace VOLUMENAME with the name of your USB Volume, so I named my 10.8 Key ‘Mountain’, so my command would be

sudo bless --folder /Volumes/Mountain/System/Library/CoreServices --bootefi

then enter your admin password and reboot

Hold down ALT to get back to the boot selection menu and you should now have the VOLUMENAME displayed under the USB Device, rather than EFI Boot

Mountain Lion on a USB

Ok, so to get Mountain Lion onto a USB use the same method as on Lion

First of all, you will need the following

1. Install OS X Mountain Lion.app (4.37GB download from the Mac App Store)

2. 8GB USB Key

Once you have these you will need to get the Mountain Lion Disk Image, which is obtained by clicking on Finder and pressing SHIFT CMD G at the same time and entering

/Applications/Install OS X Mountain Lion/Contents/SharedSupport/

and then clicking the Go button

Once the folder opens then you need to click on the InstallESD.dmg and press CMD C to copy it, then click on your Desktop and press CMD V to paste it

Once it’s copied to your dekstop rename it 10.8.dmg

Double click on the 10.8.dmg to mount it

Next, insert your USB Key and erase it using Disk Utility as follows

1. click on the device in Disk Utility

2. click on the Erase tab in the middle of the main window

3. choose Mac OS Extended (Journaled) from the format dropdown menu

4. name it Mountain

5. then click the Erase button

6. now click on the Restore tab

7. drag the Mac OS X Install ESD volume onto the Source field

8. drag the Mountain volume onto the Destination field and click on the Restore button

you may be prompted for your admin username and password, so enter this, then the task will start and should take around 15-20 minutes (depending on the speed of your USB2 key)

For a video taking you through the installation process once you have created your USB then click on the link below

Mountain Lion – Reformat & Clean Installation