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: 2011/01/16 09:15 by 192.168.2.20