[clue] Re-scanning SATA disks with rebooting

David L. Willson DLWillson at TheGeek.NU
Fri Jul 18 11:16:52 MDT 2014


# # This is purported to work in Debian* (which includes Ubuntu) 
# # It actually *did* work for me on Ubuntu Precise 
# # I found it at: http://www.debuntu.org/how-to-rescan-a-scsi-bus-without-rebooting/ 
# # Credit to Michael Zieher 

# for i in /sys/class/scsi_host/*; do echo '- - -' > $i/scan; done 


=== console log === 

root at pbuild04:~# lsb_release -v 
No LSB modules are available. 
root at pbuild04:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu 
DISTRIB_RELEASE=12.04 
DISTRIB_CODENAME=precise 
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS" 
root at pbuild04:~# lsb_release -c 
Codename: precise 
root at pbuild04:~# for i in /sys/class/scsi_host/*; do echo '- - -' > $i/scan; done 
root at pbuild04:~# 


-- 
David L. Willson 
Teacher, Engineer, Evangelist 
RHCE+Satellite CCAH Network+ A+ Linux+ LPIC-1 UbuntuCP NovellCLA 
Mobile 720-333-LANS(5267) 
http://sofree.us 

This is a good time for a r3VOLution. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20140718/4218a58d/attachment.html 


More information about the clue mailing list