1.將U盤(USB3.0)插入被測試機器,假定識別設備為sdc
2.創建vfat文件系統分區
/dev/sdb1分區容量大於30GB
umount /dev/sdc1
mkfs -t vfat /dev/sdc1
mkdir /upan
mount -t vfat /dev/sdc1 /upan
3.測試U盤寫入速度:
切入u盤目錄,測試寫入速度
cd /upan
dd if=/dev/zero of=./largefile bs=64k count=10000
4.測試U盤讀取速度:
sync && echo 3 > /proc/sys/vm/drop_caches
dd if=./largefile of=/dev/null bs=64k
重復上述測試各三次,取平均值