SGDEFECTS(8)
SGDEFECTS(8) β get SCSI device defect lists π
okay bestie, welcome to the System Manager's Manual glow-up for sgdefects β the Unix utility thatβs lowkey obsessed with your SCSI deviceβs defect lists β¨
π NAME π
sgdefects β get SCSI device defect lists π
π¦ SYNOPSIS π¦
sgdefects [-aeilnvxI]
πΈ DESCRIPTION πΈ
sgdefects is a program that uses the SCSI Generic interface to send specific SCSI commands to obtain the device defect lists. Itβs useful for analyzing a device's grown defects over time to predict when a failure may occur. iconic behavior, honestly π₯
The SCSI Generic interface requires that the kernel .config file have CONFIG_CHR_DEV_SG set. no cap, thatβs the vibe check for your kernel config π
A log file, named sgdefects.log is created in the /var/log directory which logs the status of the functions and any errors. itβs giving βreceipts, but make it sysadminβ π§Ύπ
β¨ OPTIONS β¨
Command line options are described below.
-?β this option displays a summary of the commands accepted bysgdefects.-aβ causes the functions to be performed automatically on all connected SCSI devices. all of them. periodt.-eβ causes any file writes to be avoided, such as the log file. no writing, just vibes π«Ά-i Nβ autorun for the device at Index N, as shown in the'Num'column.-lβ by default, the primary defect list is only obtained if the kernel version is2.4or greater. if this option is specified, both the primary defect list and the grown defect list will be obtained, regardless of the kernel version.-nβ naming. by default, the device names are displayed as numeric sequences (/dev/sg0). this option shows the device names as alphabetic sequences (/dev/sga).-vβ causes the defect values to be listed in addition to the defect counts. the hex values will be written to the log filesgdefects.log.-xβ causes extra debug messages to be displayed. debug girlie mode activated π-Iβ starts the utility in Interactive mode, requiring user input. yes bestie, itβs gonna ask you things π¬
π«Ά SEE ALSO π«Ά
sgdiag(8) sgdskfl(8) sgmode(8)
π WARNINGS π
On some systems with older scsi drivers, the primary defect list cannot be returned without errors.
See http://sourceforge.net/projects/scsirastools/ for a bug list and any later versions of this utility.
π COPYRIGHT π
Copyright (C) 2001-2002 Intel Corp.
sgdefects is open source software. You can redistribute it and/or modify it under the terms of the BSD License. See the COPYING file included with this software package for more details regarding distribution.
sgdefects is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
π AUTHOR π
Andy Cress <arcress@users.sourceforge.net>
catch you later β this was SGDEFECTS(8), Version 1.1: 09 Nov 2001 πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms