自动挂载NTFS磁盘脚本

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

#!/bin/bash

echo "-- Mount all locate disks to this path --"

test -d Setup || mkdir Setup 
mount -t ntfs-3g /dev/sda5 Setup && echo " Created Setup/" 

test -d Study || mkdir Study
mount -t ntfs-3g /dev/sda6 Study && echo " Created Study/" 

test -d Private || mkdir Private
mount -t ntfs-3g /dev/sda7 Private && echo " Created Private/" 

test -d Happy || mkdir Happy
mount -t ntfs-3g /dev/sda8 Happy && echo " Created Happy/"