{"id":1432,"date":"2024-11-26T16:21:52","date_gmt":"2024-11-26T15:21:52","guid":{"rendered":"https:\/\/daniel.liljeberg.io\/?p=1432"},"modified":"2024-11-26T16:21:54","modified_gmt":"2024-11-26T15:21:54","slug":"make-your-hdd-blink","status":"publish","type":"post","link":"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/","title":{"rendered":"Make your HDD blink"},"content":{"rendered":"<p class=\"wp-block-paragraph\">If you are like me and have a server with a bunch of disks running at home you might have had the need to identify one of the at times. Perhaps it started reporting errors or you wanted to replace it with a larger disk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have seen multiple programs to make your HDD&#8217;s led blink, but since I already had <strong>smartmontools<\/strong> installed I noticed I could make it happen using <strong>smartctl<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This small shell script enables you to make a given HDD&#8217;s led blink. Name it <strong>hddblink<\/strong> or something.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\nwhile true; do sudo smartctl -a $1 > \/dev\/null 2>&amp;1; echo -n \".\"; sleep 1; done<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can use <strong>hddblink \/dev\/sdd<\/strong> for instance to make the led of that drive flash on and off.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\t\t\t<input type=\"hidden\" id=\"wplinkpress-user-email\" value=\"\" \/>\n<input type=\"hidden\" id=\"wplinkpress-authorize-url\" value=\"https:\/\/www.linkedin.com\/oauth\/v2\/authorization?response_type=code&client_id=77uzug7iq2dnd2&redirect_uri=https%3A%2F%2Fdaniel.liljeberg.io%2Fauthorize-linkedin%2F&state=https%3A%2F%2Fdaniel.liljeberg.io%2Fsv%2Fwp-json%2Fwp%2Fv2%2Fposts%2F1432&scope=r_liteprofile%20r_emailaddress%20w_member_social\" \/>\n<input type=\"hidden\" id=\"wplinkpress-post-id\" value=\"1432\" \/>\n<div class=\"ui wplinkpress comments\">\n<h3 class=\"ui dividing header\">Comments<\/h3>\n<form id=\"add-wplinkpress-comment\" method=\"POST\" action=\"\"> \n<div class=\"comment add-comment\">\n\t<a class=\"avatar\"><img src=\"https:\/\/daniel.liljeberg.io\/wp-content\/plugins\/wplinkpress\/assets\/media\/non-user-icon.jpg\" \/><\/a>\n\t<div class=\"content\">\n\t<textarea id=\"wplinkpress-comment-text-0\" class=\"wplinkpress-comment-text\" style=\"width:100%;\" placeholder=\"Add a comment...\"><\/textarea>\n\t<div class=\"bottom-layer\">\n\t\t<div class=\"comment-atts\" style=\"float:left;\">\n\t\t\t\t<div class=\"feed-share\">\n\t\t<label class=\"switch tips\">\n\t\t\t<input type=\"checkbox\" id=\"toggle-linkedin-feed\" >\n        \t<span class=\"slider round\"><\/span>\n\t\t<\/label>\n\t\t<span>Share on activity feed<\/span>\n\t\t<\/div>\n\t\t<\/div>\n\t<div class=\"wplinkpress_buttons\">\n\t\t<button id=\"authorize_comment_0\" class=\"authorize_comment\" disabled=\"disabled\">Post with LinkedIn<\/button>\n\t\t<\/div>\n\t<\/div>\n\t<\/div>\n<\/div>\n<input type=\"hidden\" name=\"trp-form-language\" value=\"sv\"\/><\/form>\n<h3 class=\"ui dividing header\"><span class=\"wplinkpress-brand\">Powered by WP LinkPress<\/span><\/h3>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>If you are like me and have a server with a bunch of disks running at home you might have had the need to identify one of the at times. Perhaps it started reporting errors or you wanted to replace it with a larger disk. I have seen multiple programs to make your HDD&#8217;s led&hellip;&nbsp;<a href=\"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Make your HDD blink<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":362,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","footnotes":""},"categories":[4,12],"tags":[],"class_list":["post-1432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Make your HDD blink - Daniel Liljeberg<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Make your HDD blink - Daniel Liljeberg\" \/>\n<meta property=\"og:description\" content=\"If you are like me and have a server with a bunch of disks running at home you might have had the need to identify one of the at times. Perhaps it started reporting errors or you wanted to replace it with a larger disk. I have seen multiple programs to make your HDD&#8217;s led&hellip;&nbsp;Read More &raquo;Make your HDD blink\" \/>\n<meta property=\"og:url\" content=\"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/\" \/>\n<meta property=\"og:site_name\" content=\"Daniel Liljeberg\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-26T15:21:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T15:21:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1827\" \/>\n\t<meta property=\"og:image:height\" content=\"1370\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Daniel Liljeberg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Skriven av\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Liljeberg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Ber\u00e4knad l\u00e4stid\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/\"},\"author\":{\"name\":\"Daniel Liljeberg\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#\\\/schema\\\/person\\\/e2c3fe10971c37cff2669f5688834cd7\"},\"headline\":\"Make your HDD blink\",\"datePublished\":\"2024-11-26T15:21:52+00:00\",\"dateModified\":\"2024-11-26T15:21:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/\"},\"wordCount\":116,\"publisher\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#\\\/schema\\\/person\\\/e2c3fe10971c37cff2669f5688834cd7\"},\"image\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/NewServerInOperation.jpg\",\"articleSection\":[\"Development\",\"Linux\"],\"inLanguage\":\"sv-SE\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/\",\"url\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/\",\"name\":\"Make your HDD blink - Daniel Liljeberg\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/NewServerInOperation.jpg\",\"datePublished\":\"2024-11-26T15:21:52+00:00\",\"dateModified\":\"2024-11-26T15:21:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#primaryimage\",\"url\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/NewServerInOperation.jpg\",\"contentUrl\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/NewServerInOperation.jpg\",\"width\":1827,\"height\":1370,\"caption\":\"A 24 drive bay server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/2024\\\/11\\\/26\\\/make-your-hdd-blink\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/daniel.liljeberg.io\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make your HDD blink\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#website\",\"url\":\"https:\\\/\\\/daniel.liljeberg.io\\\/\",\"name\":\"Daniel Liljeberg\",\"description\":\"The is no place like 127.0.0.1\",\"publisher\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#\\\/schema\\\/person\\\/e2c3fe10971c37cff2669f5688834cd7\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/daniel.liljeberg.io\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sv-SE\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/#\\\/schema\\\/person\\\/e2c3fe10971c37cff2669f5688834cd7\",\"name\":\"Daniel Liljeberg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/DanielLiljeberg.png\",\"url\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/DanielLiljeberg.png\",\"contentUrl\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/DanielLiljeberg.png\",\"width\":424,\"height\":440,\"caption\":\"Daniel Liljeberg\"},\"logo\":{\"@id\":\"https:\\\/\\\/daniel.liljeberg.io\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/DanielLiljeberg.png\"},\"description\":\"Agile practitioner and advocate. Strong believer in the future of agile organizations, businesses and teams. Got my first computer, a C64, at age 7 and computers has been part of my life since then. Working professionally with development since the early 2000\u2019s in a vast array of technologies and roles. Social, easy going, fun loving guy with an appetite for new challenges and new knowledge who has been \u201cthere\u201d and done \u201cthat\u201d. That\u2019s a good way to sum it all up. Married and father of three kids. All true blessings ;)\",\"sameAs\":[\"https:\\\/\\\/daniel.liljeberg.io\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/danielliljeberg\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Make your HDD blink - Daniel Liljeberg","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/","og_locale":"sv_SE","og_type":"article","og_title":"Make your HDD blink - Daniel Liljeberg","og_description":"If you are like me and have a server with a bunch of disks running at home you might have had the need to identify one of the at times. Perhaps it started reporting errors or you wanted to replace it with a larger disk. I have seen multiple programs to make your HDD&#8217;s led&hellip;&nbsp;Read More &raquo;Make your HDD blink","og_url":"https:\/\/daniel.liljeberg.io\/sv\/2024\/11\/26\/make-your-hdd-blink\/","og_site_name":"Daniel Liljeberg","article_published_time":"2024-11-26T15:21:52+00:00","article_modified_time":"2024-11-26T15:21:54+00:00","og_image":[{"width":1827,"height":1370,"url":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg","type":"image\/jpeg"}],"author":"Daniel Liljeberg","twitter_card":"summary_large_image","twitter_misc":{"Skriven av":"Daniel Liljeberg","Ber\u00e4knad l\u00e4stid":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#article","isPartOf":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/"},"author":{"name":"Daniel Liljeberg","@id":"https:\/\/daniel.liljeberg.io\/#\/schema\/person\/e2c3fe10971c37cff2669f5688834cd7"},"headline":"Make your HDD blink","datePublished":"2024-11-26T15:21:52+00:00","dateModified":"2024-11-26T15:21:54+00:00","mainEntityOfPage":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/"},"wordCount":116,"publisher":{"@id":"https:\/\/daniel.liljeberg.io\/#\/schema\/person\/e2c3fe10971c37cff2669f5688834cd7"},"image":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#primaryimage"},"thumbnailUrl":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg","articleSection":["Development","Linux"],"inLanguage":"sv-SE"},{"@type":"WebPage","@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/","url":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/","name":"Make your HDD blink - Daniel Liljeberg","isPartOf":{"@id":"https:\/\/daniel.liljeberg.io\/#website"},"primaryImageOfPage":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#primaryimage"},"image":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#primaryimage"},"thumbnailUrl":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg","datePublished":"2024-11-26T15:21:52+00:00","dateModified":"2024-11-26T15:21:54+00:00","breadcrumb":{"@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/"]}]},{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#primaryimage","url":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg","contentUrl":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2021\/01\/NewServerInOperation.jpg","width":1827,"height":1370,"caption":"A 24 drive bay server"},{"@type":"BreadcrumbList","@id":"https:\/\/daniel.liljeberg.io\/2024\/11\/26\/make-your-hdd-blink\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/daniel.liljeberg.io\/"},{"@type":"ListItem","position":2,"name":"Make your HDD blink"}]},{"@type":"WebSite","@id":"https:\/\/daniel.liljeberg.io\/#website","url":"https:\/\/daniel.liljeberg.io\/","name":"Daniel Liljeberg","description":"The is no place like 127.0.0.1","publisher":{"@id":"https:\/\/daniel.liljeberg.io\/#\/schema\/person\/e2c3fe10971c37cff2669f5688834cd7"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/daniel.liljeberg.io\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sv-SE"},{"@type":["Person","Organization"],"@id":"https:\/\/daniel.liljeberg.io\/#\/schema\/person\/e2c3fe10971c37cff2669f5688834cd7","name":"Daniel Liljeberg","image":{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2020\/12\/DanielLiljeberg.png","url":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2020\/12\/DanielLiljeberg.png","contentUrl":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2020\/12\/DanielLiljeberg.png","width":424,"height":440,"caption":"Daniel Liljeberg"},"logo":{"@id":"https:\/\/daniel.liljeberg.io\/wp-content\/uploads\/2020\/12\/DanielLiljeberg.png"},"description":"Agile practitioner and advocate. Strong believer in the future of agile organizations, businesses and teams. Got my first computer, a C64, at age 7 and computers has been part of my life since then. Working professionally with development since the early 2000\u2019s in a vast array of technologies and roles. Social, easy going, fun loving guy with an appetite for new challenges and new knowledge who has been \u201cthere\u201d and done \u201cthat\u201d. That\u2019s a good way to sum it all up. Married and father of three kids. All true blessings ;)","sameAs":["https:\/\/daniel.liljeberg.io","https:\/\/www.linkedin.com\/in\/danielliljeberg\/"]}]}},"_links":{"self":[{"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/posts\/1432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/comments?post=1432"}],"version-history":[{"count":1,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/posts\/1432\/revisions"}],"predecessor-version":[{"id":1433,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/posts\/1432\/revisions\/1433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/media\/362"}],"wp:attachment":[{"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/media?parent=1432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/categories?post=1432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.liljeberg.io\/sv\/wp-json\/wp\/v2\/tags?post=1432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}