Save device ID to disk