D7net Mini Sh3LL v1

 
OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /libx32/../share/snapd/../locale/ia/../../doc/info/../libroken18-heimdal/../usbmuxd/../liberror-perl/../grub2-common/../libjpeg8/../php7.4-mysql/../gnupg/../python3-apt/../netplan.io/../wget/../libcurl3-gnutls/../libthai-data/../python3-six/../screen/../maria/../libxaw7/../libmnl0/../netplan/../gdisk/../systemd-sysv/../grep/../udisks2/../libacl1/../libxmlb1/../libperl5.30/../automake/../libmpfr6/../libxext6/../libctf0/../libgusb2/../libubsan1/../dbus/../python3-distro/../libpcre3/../eatmydata/../libhogweed5/../btrfs-progs/../libnettle7/../libmaxminddb0/../gdisk/../liblsan0/../libsm6/../strace/../linux-modules-extra-5.4.0-198-generic/../vim-tiny/../libmpc3/../linux-headers-5.4.0-198/../sg3-utils/

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : //libx32/../share/snapd/../locale/ia/../../doc/info/../libroken18-heimdal/../usbmuxd/../liberror-perl/../grub2-common/../libjpeg8/../php7.4-mysql/../gnupg/../python3-apt/../netplan.io/../wget/../libcurl3-gnutls/../libthai-data/../python3-six/../screen/../maria/../libxaw7/../libmnl0/../netplan/../gdisk/../systemd-sysv/../grep/../udisks2/../libacl1/../libxmlb1/../libperl5.30/../automake/../libmpfr6/../libxext6/../libctf0/../libgusb2/../libubsan1/../dbus/../python3-distro/../libpcre3/../eatmydata/../libhogweed5/../btrfs-progs/../libnettle7/../libmaxminddb0/../gdisk/../liblsan0/../libsm6/../strace/../linux-modules-extra-5.4.0-198-generic/../vim-tiny/../libmpc3/../linux-headers-5.4.0-198/../sg3-utils/README.sg_start
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

AnonSec - 2021 | Recode By D7net