erase and reinstall OS X , mid 2010 mac mini.
I want to give my 2010 mac mini to a friend. I want to erase and reinstall Sierra or High Sierra. However after many many unsuccessful attempts ... keep getting OS X cannot be installed because the disk could not be unmounted. any help would be greatly appreciated.