{"id":26784,"date":"2023-01-02T18:06:35","date_gmt":"2023-01-02T17:06:35","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=26784"},"modified":"2023-01-02T18:06:41","modified_gmt":"2023-01-02T17:06:41","slug":"usb-harddisk-bricked-be-carefull-with-hdparm-and-the-parameter-s-1","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/26784\/usb-harddisk-bricked-be-carefull-with-hdparm-and-the-parameter-s-1\/","title":{"rendered":"USB harddisk bricked, be carefull with hdparm and the parameter &#8220;-S 1&#8221;"},"content":{"rendered":"<p>How I broke my USB hard drive with one command.<\/p>\n<p><!--more--><\/p>\n<p>It is rare, but possible, that software can damage hardware. I had to make this experience with my USB hard drive from Western Digital. Therefore, this article is a small warning.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/26784\/usb-harddisk-bricked-be-carefull-with-hdparm-and-the-parameter-s-1\/#The_stupid_idea\" >The stupid idea<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/26784\/usb-harddisk-bricked-be-carefull-with-hdparm-and-the-parameter-s-1\/#Salvage_anchor_remove_and_connect_via_Sata\" >Salvage anchor: remove and connect via Sata<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/26784\/usb-harddisk-bricked-be-carefull-with-hdparm-and-the-parameter-s-1\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"The_stupid_idea\"><\/span>The stupid idea<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I had already been using the USB hard disk as a backup disk for a few years. I experimented a bit, encrypted the drive with VeraCrypt and connected it to my server. It worked, but the disk wouldn&#8217;t go into standby.<\/p>\n<p>So I got the idea to change the energy settings with the &#8220;hdparm&#8221; command. For this, there is the parameter &#8220;S&#8221;, which can be given different values. The description reads that a value between 1 and 240 is a multiple of 5 minutes. Values beyond that (241 &#8211; 251) are multiples of 30 minutes.<\/p>\n<p>Unfortunately, the setting &#8220;1&#8221; is somewhat special. Instead of 5 minutes, the hard disk is really put to sleep here and can only be started up again by a special command from the operating system. A warning is also issued explicitly when the command is called.<\/p>\n<pre>\r\nsudo hdparm -s 1 -S 4 \/dev\/sdb\r\n\r\n\/dev\/sdb:\r\nUse of -s1 is VERY DANGEROUS.\r\nThis requires BIOS and kernel support to recognize\/boot the drive.\r\nPlease supply the --yes-i-know-what-i-am-doing flag if you really want this.\r\nProgram aborted.\r\n<\/pre>\n<p>So in order to be able to execute the command at all, I had to pass the parameter &#8220;&#8211;yes-i-know-what-i-am-doing&#8221;. Here I should have been suspicious. Nevertheless, I entered the command. For the time being, everything continued to run. Since the hard disk still did not go into stand-by, I restarted the computer.<\/p>\n<p>That was the last time the hard disk was running.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_1.jpg\" alt=\"\" width=\"1000\" height=\"554\" class=\"aligncenter size-full wp-image-26780\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_1.jpg 1000w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_1-300x166.jpg 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_1-768x425.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<p>When I plugged it in, the LED came on, but the motor of the hard disk did not start. To do this, the hard drive would first have to get the special command from the operating system, but this doesn&#8217;t work via USB. I haven&#8217;t found a solution yet, only people who <a href=\"https:\/\/serverfault.com\/questions\/1095440\/hdparm-s-1-on-usb-disk-bricked-usb-drive-is-on-power-on-in-standby-mode\">have the same problem<\/a>.<\/p>\n<p>The disk or the USB device appeared in the device manager from time to time. It no longer appeared in the disk management. In short, the disk was and is broken. No chance of accessing the data, at least not via USB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_2.png\" alt=\"\" width=\"852\" height=\"471\" class=\"aligncenter size-full wp-image-26778\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_2.png 852w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_2-300x166.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/hdparm_2-768x425.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Salvage_anchor_remove_and_connect_via_Sata\"><\/span>Salvage anchor: remove and connect via Sata<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There is a small chance if the hard drive can be removed from the USB enclosure. In this case, you can try to connect the hard disk to a desktop computer normally via Sata. If the hard disk now starts up and is recognised, the &#8220;hdparm&#8221; setting can be reversed.<\/p>\n<p>Unfortunately, this method does not work with WD hard drives. These do not have a Sata connection, but a direct USB connection or circuit board. There are instructions for tinkering, but they require a lot of soldering. This is also a small hint when buying a hard drive. The success for data recovery is usually better if the USB hard drive has an internal Sata connector.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I did not suffer any major damage, except that I had to buy a new hard drive. The data was gone, but I always have the data on at least two USB hard drives each. Nevertheless, I am a little annoyed about my stupidity.<\/p>\n\n<div class=\"aawp\">\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--bestseller aawp-product--ribbon\"  data-aawp-product-asin=\"B0GHRK6MWF\" data-aawp-product-id=\"110939\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"Intenso 2,5  Portable Hard Drive 1TB - Externe Festplatte mit Super Speed USB 3.2 Gen 1x1 \u2013 Schneller Speicher im kompakten Design 5400 U\/min 8 MB Cache Plug &amp; Play Certified refurbished schwarz\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 1<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/B0GHRK6MWF?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Intenso 2,5' Portable Hard Drive 1TB - Externe Festplatte mit Super Speed...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31PS91IZypL._SL160_.jpg\" alt=\"Intenso 2,5' Portable Hard Drive 1TB - Externe Festplatte mit Super Speed...\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/B0GHRK6MWF?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Intenso 2,5' Portable Hard Drive 1TB - Externe Festplatte mit Super Speed...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            Intenso 2,5\" Portable Hard Drive 1TB - Externe Festplatte mit Super Speed...        <\/a>\n        <div class=\"aawp-product__description\">\n            <ul><li>Ultraschnelle Daten\u00fcbertragung durch modernes USB 3.2 Gen 1x1 \u2013 so sichern Sie gro\u00dfe Dateien...<\/li><li>Kompaktes 2,5 Zoll Geh\u00e4use bietet maximale Mobilit\u00e4t \u2013 die Festplatte ist leicht und handlich...<\/li><li>Einfache Plug & Play Funktionalit\u00e4t erm\u00f6glicht sofortige Nutzung \u2013 ohne Installation starten Sie...<\/li><\/ul>        <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n            \n                            <span class=\"aawp-product__price aawp-product__price--current\">61,87 EUR<\/span>\n            \n            <a href=\"https:\/\/www.amazon.de\/gp\/prime\/?tag=ekiwide0b-21\" title=\"Amazon Prime\" rel=\"nofollow noopener sponsored\" target=\"_blank\" class=\"aawp-check-prime\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/plugins\/aawp\/assets\/img\/icon-check-prime.svg\" height=\"16\" width=\"55\" alt=\"Amazon Prime\" \/><\/a>        <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/B0GHRK6MWF?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=usb%20hard%20drive%202.5%20inch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--bestseller aawp-product--ribbon\"  data-aawp-product-asin=\"B00BYNCTOW\" data-aawp-product-id=\"109845\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"Intenso Memory Case 2 TB Externe Festplatte  6,35 cm  2,5 Zoll  5400 U\/min 8 MB Cache USB 3.0  schwarz 6021580 2tb  usb 3.0\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 2<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/B00BYNCTOW?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Intenso Memory Case 2 TB Externe Festplatte (6,35 cm (2,5 Zoll) 5400 U\/min...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/31gMEeZzjnL._SL160_.jpg\" alt=\"Intenso Memory Case 2 TB Externe Festplatte (6,35 cm (2,5 Zoll) 5400 U\/min...\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/B00BYNCTOW?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Intenso Memory Case 2 TB Externe Festplatte (6,35 cm (2,5 Zoll) 5400 U\/min...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            Intenso Memory Case 2 TB Externe Festplatte (6,35 cm (2,5 Zoll) 5400 U\/min...        <\/a>\n        <div class=\"aawp-product__description\">\n            <ul><li>2,5 Zoll (6,35 cm) externe Festplatte, flaches Kunststoffgeh\u00e4use, FAT32, Plug & Play, 5400 U\/min...<\/li><li>Sofort startklar ohne Installation (Plug & Play), SuperSpeed USB Anschluss 3.2 (abw\u00e4rtskompatibel...<\/li><li>Max. Datentransferrate: Lesen (85 MB\/s), Schreiben (75 MB\/s)<\/li><\/ul>        <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n            \n                            <span class=\"aawp-product__price aawp-product__price--current\"><\/span>\n            \n                    <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/B00BYNCTOW?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=usb%20hard%20drive%202.5%20inch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n            \n            \n<div class=\"aawp-product aawp-product--horizontal aawp-product--bestseller aawp-product--ribbon\"  data-aawp-product-asin=\"B0DWK8XFJ4\" data-aawp-product-id=\"109473\" data-aawp-tracking-id=\"ekiwide0b-21\" data-aawp-product-title=\"Toshiba Canvio Flex 2TB \u2013 Portable 2.5\u2019\u2019 External Hard Drive  HDD  for Mac Windows PC Smartphone and Tablet Use Compatible with Most USB-C and USB-A Devices Warm Silver  HDTX220ESCAA\">\n\n    <span class=\"aawp-product__ribbon aawp-product__ribbon--bestseller\">Bestseller No. 3<\/span>\n    <div class=\"aawp-product__thumb\">\n        <a class=\"aawp-product__image-link\"\n           href=\"https:\/\/www.amazon.de\/dp\/B0DWK8XFJ4?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Toshiba Canvio Flex 2TB \u2013 Portable 2.5\u2019\u2019 External Hard Drive (HDD...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            <img decoding=\"async\" class=\"aawp-product__image\" src=\"https:\/\/m.media-amazon.com\/images\/I\/41KhXV7DWcL._SL160_.jpg\" alt=\"Toshiba Canvio Flex 2TB \u2013 Portable 2.5\u2019\u2019 External Hard Drive (HDD...\"  \/>\n        <\/a>\n\n            <\/div>\n\n    <div class=\"aawp-product__content\">\n        <a class=\"aawp-product__title\" href=\"https:\/\/www.amazon.de\/dp\/B0DWK8XFJ4?tag=ekiwide0b-21&linkCode=ogi&th=1&psc=1&keywords=usb%20hard%20drive%202.5%20inch\" title=\"Toshiba Canvio Flex 2TB \u2013 Portable 2.5\u2019\u2019 External Hard Drive (HDD...\" rel=\"nofollow noopener sponsored\" target=\"_blank\">\n            Toshiba Canvio Flex 2TB \u2013 Portable 2.5\u2019\u2019 External Hard Drive (HDD...        <\/a>\n        <div class=\"aawp-product__description\">\n            <ul><li>Ein Laufwerk. Viele Ger\u00e4te. M\u00f6glicherweise besitzen Sie schon so einige Ger\u00e4te und sind auch noch...<\/li><li>Zukunftssicherer Speicher Mit der Canvio Flex, die direkt an jedes kompatible USB-f\u00e4hige Ger\u00e4t...<\/li><li>Smartphone-Backups leicht gemacht Ein Leben ohne Smartphone ist kaum noch vorstellbar. Es ist uns...<\/li><\/ul>        <\/div>\n    <\/div>\n\n    <div class=\"aawp-product__footer\">\n\n        <div class=\"aawp-product__pricing\">\n            \n                            <span class=\"aawp-product__price aawp-product__price--current\"><\/span>\n            \n                    <\/div>\n\n                <a class=\"aawp-button aawp-button--buy aawp-button--icon aawp-button--icon-black\" href=\"https:\/\/www.amazon.de\/dp\/B0DWK8XFJ4?tag=ekiwide0b-21&#038;linkCode=ogi&#038;th=1&#038;psc=1&#038;keywords=usb%20hard%20drive%202.5%20inch\" title=\"Buy on Amazon\" target=\"_blank\" rel=\"nofollow noopener sponsored\">Buy on Amazon<\/a>\n            <\/div>\n\n<\/div>\n\n    \n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How I broke my USB hard drive with one command.<\/p>\n","protected":false},"author":1,"featured_media":26783,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1551],"tags":[],"class_list":["post-26784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hardware-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=26784"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26784\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/26783"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=26784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=26784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=26784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}