I've been messing around with an external 2.5" SATA hard drive which I put in an empty USB enclosure in order to try to install Windows/Bootcamp on it and now the drive doesn't even show up in Disk utility.
I believe the reason is because I interrupted a failed installation/formatting in Windows or something. When I now attach the USB drive to my Mac it spins up but neither appears on the desktop, alerts me that the drive needs to be initialized or as I said above doesn't show up in Disk utiility (so I can't reformat it). By the way: regarding Disk utility it won't show anything (not even my regular Mac HD drive) until I physically disconnect the external USB drive by pulling out its USB cable.
So I've searched the web for help and tried out some Terminal commands. This is getting me somewhere, but I still haven't found a solution.
So this means the disk is physically there and identified as /dev/disk1 which is good!
Next I try to format the drive using these commands:
This appears to work, but after a while I get this error message:
I looked this up online and my understanding is that I need to properly unmount it first, so I try this:
At this stage I expect something to happen, but it still won't show up on the Finder desktop or in Disk utility.
Is there something else I can try in order to reformat/partition the drive?
I believe the reason is because I interrupted a failed installation/formatting in Windows or something. When I now attach the USB drive to my Mac it spins up but neither appears on the desktop, alerts me that the drive needs to be initialized or as I said above doesn't show up in Disk utiility (so I can't reformat it). By the way: regarding Disk utility it won't show anything (not even my regular Mac HD drive) until I physically disconnect the external USB drive by pulling out its USB cable.
So I've searched the web for help and tried out some Terminal commands. This is getting me somewhere, but I still haven't found a solution.
Code:
$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Mac HD 2.0 TB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *500.1 GB disk1
1: DOS_FAT_32 WINDOWS 500.1 GB disk1s1
$
So this means the disk is physically there and identified as /dev/disk1 which is good!
Next I try to format the drive using these commands:
Code:
$ diskutil eraseDisk JHFS+ Untitled /dev/disk1
This appears to work, but after a while I get this error message:
Code:
Started erase on disk1
Unmounting disk
Error: -69877: Couldn't open device
$
I looked this up online and my understanding is that I need to properly unmount it first, so I try this:
Code:
$ diskutil unmountDisk /dev/disk1
Unmount of all volumes on disk1 was successful
$
At this stage I expect something to happen, but it still won't show up on the Finder desktop or in Disk utility.
Is there something else I can try in order to reformat/partition the drive?