While installing ESXI 6 update 2 on a Dell R410 I found that I could not create a datastore using the VSphere UI. assumed this was something to do with the Windows partition that was previously used on that disk so I decided I’d drop back into the CLI and delete the existing partition manually.

Here’s how you do this:

  1. Open VSphere.
  2. Go to Configuration
  3. Click Security templates on the left
  4. Click Properties
  5. Select SSH
  6. Click Options
  7. Click start
  8. Connect to your host using PuTTY or any other SSH client
  9. Move to the /dev/disks directory

    cd /dev/disks/

  10. List the files here


  11. Match the identifier with the datastore that you cant create in VSphere.
    For example: naa.6d4ae5208f875700172a910c5402c983
  12. Run partedUtil to delete that partition.

    partedUtil mklabel /dev/disks/naa.6d4ae5208f875700172a910c5402c983 msdos

  13. Go back into VSphere and create the datastore.
  14. Now disable the SSH service to clean up and close the security vulnerability that you’ve opened.

I hope that helps someone. It worked for me perfectly.