Forum breadcrumbs – You are here:Tracston Community Forum – DevOps, Micro Services, Cloud, Infrastructure, Development, Monitoring and more…System: LinuxReset USB Device – External Disk
You need to log in to create posts and topics.
Reset USB Device – External Disk
moshe@moshe
#1 · 22/04/2022, 10:40 pm
Quote from moshe on 22/04/2022, 10:40 pmProblem
User disconnected USB External drive, drive is not umounted properly and when connecting back the disk is not readable
Solution
run the following command to reset USB PORTS 1,2,3
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
[ -e “$i” ] || continue
echo “${i##*/}” > “${i%/*}/unbind”
echo “${i##*/}” > “${i%/*}/bind”
done
Problem
User disconnected USB External drive, drive is not umounted properly and when connecting back the disk is not readable
Solution
run the following command to reset USB PORTS 1,2,3
Uploaded files:for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
[ -e “$i” ] || continue
echo “${i##*/}” > “${i%/*}/unbind”
echo “${i##*/}” > “${i%/*}/bind”
done
Click for thumbs down.0Click for thumbs up.0