Crash issue resolved: device pre/clear uses chown instead of chmod.