How to make a clone of a bootable USB?

8

I have a bootable USB for OSX El Capitan that I got from a friend. I need to make a copy of that on my USB. How do I clone that or make it into an ISO and clone the ISO into my USB in Mac?

ajy

Posted 2015-10-04T21:49:02.810

Reputation: 512

It would seem any disk cloning software should work, whether Clonezilla, Acronis or other. See http://www.techsupportalert.com/best-free-drive-cloning-software.htm for some more.

– DrMoishe Pippik – 2015-10-04T23:42:30.393

Recommendations for Mac might be more helpful ;-) Super Duper or Carbon Copy Cloner are the usual suspects. Acronis does now make a Mac version, but I'm not very experienced with it - see http://www.macworld.com/article/2461362/drive-cloning-utilities-the-best-mac-apps-for-making-a-bootable-backup.html for a review of the others

– Tetsujin – 2015-10-05T09:40:40.810

Answers

8

You can use the standard UNIX utility dd. Plug in the flash drive you want to clone, open Terminal by searching in Spotlight (Command + Space) or by going to Applications → Utilities folder. Now type the following and hit enter:

dmesg | tail -n 10

Check what drive shows up. I'll use sd2 for this example (could be ada1, sda1, etc. in your case). Now execute:

sudo dd if=/dev/sd2 of=usb.img bs=4096

Unplug the flash drive when it's finished. Plug in the blank one and execute:

sudo dd if=usb.img of=/dev/sd2 bs=4096

to clone to the blank USB flash drive. It's good practice to verify that the second USB drive was assigned the same device name.

Ben M.

Posted 2015-10-04T21:49:02.810

Reputation: 540

5

You should be able to use Disk Utility included with your Mac. Connect both USB drives to your Mac. Then do the following.

  1. Click on the Restore tab
  2. Drag the source USB drive over to where it says Source
  3. Drag the destination USB drive over to where it says Destination
  4. Click the Restore button

dissolved

Posted 2015-10-04T21:49:02.810

Reputation: 181

1

You can use the standard UNIX utility dd. Plug in the flash drive you want to clone, open Terminal by searching in Spotlight (Command + Space) or by going to Applications → Utilities folder. Now type the following and hit enter:

diskutil list

This command will list all the connected internal and external disks. Look for the entry corresponding to your USB drive (it would be labeled as (external, physical)) and note the path of the file representing it. The path would be of the form /dev/disk_x_ where _x_ would be an integer. In my case, the path for the file representing the external USB disk was /dev/disk2. Now run the following command in Terminal.

sudo dd if=/dev/disk2 of=usb.img bs=4096

Here, if means input file, which is the path of the file representing the USB drive. of represents output file (image file) which would be created on your internal hard drive (specifically in the current directory).

Unplug the flash drive when it's finished. Plug in the blank one, determine the path of the filename corresponding to it as explained above (by running diskutil list) and execute:

sudo dd if=usb.img of=/dev/sd2 bs=4096

Again, the input file (if) is changed to the image file that we created in the last step and the output file (of) is changed to the path of the file representing the USB disk.

It would be good to verify that the second USB drive was assigned the same device name and check that the copy is identical to the original disk.

Nimesh Neema

Posted 2015-10-04T21:49:02.810

Reputation: 138