Terminal – Terminal Sudo dd Error While Making a Bootable Drive

disk-utilityhard drivesudoterminalusb

So I have been trying to make a bootable Kali Linux USB drive for a while.

I am using the command:

sudo dd if=/Users/vanshyadav/Desktop/kali-linux-2018.1-amd64.iso of=/dev/disk2 bs=1m

It asks for my password once, and then gives me the error:

dd: /dev/disk2 bs=1m: Operation not supported

My drive looks like this:

enter image description here

I am following the steps in: Making a Kali Bootable USB Drive

I unmount the disk using:

diskutil unmountDisk /dev/disk2

It unmounts, but then it doesn't work.

How can I proceed?

Best Answer

It is very important to get the spaces correct in the command. Try cut-n-pasting the command from here:

sudo dd if=/Users/vanshyadav/Desktop/kali-linux-2018.1-amd64.iso of=/dev/disk2 bs=1m

Note that only regular spaces should be used.

You seem to have either forgotten the space, or used some other space-like character - therefore you get the weird error message where "/dev/disk2 bs=1m" is somehow used as the device name (i.e. the dd commands thinks that the bs parameter is somehow part of your device name).