Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
sg3_utils /
Delete
Unzip
Name
Size
Permission
Date
Action
AUTHORS
114
B
-rw-r--r--
2007-07-14 00:42
BSD_LICENSE
1.33
KB
-rw-r--r--
2019-01-11 06:11
COPYING
1.43
KB
-rw-r--r--
2021-10-28 23:35
COVERAGE
8.15
KB
-rw-r--r--
2021-08-30 21:15
CREDITS
5.93
KB
-rw-r--r--
2021-10-28 23:35
ChangeLog
87.17
KB
-rw-r--r--
2021-11-10 20:37
README
28.5
KB
-rw-r--r--
2021-06-23 18:09
README.sg_start
1.17
KB
-rw-r--r--
2021-10-28 23:35
Save
Rename
Hi, you can use sg_start to start (spin-up, 1) and stop (spin-down, 0) devices. I also offers a parameter (-s) to send a synchronize cache command to a device, so it should write back its internal buffers to the medium. Be aware that the Linux SCSI subsystem at this time does not automatically starts stopped devices, so stopping a device which is in use may have fatal results for you. So, you should apply with care. I use it in my shutdown script at the end (before the poweroff command): # SG_SHUG_NOS is set in my config file rc.config # SG_SHUT_NOS="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" if test -x /bin/sg_start; then if test "`basename $command`" = "reboot"; then for no in $SG_SHUT_NOS; do /bin/sg_start /dev/sg$no -s >/dev/null 2>&1; done else for no in $SG_SHUT_NOS; do /bin/sg_start /dev/sg$no -s 0 >/dev/null 2>&1; done fi fi Enjoy! Kurt Garloff Postscript ========== sg_start has been reworked to allow a block device (e.g. /dev/sda) in addition to the sg device name (e.g. /dev/sg0) in the lk 2.6 series. sg_start now has more command line options, see its man page. Douglas Gilbert <dgilbert at interlog dot com> 2004/5/8