{"id":3096,"date":"2019-06-12T00:12:55","date_gmt":"2019-06-11T16:12:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3096"},"modified":"2022-05-23T14:03:23","modified_gmt":"2022-05-23T06:03:23","slug":"hdparm","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/hdparm","title":{"rendered":"hdparm\u547d\u4ee4 – \u663e\u793a\u4e0e\u8bbe\u5b9a\u786c\u76d8\u53c2\u6570"},"content":{"rendered":"\n
hdparm\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201chard disk parameters\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793a\u4e0e\u8bbe\u5b9a\u786c\u76d8\u53c2\u6570\u3002\u5bf9\u4e8e\u521d\u6b21\u63a5\u624b\u4e00\u5757\u786c\u76d8\u8bbe\u5907\uff0c\u4e86\u89e3\u76f8\u5173\u6027\u80fd\u5c5e\u6027\u6709\u5f88\u597d\u7684\u5e2e\u52a9\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>hdparm [\u53c2\u6570] \u8bbe\u5907\u540d<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u6307\u5b9a\u786c\u76d8\u7684\u76f8\u5173\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u4ec5\u663e\u793a\u6307\u5b9a\u786c\u76d8\u7684\u67f1\u9762\u3001\u78c1\u5934\u548c\u6247\u533a\u6570\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u8bc4\u4f30\u6307\u5b9a\u786c\u76d8\u7684\u8bfb\u53d6\u6548\u7387\uff1a<\/p>\n\n\n\n \u8bfb\u53d6\u6307\u5b9a\u786c\u76d8\u6240\u63d0\u4f9b\u7684\u786c\u4ef6\u89c4\u683c\u4fe1\u606f\uff1a<\/p>\n\n\n\n hdparm\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201chard disk parameters\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793a\u4e0e\u8bbe\u5b9a\u786c\u76d8\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3096"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3096"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3096\/revisions"}],"predecessor-version":[{"id":9935,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3096\/revisions\/9935"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a <\/td> \u8bbe\u5b9a\u8bfb\u53d6\u6587\u4ef6\u65f6\uff0c\u9884\u5148\u5b58\u5165\u5757\u533a\u7684\u5206\u533a\u6570<\/td><\/tr> -f <\/td> \u5c06\u5185\u5b58\u7f13\u51b2\u533a\u7684\u6570\u636e\u5199\u5165\u786c\u76d8\uff0c\u5e76\u6e05\u7a7a\u7f13\u51b2\u533a <\/td><\/tr> -g <\/td> \u663e\u793a\u786c\u76d8\u7684\u78c1\u8f68\uff0c\u78c1\u5934\uff0c\u78c1\u533a\u7b49\u53c2\u6570 <\/td><\/tr> -t<\/td> \u8bc4\u4f30\u786c\u76d8\u8bfb\u53d6\u6548\u7387<\/td><\/tr> -I <\/td> \u76f4\u63a5\u8bfb\u53d6\u786c\u76d8\u6240\u63d0\u4f9b\u7684\u786c\u4ef6\u89c4\u683c\u4fe1\u606f <\/td><\/tr> -X <\/td> \u8bbe\u5b9a\u786c\u76d8\u7684\u4f20\u8f93\u6a21\u5f0f <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# hdparm \/dev\/sdb<\/strong>\n\/dev\/sdb:\n multcount = 255 (on)\n IO_support = 1 (32-bit)\n readonly = 0 (off)\n readahead = 8192 (on)\n geometry = 2610\/255\/63, sectors = 41943040, start = 0\n<\/pre>\n\n\n\n
[root@linuxcool ~]# hdparm -g \/dev\/sdb<\/strong>\n\/dev\/sdb:\n geometry = 2610\/255\/63, sectors = 41943040, start = 0\n<\/pre>\n\n\n\n
[root@linuxcool ~]# hdparm -t \/dev\/sdb<\/strong>\n\/dev\/sdb:\n Timing buffered disk reads: 5386 MB in 3.00 seconds = 1795.12 MB\/sec\n<\/pre>\n\n\n\n
[root@linuxcool ~]# hdparm -X \/dev\/sdb<\/strong>\n\/dev\/sdb:\n setting xfermode to 0 (default PIO mode)\nSG_IO: bad\/missing sense data, sb[]: 70 00 05 00 00 00 00 12 00 00 00 00 24 00 00 c0 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00\n<\/pre>\n","protected":false},"excerpt":{"rendered":"