SOLUTION:
---
I have a SATA drive that drops out when it hits a bad sector: /dev/ada0 still exists, but the drive itself just returns an error for everything (including detection by smartctl)
I had been power cycling the drive to get it back, but then discovered that a soft OS reboot (shutdown -r now) suffices. So the BIOS (or perhaps FreeBSD at boot) is commanding the drive to reset, without a hard power cycle.
tl;dr What FreeBSD commands can I use to reset the drive?
(I'm trying to image it, and it has thousands of reported pending sectors, so multiple restarts are not really an option. Thanks.)
camcontrol devlist
# to see bus number, eg "at scbus1 target 0 lun 0 (ada0,pass0)" camcontrol reset 1
# change 1 to appropriate scbus number camcontrol rescan 1
# change 1 to appropriate scbus number---
I have a SATA drive that drops out when it hits a bad sector: /dev/ada0 still exists, but the drive itself just returns an error for everything (including detection by smartctl)
I had been power cycling the drive to get it back, but then discovered that a soft OS reboot (shutdown -r now) suffices. So the BIOS (or perhaps FreeBSD at boot) is commanding the drive to reset, without a hard power cycle.
tl;dr What FreeBSD commands can I use to reset the drive?
(I'm trying to image it, and it has thousands of reported pending sectors, so multiple restarts are not really an option. Thanks.)
Last edited: