I had following issues:
During Mavericks install thru update from Mac App store:
- Update failed and system notified that hard disk was corrupt.
- Tried to boot in safe mode - not successful
- Tried to repair hard disk - not successful
- Tried to Erase hard disk - not successful (disk coulnd't be unmounted due to some running processes)
- Tried to Recover from Time machine backup - not successful
- Tried to continue install using <-- arrow -- not successful (same HD Failure error)
- Disk was in Locked mode due some running processes in Macintosh HD that Mavericks update had initiated causing disk lock and couldn't do anything about it.
Tried following to fix the issue:
- Formatted 16 GB usb drive in Mac Extended Journaled and installed Mavericks on it, looks like clean install needs only about 13 GB of space.
- Made this usb Startup Disk
- Started machine
- Checked what was causing Macnitosh HD to be in locked position by running following command in terminal without quotes("")
"lsof /Volumes/Machitosh/ HD\"
found four processes were running thus causing disk lock.
Noted down all PIDs and killed each of them using following command without quotes(""):
"cd /Volumes/Macintosh/ HD\"
"kill -9 <PID>"
Then:
- Tried to erase disk (Macintosh HD) using DiskUtil - Successful
- Started computer in Recovery Mode and installed Mavericks in Macintosh HD - Successful
- Made Macintosh HD as startup disk and started machine - Successful
- Imported files from Time Machine Backup - Successful
The whole process took about 5 hours last night.
It is not necessary to fully install Mavericks in external drive. You should be good with any bootable Mavericks usb drive.
http://osxdaily.com/2013/10/23/create-os-x-mavericks-install-drive/
Hope this helps people who are having similar issues.