卸载当前挂载的盘符

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/bin/bash

DEVDIR=/var/run/media/freelh

echo "开始卸载..."
for i in `ls $DEVDIR`
do
	echo "开始卸载$i..."
	sudo umount $DEVDIR/$i
	echo "卸载$i完成..."
done