Hi Kappy, similar problem here
I used an external hard drive to install Yosemite (creating a single partition) and boot my computer from there, as I had a problem with my internal hard drive.
Now everything is working fine with my computer and I wanted to format the external hard drive. But it happens that when I try to erase the partition (Mac OS Extended or create new ones with disk utility I get the message "couldn't open disk" or "couldn't unmount disk". I've tried to verify/repair disk and, after a couple error messages ("This disk needs to be repaired" and "Disk utility can't repair disk, erase it") I'm in the starting point.
The "stop spotlight" thing didn't change anything, neither the "sudo diskutil unmountDisk force disk1" option
If I enter "diskutil list" in Terminal, what I get in response is:
| #: | TYPE NAME | SIZE | IDENTIFIER |
| 0: | GUID_partition_scheme | *121.3 GB disk0 |
| 1: | EFI EFI | 209.7 MB disk0s1 |
| 2: | Apple_CoreStorage | 120.5 GB disk0s2 |
| 3: | Apple_Boot Recovery HD | 650.0 MB disk0s3 |
/dev/disk1
| #: | TYPE NAME | SIZE | IDENTIFIER |
| 0: | Apple_HFS Yosemite HD | *120.1 GB disk1 |
| | Logical Volume on disk0s2 |
| | A8CE2C6C-716E-4527-B949-F8DE1CA75BEF |
| | Unencrypted |
/dev/disk2
| #: | TYPE NAME | SIZE | IDENTIFIER |
| 0: | GUID_partition_scheme | *4.0 TB | disk2 |
| 1: | EFI EFI | 209.7 MB disk2s1 |
| 2: | Apple_HFS fuco | 4.0 TB | disk2s2 |
| 3: | Apple_Boot Recovery HD | 650.0 MB disk2s3 |
Don't really know what to try now.