dd if=/dev/zero of=/dev/da0 bs=64m count=1
fdisk -BIv da0
dd if=/dev/zero of=/dev/da0s1 bs=64m count=1
bsdlabel -wB da0s1
bsdlabel da0s1
-----
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  7727186       16    unused        0     0
  c:  7727202        0    unused        0     0         # "raw" part, don't edit
bsdlabel -e da0s1
-----
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:       1G        0    4.2BSD        0     0
  c:  7727202        0    unused        0     0         # "raw" part, don't edit
newfs -U /dev/da0s1a
mdconfig -a -t vnode -f FreeBSD-8.1-RELEASE-i386-bootonly.iso -u 0
mount -t cd9660 /dev/md0 /cdrom
mount /dev/da0s1a /mnt
cp -Rpv /cdrom/* /mnt
umount /mnt
umount /cdrom
mdconfig -d -u 0

USBメモリから起動するとマウントに失敗する件の対策

Index: sys/kern/vfs_mount.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_mount.c,v
retrieving revision 1.308
diff -u -r1.308 vfs_mount.c
--- sys/kern/vfs_mount.c	5 Jun 2009 14:55:22 -0000	1.308
+++ sys/kern/vfs_mount.c	29 Sep 2009 17:08:25 -0000
@@ -1645,6 +1645,9 @@
 
 	options = NULL;
 
+	/* NASTY HACK: wait for USB sticks to appear */
+	pause("usbhack", hz * 10);
+
 	root_mount_prepare();
 
 	mount_zone = uma_zcreate("Mountpoints", sizeof(struct mount), 

別解

/boot/loader.conf
kern.cam.boot_delay=10000

別解2

ブート時のメニューで 6
set kern.cam.boot_delay=10000
load /boot/kernel/kernel
boot

FreeBSD


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-12-21 (火) 12:22:54 (4002d)