This afternoon I attempted to mount a .iso of Windows 7 to a bootable USB drive. It's about 370GiB, so more than enough to store it. I did the following to get myself into this mess. Note,/sda/disk2
is the right disk.
mightybee at mightybook.T-mobile.com in [~]
12:06:27 › sudo dd if=/Users/mightybee/Desktop/en_windows_10_multiple_editions_version_1511_x64_dvd_7223712.iso of=/dev/rdisk2 bs=1m
12:10:21 › diskutil eject /dev/disk2
After that, I was left with a disk that was reformatted to look like this:
The disk is not bootable and doesn't do what I wanted it to do. Furthermore, the disk is actually un-reformattable, unreadable, and practically unusable. When I run eraseDisk, I get this:
diskutil eraseDisk FAT32 WINSEVEN /dev/disk2
Unable to begin erase operation: The target disk is too small for this operation (-69771)
So my question is this: How do I regain the ability to erase and try another method to write to this disk?
Best Answer
Your command should work if your disk looks something like mine below (note disk1 vs disk2):
I would unmount the disk as opposed to ejecting it next time.
You can pull the drive and reconnect it and see if a lower level erase is possible.
I would expect you to use FAT32 with
eraseVolume
as opposed toeraseDisk
so you might need to repartition things first and then try erasing the volume or recreating it.After the above command - you should have something similar to the below with the exception of disk2 replacing disk1