User Tools

Site Tools


sata_restart

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/02/01 05:55 by 127.0.0.1