Chinaunix首页 | 论坛 | 博客
  • 博客访问: 716857
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-01-17 18:49:59

()
memstick

This can be written to an USB memory stick (flash drive) and used to do an install on machines capable of booting off USB drives. It also supports booting into a "livefs" based rescue mode. The documentation packages are provided but no other packages.

As one example of how to use the memstick image, assuming the USB drive appears as /dev/da0 on your machine something like this should work:

  1. # dd if=8.1-RELEASE-amd64-memstick.img of=/dev/da0 bs=10240 conv=sync

Be careful to make sure you get the target (of=) correct.


()

  1. 准备记忆棒

    警告: 下面的例子中, 目标记忆棒对应的设备名是 /dev/da0。 请小心地确认这是希望覆盖的设备, 否则可能会损坏您的现有数据。

    设置 kern.geom.debugflags sysctl 为允许写入目标设备的主引导记录。

    1. # sysctl kern.geom.debugflags=16
  2. 将映像文件写入记忆棒

    .img 文件 不是 直接复制到记忆棒中的那种普通文件。 这个映像是一份包含启动盘全部内容的映像。 这意味着简单地从一个地方复制到另一个地方是 不能 赋予其引导系统的能力的。 您必须使用  将映像文件直接写入磁盘:

    1. # dd if=FreeBSD-8.1-RELEASE-i386-memstick.img of=/dev/da0 bs=64k

阅读(833) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~