H
You can use dd command to:
Beneath the surface of OS X is an entire world that you can access only from the command line. Terminal (in your /Applications/Utilities folder) is the default gateway to that command line on a Mac. Sep 29, 2013 This quick tutorial will show you people who are used to using Windows how to find the equivalent of the Command Prompt on Mac OS X. This will be useful when converting the Apple Mac Operating. Both Mac OS X and Mac OS X Server include Terminal, an application you can use to start a UNIX shell command-line session on the local server or on a remote server. To open Terminal: mClick the Terminal icon in the dock or double-click the application icon in the Finder (in /Applications/Utilities). Jun 12, 2013 Download and install Mac OS X 10.6.8 Update Combo v1.1. Reinstalling Lion/Mountain Lion Without Erasing The Drive Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Nov 24, 2011 For example from a cmd.exe (Windows) prompt you can do: excel.exe /r 'c:My Folderbook1.xlsx' I'm looking for the equivalent abilities, but for the Mac (2011) Office product on OS X.
ow do I create or write to images to disk on Apple Mac OS X (macOS) Unix operating system with dd command?You can use dd command to:
ADVERTISEMENTS
[donotprint][/donotprint]
- Create new disk images from USB or SD card
- Write images to disk or USB or SD card
You also need to use diskutil command manipulates the structure of local disks including listing and unmouting disks before you create or write images to disk.
Please be careful when running the following commands, as you might destroy important data or disk.
How To Create Disk Image on Mac OS X With dd Command
The procedure is as follows:
- Open the Terminal app
- Get disk list with the diskutil list
- To create the disk image: dd if=/dev/DISK of=image.dd bs=512
- To write the disk image: dd if=image.dd of=/dev/DISK
Let us see all commands in details.
1. Create disk image with dd command
Open the Terminal application and type the following command to list disks:
Sample outputs:
In this example my SD card size is 4GB and located at /dev/disk2.
$ diskutil list
Sample outputs:
In this example my SD card size is 4GB and located at /dev/disk2.
2. Unmount the disk
Unmount the disk called /dev/disk2:
Sample outputs:
$ diskutil unmountDisk /dev/disk2
Sample outputs:
Line
3. Create the disk image with dd
Finally create the disk image of the entire disk /dev/disk2:
OR
OR
Sample outputs:
$ sudo dd if=/dev/disk2 of=backup.my.sdcard-18-oct-2015.img.dd bs=512
OR
$ sudo dd if=/dev/disk2 of=backup.my.sdcard-18-oct-2015.img.dd bs=1m
OR
$ sudo dd if=/dev/disk2 of=foo.bar.img.dd bs=64k
Sample outputs:
You can create compressed disk image as follows:
Where,
$ sudo dd if=/dev/disk2 bs=64K | gzip -c > backup.disk.img.dd.gz
Where,
And for making dual boot system, I try follow steps to rename bootmgwf.efi into bootmgwf-orig.efi ^^. After that for make partition hardisk I use Minitool Partition Wizard to make partition hardisk can be read for OS X System. I got stuck at section 4.7. When I tried to install Windows 10, I got“windows setup could not create a new partition or locate an existing one”.I think it could not over-write the EFI partition created by MacOS or Clover. Mac sierra start menu for windows 10. Then I install OS X El Capitan (Include Clover Bootloader) and use partition hardisk space that I have create before.
- dd : Command name
- if=/dev/disk2 : Input disk name
- of=backup.my.sdcard-18-oct-2015.img.dd : Output image name
- bs=64k or bs=1m or bs=512 : Set both input and output block size to n bytes.
- gzip -c > backup.disk.img.dd.gz : Create compressed disk image using gzip
You can verify your disk with file command:
$ file disk-name-here.img.dd
How do I write dd images to disk again?
Mac Command Line List
The syntax is as follows:
$ diskutil list
$ diskutil unmountDisk /dev/disk2
$ sudo dd if=backup.my.sdcard-18-oct-2015.img.dd of=/dev/disk2
### Restores compressed image and write /dev/disk2 ###
$ sudo sh -c 'gunzip -c backup.disk.img.dd.gz | dd of=/dev/disk2'
See dd command man page for more info.
Not a fan of command line?
You can use ‘Disk Utility’ GUI tool to create and restore images. First ‘Open Disk Utility’ by visiting the Applications >Utilities folder:
Line For Macbook
Choose File > New > Image from “Untitled”. Next, enter a name for the disk image, then choose where to save it:
Etcher app
Etcher is an SD card flasher app that is simple for end users, extensible for developers, and works on any platform including macOS. However, it is written in JS, HTML, node.js and Electron. So if you want to download external and fat app go here. Personally, I recommend and use the CLI or inbuilt apps.
The Mac OS X Command Line
Unix Under the Hood
- Author: Kirk McElhearn
- Publisher: John Wiley & Sons
- ISBN: 9780470113851
- Category: Computers
- Page: 464
- View: 8829