<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    wiflish
    Loving Life! Loving Coding!
    posts - 98,comments - 98,trackbacks - 0

    linux下硬盤檢測工具: smartmontools

    工具主頁: http://smartmontools.sourceforge.net/

    Smartmontools for SCSI硬盤: http://smartmontools.sourceforge.net/smartmontools_scsi.html

    smartctl命令參數(shù)列表:

    The following options are currently available for SCSI disks and tape drives unless otherwise noted:

    • -a | --all : equivalent to the combination -i -H -A -l error -l selftest options invoked in that order.

    • -A | --attributes : outputs the current device temperature, trip temperature, the number of elements in the grown defect list (GLIST) and data from the start-stop log page. Outputs some vendor specific information if available.

    • -C | --captive : used in conjunction with -t short or -t long options to do short or long self tests in the foreground. [Has no effect on tape drives.]

    • -d TYPE | --device=TYPE where TYPE is "ata", "scsi", "sat", "marvell", "3ware,N", "hpt,L/N[,M]" or "cciss,N". Overrides utility's guess about the class of the device which is based on the form of the nominated device's name.

    • -h | --help : outputs lengthy usage message and exits without any other action.

    • -H | --health : outputs single device health metric determined by the device manufacturer. This will be "OK" or a failure message.

    • -i | --info : outputs device identification information (derived from a SCSI INQUIRY command) and whether the device supports SMART (and temperature warnings) and if those facilities are currently enabled. The type of transport (e.g. FC or SAS) is also reported, if available. Some users have reported disks that report the wrong transport.

    • -l TYPE | --log=TYPE where TYPE is either "background", "selftest" or "error". Decodes are outputs the requested log. Note that --all does not include --log=background .

    • -q TYPE | --quietmode=TYPE where TYPE is either "silent" or "errorsonly". When the type is silent then nothing is output to the console but the exit status is set (so it is suitable for scripts). For "errorsonly" only errors are output to the console. The exit status is always set. [See the smartctl man page.]

    • -r TYPE | --report=TYPE where TYPE is either "ioctl[,<n>]" or "scsiioctl[,<n>]". Turns on low level debugging of issued commands and responses. These commands are issued through a system command called an "ioctl" in Unix. The debug can be for all issued commands (i.e. "ioctl") or only SCSI commands ("scsiioctl"). Optionally the TYPE can have a comma and a number post pended to increase the volume of debug. See this section for more details.

    • -s VALUE | --smart=VALUE where VALUE is either "on" or "off". Enables or disables SMART monitoring (and temperature warnings).

    • -S VALUE | --saveauto=VALUE where VALUE is either "on" or "off". Controls whether the error log values are preserved across device power cycles.

    • -t TEST | --test=TEST where TEST is either "offline", "short" or "long". Despite its name "offline" is a short foreground test that all SCSI devices should support. A "short" self test is typically 2 minutes or less. A "long" self test will be considerably longer than 2 minutes, depending on the size of the media. The estimated time that a "long" self test will take is printed after the "selftest" log (i.e. with '-l selftest' or '-a')

    • -V | --version : outputs the smartctl version number (including the cvs version of all its source files) and build information then exits without any other action.

    • -X | --abort : will terminate a background short or long self test. Usually the self test log notes that a self test has been aborted. [Has no effect on tape drives.]

    簡單用法:
    1、smartctl -a? <device>?????????檢查該設備是否已經(jīng)打開SMART技術(shù)。
    2、smartctl -s on <device>??? 如果沒有打開SMART技術(shù),使用該命令打開SMART技術(shù)。
    3、smartctl -t short <device>????后臺檢測硬盤,消耗時間短;
    ????? smartctl -t long <device>????? 后臺檢測硬盤,消耗時間長;
    ????? smartctl -C -t short <device> 前臺檢測硬盤,消耗時間短;
    ????? smartctl -C -t long <device>? 前臺檢測硬盤,消耗時間長。
    其實就是利用硬盤SMART的自檢程序。
    4、smartctl -X <device>? 中斷后臺檢測硬盤。
    5、smartctl -l selftest <device>? 顯示硬盤檢測日志。
    6、smartctl -l error <device> 顯示硬盤錯誤匯總。

    posted on 2006-12-02 17:42 想飛的魚 閱讀(5607) 評論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 国产亚洲综合久久| 亚洲一区二区观看播放| 精品多毛少妇人妻AV免费久久| 免费国产黄线在线观看| 国产精品久久亚洲不卡动漫| 国产一卡2卡3卡4卡2021免费观看 国产一卡2卡3卡4卡无卡免费视频 | 午夜免费国产体验区免费的| mm1313亚洲精品无码又大又粗| 苍井空亚洲精品AA片在线播放| 免费在线观看黄网| 一级做a爱片特黄在线观看免费看| 亚洲综合久久夜AV | 在线看片免费人成视频福利| 亚洲视频免费在线观看| 国拍在线精品视频免费观看 | 亚洲蜜芽在线精品一区| 免费h片在线观看网址最新 | 青青草97国产精品免费观看 | 亚洲午夜精品一区二区公牛电影院 | 国产成人麻豆亚洲综合无码精品| 97国免费在线视频| 久久亚洲精品国产精品| 野花高清在线观看免费完整版中文| 亚洲精品成a人在线观看☆| 亚洲 综合 国产 欧洲 丝袜 | 免费h成人黄漫画嘿咻破解版| 特黄特色的大片观看免费视频| 国产∨亚洲V天堂无码久久久| 美女裸身网站免费看免费网站| 99亚洲精品卡2卡三卡4卡2卡| 国产亚洲精品成人a v小说| 99热在线观看免费| 亚洲综合小说另类图片动图| 国产成人精品曰本亚洲79ren| 久久精品人成免费| 精品亚洲成a人在线观看| 亚洲av永久无码精品漫画| 热99re久久免费视精品频软件| 久久嫩草影院免费看夜色| 亚洲高清中文字幕| 亚洲精品无码久久不卡|