{"id":1640,"date":"2011-09-30T23:43:56","date_gmt":"2011-10-01T04:43:56","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1640"},"modified":"2012-08-14T18:07:07","modified_gmt":"2012-08-14T23:07:07","slug":"freebsd-unable-to-find-device-node-for-devad0s1b-in-dev","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/freebsd-unable-to-find-device-node-for-devad0s1b-in-dev\/","title":{"rendered":"FreeBSD: Unable to find device node for \/dev\/ad0s1b in \/dev!"},"content":{"rendered":"<p>While I reinstalled the FreeBSD on my FreeBSD box, I got the following error message:<\/p>\n<pre>\r\nUnable to find device node for \/dev\/ad0s1b in \/dev!\r\n<\/pre>\n<p>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 35 blocks. However, this solution doesn&#8217;t always work.<\/p>\n<p>The 35 block trick is mainly for GPT partition, which was created under Linux. However, my harddrive was used in FreeBSD last time. So the GPT problem doesn&#8217;t apply. Even I tried the solution to wipe out the first and the last 100 (which is more than 35) blocks, it didn&#8217;t work either. Therefore, I tried to wipe out the entire harddrive. It works. <\/p>\n<p>1. Set up an environment such that you can use the command, dd, to wipe out your harddrive. You can either connect your harddrive to a working machine, or boot the system using Live CD.<\/p>\n<p>2. Run the following command to determine the correct location of your harddrive:<\/p>\n<pre>\r\nsu\r\nfdisk -l\r\n<\/pre>\n<p>Let say, it is on \/dev\/sda<\/p>\n<p>3. Find out how many partitions have been created in this harddrive:<\/p>\n<pre>\r\nls \/dev\/sda*\r\n<\/pre>\n<p>Let say there are two: \/dev\/sda, \/dev\/sda1<\/p>\n<p>4. Wipe out each partition one by one:<\/p>\n<pre>\r\ndd if=\/dev\/zero \/dev\/sda bs=512\r\ndd if=\/dev\/zero \/dev\/sda1 bs=512\r\n<\/pre>\n<p>5. After everything is done, you can verify it by running fdisk again:<\/p>\n<pre>\r\nfdisk -l\r\n<\/pre>\n<p>and it should say something like partition table not found, which is what we expect.<\/p>\n<p>That&#8217;s it! Try to install FreeBSD again and everything should be fine.<\/p>\n<p>If you still experience any difficulties, try the following trick:<\/p>\n<p>1. After defining the geometry, don&#8217;t press the &#8220;w&#8221; key.<br \/>\n2. After creating the partitions, don&#8217;t press the &#8220;w&#8221; key.<br \/>\n3. When selecting the media, instead of choosing CD, try to use Network.<\/p>\n<p>That should avoid most possible potential issues.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/freebsd-unable-to-find-device-node-for-devad0s1b-in-dev\/\">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],"class_list":["post-1640","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"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-qs","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1263,"url":"https:\/\/icesquare.com\/wordpress\/harddrive-disappears-or-got-deteched-in-freebsd\/","url_meta":{"origin":1640,"position":0},"title":"[Solved]Harddrive disappears or got deteched in FreeBSD","author":"Derrick","date":"February 17, 2011","format":false,"excerpt":"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\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\/02\/Hardware-150x150.png","width":350,"height":200},"classes":[]},{"id":1214,"url":"https:\/\/icesquare.com\/wordpress\/building-a-super-large-and-reliable-file-server-with-mixed-size-of-harddisks\/","url_meta":{"origin":1640,"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":3242,"url":"https:\/\/icesquare.com\/wordpress\/freebsdhow-to-remove-zfs-meta-data\/","url_meta":{"origin":1640,"position":2},"title":"[FreeBSD\/Linux]How To Remove ZFS Meta Data","author":"Derrick","date":"May 14, 2013","format":false,"excerpt":"I have many hard drives circulating among my servers for testing purpose. For example, I took a hard drive from one server and put it on a different server. After doing this for many times, I've noticed that the ZFS has put many header information \/ meta data left on\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\/2012\/01\/400px-broom_icon.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3380,"url":"https:\/\/icesquare.com\/wordpress\/freebsdmount-devda0p2-rw-mount-of-denied-filesystem-is-not-clean-run-fsck-forced-mount-will-invalidate-journal-contents-operation-not-permitted\/","url_meta":{"origin":1640,"position":3},"title":"[FreeBSD]mount: \/dev\/da0p2: R\/W mount of \/ denied. Filesystem is not clean &#8211; run fsck. Forced mount will invalidate journal contents: Operation not permitted","author":"Derrick","date":"January 5, 2014","format":false,"excerpt":"When I tried to mount a hard drive on FreeBSD today, I got the following error message. sudo mount -t ufs \/dev\/da0p2 \/mnt\/ mount: \/dev\/da0p2: R\/W mount of \/ denied. Filesystem is not clean - run fsck. Forced mount will invalidate journal contents: Operation not permitted Here is how to\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":1072,"url":"https:\/\/icesquare.com\/wordpress\/installing-freebsd-on-sun-blade-100\/","url_meta":{"origin":1640,"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":2122,"url":"https:\/\/icesquare.com\/wordpress\/delete-empty-system-mail-box-freebsd-linux\/","url_meta":{"origin":1640,"position":5},"title":"How to Delete System Mail \/ Empty System Mail box in FreeBSD \/ Linux?","author":"Derrick","date":"December 22, 2011","format":false,"excerpt":"[ad#adbrite] When I checked my FreeBSD system mail box today, I found that there were 8000 system mails sitting my mail box: mail Mail version 8.1 6\/6\/93. Type ? for help. \"\/var\/mail\/root\": 8182 messages 8182 new >N 1 root@localhost.my.do Fri Sep 30 03:02 44\/1330 \"x.com output\" N 2 root@localhost.my.do Fri\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":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1640","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=1640"}],"version-history":[{"count":5,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1640\/revisions"}],"predecessor-version":[{"id":2860,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1640\/revisions\/2860"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}