This is an easy way to mount OS X installer packages (.dmg files) from the command line tool.
First of all, you must have your .DMG file, or you can download it still using the shell.
To download with command line use the curl command:
MacMini>curl http://web.address.pointing.to/the/file/to/download.dmg > myFile.dmg
Then to mount the image use the following command:
MacMini> hdid myFile.dmg
If you want to enable the windows-like “hibernation” feature on your mac mini, this is your post.
- Go to http://deepsleep.free.fr/ and download the .dmg
- Double click on the .dmg file.
- Double click on the “Deep Sleep” icon and install it.
- Launch Terminal application, located in the Utilities folder in the Application folder
- Now you have to execute some commands:
- With an administrator user type:
sudo pmset -a hibernatemode 3
- Check if the file located in /private/var/vm/sleepimage exists, if not repeat command 1 again.
- Now, you have to fix a little issue.
Go to your home folder, the to Library folder and then Widgets one.
- Select “Deep Sleep” and right-click on it. Choose “Package Contents”.
- In the terminal window type: cd /Library/Widgets/Deep\ Sleep.wdg/
- Now fix the issue: chown root:wheel deepsleep
- And again: chmod 4755 deepsleep
- At this point, everything should works.
Click on the widgets icon on the toolbar, then click on Deep sleep.
To wake up your mini, click on the power button on the back side.