Sabtu, 7 Mei 2011

get linux to rescan all the SATA ports and detect what's on them without reboot

echo - - - > /sys/class/scsi_host/hostN/scan

the N must be the number of the scsi host you want to scan
:)

u can get a list from lsscsi or /proc/scsi/scsi


for hardisk only
echo - - - | tee /sys/bus/scsi/drivers/sd/*/rescan

Tiada ulasan:

Catat Ulasan