16
07月
2025
摘要:让linux系统重新扫描u盘
1、通过一下脚本查找u盘
files=( $(ls /sys/bus/usb/devices/*/manufacturer) )
for item in "${files[@]}"
do
echo "filename:${item}"
cat $item
done
2、重新扫描u盘
echo 0 | tee /sys/bus/usb/devices/2-1/authorized
echo 1 | tee /sys/bus/usb/devices/2-1/authorized
非特殊说明,本文版权归HPay所有,转载请注明出处.
本文类型: Java工具