- A standard "soft" solution (should work by default):
- Connect the HDD to the SATA controller (and make sure it doesn't get auto-recognized by the system).
- Force a rescan of SCSI buses:
# for h in /sys/class/scsi_host/host*/scan; do echo "- - -" > $h; done
- Ensure the drive has been recognized (check the
dmesg
logs, runlsblk
etc.) and enjoy it!
- A more "aggressive" method
(note: some old SATA controller made by VIA Technologies and managed bysata_via
kernel driver is used here for sample purposes; should work with any recent 2.6+ Linux kernel versions):- To prevent any data loss, flush caches & unmount all the mounted partitions for all the drives connected to any VIA SATA controller(s) installed on the affected system!
- Remove the kernel driver module (verbosity is helpful sometimes):
# modprobe -v -r sata_via
- Physically attach (or detach) any drives to the VIA SATA controller.
- Re-insert the kernel module:
# modprobe -v sata_via
- Enjoy!
---
Last updated: 2014-06-20
No comments:
Post a Comment