User Tools

Site Tools


SATA/SCSI restart

Look at dmesg to know which scsi bus is the one that corresponds to the sata channel.

scsi5 : ahci

Then execute:

echo "0 0 0" > /sys/class/scsi_host/host5/scan

To disconnect a sata disk first umount all filesystems and then do:

echo 1 > /sys/block/sda/device/delete
sata_restart.txt · Last modified: 2021/01/31 23:55 (external edit)