hao32的个人日志

解决unable to find device node for dev ad4s1b in dev故障

昨天在一台比较老的机器上安装freebsd 8,结果分区完毕之后,在Commit步骤地时候,提示:
“Unable to find device node for /dev/ad4s1b in /dev!
The creation of filesystems will be aborted.”

看样子是硬盘的一些问题,我手头也没可用的额外的硬盘来测试,在google查阅了大量资料,众说纷纭吧,有说的DMA模式的问题,有说因为分区的时候不应该使用“W”,搞到凌晨 2点多,最后发现了这篇:http://www.pubbs.net/201002/freebsd/3072-80-install-fails-to-create-filesystem-quotunable-to-find-devicenodequot.html

发现其中Jeremy Chadwic兄弟的一段回复:

Jeremy Chadwick wrote:
>> Yes, ad0s1b is the swap, but I think it fails before doing newfs.
>> “Writing partition information to ad0” is the last message I see before
>> the error occurs, no newfs popups occur.
By the way, in the fixit console /dev has ad0b but not ad0s1b.
> Can you get this disk into a system (or the same system if booting off
> CD, etc.) where you can do the following to it and then retry the
> installation?
>
> dd if=/dev/zero of=/dev/ad0 bs=64k count=1
>
> No, this isn’t a joke. This should also clear up the GEOM label
> error/warning you see.

使用dd if=/dev/zero of=/dev/ad0 bs=64k count=1 把GEOM(geometry)标签清理掉。
我没BSD环境,就把硬盘挂到一台linux机器上作为第二块硬盘,执行:
# dd if=/dev/zero of=/dev/sdb bs=64k count=1
硬盘挂回去就OK了!

5 评论

  1. 网站教程

    强,收藏了。。

  2. 我的网站,pr为2 ,不知道能不能跟你交换个链接
    域名是http://shanhairail.info
    400电话
    找不到你的联系方式,如果可以的话,我的QQ:515246540,

  3. 我来支持一下。

  4. 美国优洛

    看不懂。。。

  5. 希望以后多读走动哈

回复 老朋友 取消回复