{"id":1263,"date":"2011-02-17T15:10:07","date_gmt":"2011-02-17T21:10:07","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1263"},"modified":"2012-08-14T18:09:19","modified_gmt":"2012-08-14T23:09:19","slug":"harddrive-disappears-or-got-deteched-in-freebsd","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/harddrive-disappears-or-got-deteched-in-freebsd\/","title":{"rendered":"[Solved]Harddrive disappears or got deteched in FreeBSD"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1319\" data-permalink=\"https:\/\/icesquare.com\/wordpress\/harddrive-disappears-or-got-deteched-in-freebsd\/hardware\/#main\" data-orig-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware.png\" data-orig-size=\"256,256\" data-comments-opened=\"1\" data-image-title=\"Hardware\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware.png\" src=\"\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-150x150.png\" alt=\"\" title=\"Harddrive disappears or got deteched in FreeBSD\" width=\"150\" height=\"150\" class=\"alignleft size-thumbnail wp-image-1319\" srcset=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-150x150.png 150w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-177x177.png 177w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-35x35.png 35w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-164x164.png 164w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware-185x185.png 185w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/02\/Hardware.png 256w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>Have you experienced these computer problems like mine before? You got some error messages that your system cannot read your harddrives, or your harddrives suddenly got detached by your system. You have no clue why it happens because it is a fairly new harddrive. Before you decide to discard, return or RMA your harddrive, let me share you my experience first because it may save your harddrive (and your bank).<\/p>\n<p>Recently, I found several harddrive related computer problems in my FreeBSD systems. These includes:<\/p>\n<h2>Symptom: Harddrive seems failing<\/h2>\n<p>When I boot the computer, it threw me the following messages:<\/p>\n<pre>\r\nad0: FAILURE - READ_DMA status=51 ready ,DSC,ERROR error=40 uncorrectable LBA=sector\r\nad0: FAILURE - READ_DMA status=51 ready ,DSC,ERROR error=40 uncorrectable LBA=sector\r\nad0: FAILURE - READ_DMA status=51 ready ,DSC,ERROR error=40 uncorrectable LBA=sector\r\n<\/pre>\n<p>If you miss these messages during the boot process, you can review these messages using the following command:<\/p>\n<pre>sudo dmesg | grep ad | less<\/pre>\n<h2>Symptom: Harddrive is disappeared or got detached<\/h2>\n<p>When I tried to test the harddrive using dd, e.g.,<\/p>\n<pre>\r\ndd if=\/dev\/random of=\/dev\/ad0\r\n<\/pre>\n<p>(This command will wipe the entire disk with random data until the disk is full. The reason why I do it because I want to test every single sector of the disk.)<\/p>\n<p>It gave the following message:<\/p>\n<pre>dd: \/dev\/ad0: open: I\/O error<\/pre>\n<p>and I checked the \/dev\/ad0, e.g.,<\/p>\n<pre>\r\nls -al \/dev\/ad0\r\n<\/pre>\n<p>The file was disappeared.<\/p>\n<p>Apparently, the device was detached by the system automatically.<\/p>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<p>So, how do you solve this computer problem? Here are few methods I recommend you to try:<\/p>\n<h2>Solution: Check the SMART Status<\/h2>\n<p>You can check the SMART status of the harddrive using the following command:<\/p>\n<pre>smartctl -a \/dev\/ad<\/pre>\n<p>Make sure that the test result is PASSED.<\/p>\n<p>If you don&#8217;t have smartctl installed, it is available in the following port:<\/p>\n<pre>\/usr\/ports\/sysutils\/smartmontools<\/pre>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<h2>Solution: How do you connect your harddrive?<\/h2>\n<p>Sometimes, connecting the harddrive through PCI card can cause issue (at least in my case). After connecting the harddrive to a different port, such as switching from port 1 of the card to port 3 of the motherboard, the computer problem is solved and gone. If the computer problem still exists, the next thing I will try is to connect the harddrive using USB or firewire. You can do it by getting an harddrive enclosure.<\/p>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<h2>Solution: Replacing harddrive cables<\/h2>\n<p>Old harddrive cables can be the source of the computer problems too. Since the temperature inside the computer chassis is high, and the harddrive cables are usually bended, these can soften the cable and may break the metal wire inside the cable. Try replacing it by new cables and see the computer problem is gone or not. Also, check the power adapter as well. Sometimes this computer problem is caused by loose power connectors.<\/p>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<h2>Solution: Have you installed any new harddrive recently?<\/h2>\n<p>Sometimes, the system will behave abnormally because of newly installed hardware. It can be any reason such as conflicting hardware etc. Recently, I installed a PCI flash card adapter, which caused the system very unstable. After I removed the card, the computer problem is solved and gone.<\/p>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<h2>Solution: Is your Motherboard doing okay?<\/h2>\n<p>Although it is not likely, but this computer problem can caused by the burned motherboard. Sometimes, if a mother board is getting old, it can be unstable and not reliable (Heavy usage such as gaming can generate high temperature, which will decrease the life span of a motherboard). To determine the root of the computer problem, I will replace a motherboard and test the system again.<\/p>\n<div style=\"border-bottom: 1px dotted #999; margin:10px 0px 10px 0px;\"><\/div>\n<h2>How do you know if your system is stable or not?<\/h2>\n<p>Here are few things I usually do to test the stability of a system:<\/p>\n<p>1. Run the machine for at least a week.<\/p>\n<p>2. Wipe all non-system harddrives using dd:<\/p>\n<pre>sudo dd if=\/dev\/random of=\/dev\/ad0 &<\/pre>\n<pre>sudo dd if=\/dev\/random of=\/dev\/ad2 &<\/pre>\n<pre>sudo dd if=\/dev\/random of=\/dev\/ad4 &<\/pre>\n<p>etc.<\/p>\n<p>where &#8216;&#038;&#8217; at the end of the command means running it in background.<\/p>\n<p>3. If possible, always keep your system in a cool place such as basement. It helps to keep the harddrive healthy.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you experienced these computer problems like mine before? You got some error messages that your system cannot read your harddrives, or your harddrives suddenly got detached by your system. <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/harddrive-disappears-or-got-deteched-in-freebsd\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69],"tags":[171,113],"class_list":["post-1263","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","tag-freebsd","tag-harddrive-failure"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-kn","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1640,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-unable-to-find-device-node-for-devad0s1b-in-dev\/","url_meta":{"origin":1263,"position":0},"title":"FreeBSD: Unable to find device node for \/dev\/ad0s1b in \/dev!","author":"Derrick","date":"September 30, 2011","format":false,"excerpt":"While I reinstalled the FreeBSD on my FreeBSD box, I got the following error message: Unable to find device node for \/dev\/ad0s1b in \/dev! I searched online and I found different solutions. The most popular one is about using the command, dd, to clean up the first and the last\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1214,"url":"https:\/\/icesquare.com\/wordpress\/building-a-super-large-and-reliable-file-server-with-mixed-size-of-harddisks\/","url_meta":{"origin":1263,"position":1},"title":"Building a Super Large and Reliable File Server with Mixed Size of Harddisks","author":"Derrick","date":"January 17, 2011","format":false,"excerpt":"In this article, I am going to show you how to build a super large, ultra reliable, expandable file server with mixed size of hard drives. Here is my criteria: Large Storage Capacity. At this moment, the largest hard drive is 2TB. I am looking for at least 10TB. Great\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/01\/zfs_logo-150x150.jpg","width":350,"height":200},"classes":[]},{"id":917,"url":"https:\/\/icesquare.com\/wordpress\/what-can-you-do-with-a8m2n-la-nodusm-gl8e\/","url_meta":{"origin":1263,"position":2},"title":"What can you do with A8M2N-LA \/ NodusM-GL8E?","author":"Derrick","date":"October 30, 2010","format":false,"excerpt":"Recently, I decided to turn my HP m7557c computer (motherboard: A8M2N-LA \/ NodusM-GL8E) to an Unix server. The nightmare began. After trying nearly 10 different operating systems and distributions, I found that only very few of them worked with A8M2N-LA \/ NodusM-GL8E. I think it is worth to share my\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1485,"url":"https:\/\/icesquare.com\/wordpress\/highpoint-rocketraid-2640x4sgl-beeping\/","url_meta":{"origin":1263,"position":3},"title":"HighPoint RocketRAID 2640X4SGL Beeping","author":"Derrick","date":"August 21, 2011","format":false,"excerpt":"I noticed some beeping sound coming from my server today. After I opened the server case, I found that the problem came from my newly install HighPoint RocketRAID card. During the beep, the server could not operate normally. First, the system dumped some error messages, and followed by core dump,\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/large-150x150.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1072,"url":"https:\/\/icesquare.com\/wordpress\/installing-freebsd-on-sun-blade-100\/","url_meta":{"origin":1263,"position":4},"title":"How to Install FreeBSD on Sun Blade 100","author":"Derrick","date":"November 19, 2010","format":false,"excerpt":"Recently, I received a Sun Blade 100 as a gift. After doing some research on which OS is the best for this machine, I decide to go with FreeBSD. So, my journey with Sun began here. I only used Sun\/Solaris in my engineering courses in college, I don't have much\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2976,"url":"https:\/\/icesquare.com\/wordpress\/lightroom-photomatix-lightroom-rendition-failed\/","url_meta":{"origin":1263,"position":5},"title":"[Adobe Lightroom \/ Photomatix]Lightroom rendition failed","author":"Derrick","date":"October 1, 2012","format":false,"excerpt":"Yesterday, I was processing some of the pictures in Adobe Lightroom. I liked to export few of them to Photomatix for HDR processing. Then, the system complained with this error message: Lightroom rendition failed After searching this error message on Google, I found that this message was generated by the\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2012\/10\/Temp-271x300.png","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1263"}],"version-history":[{"count":46,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1263\/revisions"}],"predecessor-version":[{"id":2877,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1263\/revisions\/2877"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}