HddManager add swap device mounting, code optimization, error fix