format a device and mount it