沒想到 FreeBSD 要掛載 ISO 檔要這麼複雜,在 Linux 下只要一行指令
# mount -o loop FreeBSD-10.3-RELEASE-amd64-bootonly.iso /mnt
# mdconfig 這個指令應該是 FreeBSD 特有的,主要功能是 產生,控制 memory disks .
# mdconfig -a -t vnode -f FreeBSD-10.3-RELEASE-amd64-bootonly.iso # mount_cd9660 /dev/md0 /mnt # mkdir /usr/local/pxeboot # cp -R /mnt/ /usr/local/pxeboot # umount /mnt # mdconfig -d -u 0
上面一連串是為了將 FreeBSD-10.3-RELEASE-amd64-bootonly.iso 光碟內容複製下來.關於 mdconfig 可以參考 https://www.freebsd.org/cgi/man.cgi?mdconfig(8),參數說明如下:
- -a
Attach a memory disk. - -t vnode
type, Select the type of the memory disk.
vnode, A file specified with -f file becomes the backing store for this memory disk. - -f file
Filename to use for the vnode type memory disk. The -a and -t vnode options are implied if not specified. - -d
Detach a memory disk from the system and release all resources. - -u
Request a specific unit number or device name for the md device instead of automatic allocation.
沒有解決問題,試試搜尋本站其他內容