Ubuntu默认不自动挂载磁盘. 只是学习Bash使用,需优化如使用 # file: mountAll.sh # include color support # a list of variables containing color code in xterm256 . bash.colors # check if function isMounted { disk=$1 for d in `mount -l | awk '{print $1}' | sort |uniq`;do if tes