Added check for device mount before updating or verifying