How to restore your hard drive from a Time Machine backup
Whether you’re having major problems with your current hard drive or upgrading to a new Mac, Time Machine can help you get back to business.
- Power up your Mac and hold down the Command and R keys to enter the macOS Recovery Partition. Your Mac should boot to a screen that says macOS Utilities.
- Select Restore from Time Machine Backup and click Continue.
- Read the info on the Restore Your System page and click Continue.
- Select your Time Machine backup and click Continue.
- Select the most recent backup of your hard disk and click Continue. Your Mac will then restore the Time Machine backup; once it’s done it will restart.
If you’ve had to replace it with a stock drive that has nothing on it—not even macOS—you won’t be able to boot from the macOS Recovery Partition. But fear not, you can get the recovery rolling from the Time Machine backup disk itself: Just hold down the Option key when you start your Mac; you’ll be able to select the Time Machine backup disk as your startup drive, and go from there.
NB. I haven’t tested this yet, hopefully I’ll never have to. 🙂
A) Mute sound before shutting down.
B) Run the following command in Terminal
sudo nvram SystemAudioVolume=%80
c) To turn it back on again, run this command in terminal,
sudo nvram SystemAudioVolume=%01
By default the Library folder in your home folder is hidden, who knows why.
To unhide it, use the following commands.
1. Go to Finder.
2. Click on Go.
3. Click on Utilities.
4. Open Terminal.
chflags nohidden ~/Library
6. Press Return.
7. Go to the Library folder.
Setting the hostname on your Mac using scuttle
- Open a terminal.
- Type the following command to change the primary hostname of your Mac:
sudo scutil –set HostName <new host name>
- Type the following command to change the Bonjour hostname of your Mac:
sudo scutil –set LocalHostName <new host name>
- Optional: If you also want to change the computer name, type the following command:
sudo scutil –set ComputerName <new name>
sudo scutil --get HostName
sudo scutil --get LocalHostName
sudo scutil --get ComputerName
sudo /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install macOS Sierra.app
See the Apple Support page here : https://support.apple.com/en-us/HT201372
or watch this video
TIP: You will probably need to erase the HDD using the disk utility before installing.
If you do, chose what ever name you like, one of the Mac Formats and make sure to choose the GUID scheme.