2025-07-16 07:25:27
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

延伸阅读
  1. 上一篇:JDK
  2. 下一篇:Nginx
发表评论