{"id":20537,"date":"2017-06-14T23:47:37","date_gmt":"2017-06-14T14:47:37","guid":{"rendered":"https:\/\/oichinote.com\/plus\/?p=20537"},"modified":"2017-06-18T12:38:20","modified_gmt":"2017-06-18T03:38:20","slug":"install-freebsd11-with-hand-made-partition","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2017\/06\/install-freebsd11-with-hand-made-partition.html","title":{"rendered":"\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092shell\u3067\u8a2d\u5b9a\u3057\u3066Root on ZFS\u306bFreeBSD11\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>FreeBSD10\u306e\u5165\u3063\u305fZPOOL\u304b\u3089\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30ea\u30b9\u30c8\u30a2\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u3046\u307e\u304f\u3044\u304b\u305a\u3001FreeBSD11\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002FreeBSD11\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6642\u3001\u30c7\u30a3\u30b9\u30af\u3092\u4e38\u3054\u3068\u4f7f\u3046\u306a\u3089\u81ea\u52d5\u30e2\u30fc\u30c9\u3067\u7c21\u5358\u306bZFS\u3068\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002\u7d30\u304b\u304f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u5206\u3051\u3066\u4f7f\u304a\u3046\u3068\u3059\u308b\u3068\u3001shell\u304b\u3089\u81ea\u5206\u3067\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u304b\u306a\u308a\u30cf\u30de\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30db\u30b9\u30c8\u306f\u3001i7\u3001\u30e1\u30e2\u30ea16GB\u3001SSD 512GB\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n[amazonjs asin=\"B004FA8NOQ\" locale=\"JP\"]\n[amazonjs asin=\"B01EW6WLY0\" locale=\"JP\"]\n<ol>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u306e\u4f5c\u6210<\/li>\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u8d77\u52d5<\/li>\n<li>GPT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4f5c\u6210<\/li>\n<li>ZPOOL\u4f5c\u6210<\/li>\n<li>\u3082\u308d\u3082\u308d\u8a2d\u5b9a<\/li>\n<li>\u8d77\u52d5\u8a2d\u5b9a<\/li>\n<li>\u518d\u8d77\u52d5<\/li>\n<\/ol>\n<h3>1. \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u306e\u4f5c\u6210<\/h3>\n<p>\u307e\u305a\u306f\u3001FreeBSD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u3092\u4f5c\u308a\u307e\u3059\u3002USB\u30e1\u30e2\u30ea\u3092\u4f7f\u3046\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u304b\u3089\u30ea\u30f3\u30af\u3092\u305f\u3069\u308a\u3001&#8221;&#8230;-amd64-memstick.img&#8221;\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001&#8221;FreeBSD-11.0-RELEASE-amd64-memstick.img&#8221;\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.freebsd.org\/ja\/where.html\" target=\"_blank\" rel=\"noopener\">FreeBSD \u3092\u5165\u624b\u3059\u308b<\/a><\/li>\n<\/ul>\n<p>\u3053\u306e\u5f8c\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092USB\u30e1\u30e2\u30ea\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002of\u3067\u3001USB\u30e1\u30e2\u30ea\u30b9\u30c6\u30a3\u30c3\u30af\u3092\u6307\u5b9a\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u9593\u9055\u3046\u3068\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u3092\u7834\u58ca\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002macOS\u306e\u5834\u5408\u3060\u3068\u3001diskutil list\u3092\u3001USB\u30e1\u30e2\u30ea\u3092\u633f\u3059\u524d\u3068\u633f\u3057\u305f\u5f8c\u3067\u9055\u3044\u3092\u898b\u308c\u3070\u308f\u304b\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u306f\u3001\/dev\/disk6\u3060\u3063\u305f\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre>$ diskutil umountDisk \/dev\/disk6\r\n$ sudo dd if=FreeBSD-11.0-RELEASE-amd64-memstick.img of=\/dev\/disk6 bs=512k\r\n$ diskutil eject \/dev\/disk6\r\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30c7\u30a3\u30a2\u3092\u4f5c\u308b\u6642\u3001\u6700\u521d\u79c1\u306f\u3001USB\u30e1\u30e2\u30ea\u306b\u66f8\u304d\u8fbc\u3080\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u3001DVD\u7528\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001USB\u30e1\u30e2\u30ea\u304b\u3089\u8d77\u52d5\u3067\u304d\u305a\u306b\u56f0\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>2. \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u8d77\u52d5<\/h3>\n<p>\u8d77\u52d5\u3059\u308b\u3068\u6b21\u306e\u753b\u9762\u306b\u306a\u308b\u306e\u3067\u3001<span class=\"css_btn_class\">Install<\/span>\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20576\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg\" alt=\"Install\u958b\u59cb\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6b21\u306b\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20575\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-2-keyboard.jpg\" alt=\"\u30ad\u30fc\u30dc\u30fc\u30c9\u9078\u629e\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-2-keyboard.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-2-keyboard-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6b21\u306b\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20574\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-3-hostname.jpg\" alt=\"\u30db\u30b9\u30c8\u540d\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-3-hostname.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-3-hostname-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u8ffd\u52a0\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20573\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-4-options.jpg\" alt=\"\u30aa\u30d7\u30b7\u30e7\u30f3\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-4-options.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-4-options-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<h3>3. GPT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4f5c\u6210<\/h3>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u30e1\u30a4\u30f3\u30a4\u30d9\u30f3\u30c8\u3001Shell\u8d77\u52d5\u3067\u3059\u3002Shell\u8d77\u52d5\u5f8c\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001GPT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u4f5c\u6210\u3068ZPOOL\u4f5c\u6210\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20572\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-5-shell.jpg\" alt=\"Shell\u8d77\u52d5\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-5-shell.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-5-shell-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u307e\u305a\u306f\u3001GPT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3067\u3059\u3002<\/p>\n<pre># gpart destroy ada0\r\n# gpart create -s gpt ada0\r\n# gpart add -a 4k -t freebsd-boot -s 512k ada0\r\n# gpart add -a 4k -t freebsd-zfs -s 128G -l zroot ada0\r\n# gpart add -a 4k -t freebsd-zfs -s 8G -l zil ada0\r\n# gpart add -a 4k -t freebsd-zfs -l l2arc ada0\r\n# gpart bootcode -b \/boot\/pmbr -p \/boot\/gptzfsboot -i 1 ada0\r\n<\/pre>\n<p>\u4f7f\u7528\u4e2d\u306e\u30c7\u30a3\u30b9\u30af\u3060\u3068gpart destroy\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306fdestroy\u306e\u5f8c\u306b-F\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u3001\u5f37\u5236\u7684\u306bdestroy\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001gpart create\u3067GPT\u30c7\u30a3\u30b9\u30af\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001gpart add\u3067\u3001\u8d77\u52d5\u9818\u57df\u3001\u30c7\u30fc\u30bf\u9818\u57df\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u9818\u57df\u306e\u78ba\u4fdd\u3092\u3057\u307e\u3059\u3002-a 4k\u3092\u3064\u3051\u308b\u4e8b\u3067\u30014k\u30a2\u30e9\u30a4\u30f3\u306eAFT\u30c7\u30a3\u30b9\u30af\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002freebsd-boot\u306f512k\u3067\u3001\u8a2d\u5b9a\u53ef\u80fd\u306a\u6700\u5927\u30b5\u30a4\u30ba\u306b\u3057\u307e\u3059\u3002zil(\u30ed\u30b0)\u9818\u57df\u3092\u78ba\u4fdd\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u306e\u5927\u304d\u3055\u306f\u3001\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u306e\u534a\u5206\u306b\u3057\u307e\u3059\u3002\u4f7f\u7528\u3057\u3066\u3044\u308b\u30db\u30b9\u30c8\u306f16GB\u306e\u30e1\u30e2\u30ea\u3092\u8f09\u305b\u3066\u3044\u308b\u306e\u3067\u30018GB\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u6b8b\u308a\u306e\u9818\u57df\u3092l2arc\u7528(\u30ad\u30e3\u30c3\u30b7\u30e5)\u306b\u78ba\u4fdd\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>gpart bootcode\u3067\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h3>4. ZPOOL\u4f5c\u6210<\/h3>\n<p>\u6b21\u306b\u3001ZPOOL\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<pre># zpool create -R \/mnt rpool gpt\/zroot\r\n# zfs create rpool\/root\r\ncannot mount '\/mnt\/rpool\/root': failed to create mountpoint\r\nfilesystem successfully created, but not mounted\r\n# zfs set mountpoint=\/ rpool\/root\r\n# zpool export rpool\r\n# zpool import -R \/mnt rpool\r\n# zfs create rpool\/root\/tmp\r\n# zfs create rpool\/root\/var\r\n# zfs create rpool\/root\/usr\r\n# zfs create rpool\/root\/usr\/local\r\n<\/pre>\n<p>\u307e\u305a\u3001zpool\u3067ZFS\u306e\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002-R \/mnt\u3067\u3001\/mnt\u306b\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u69d8\u306b\u3059\u308b\u306e\u304c\u809d\u3067\u3059\u3002<\/p>\n<p>zfs create\u3067root\u3068\u8a00\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u308a\u3001\u3053\u306e\u4e0b\u306b\u5404\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u308a\u307e\u3059\u30022\u6bb5\u69cb\u6210\u306b\u3059\u308b\u306e\u306f\u3001snapshot\u3092send\/recv\u3067\u30ea\u30b9\u30c8\u30a2\u3059\u308b\u6642\u306b\u7c21\u5358\u306b\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u70ba\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u306e\u6642\u70b9\u3067\u3001\/mnt\/rpool\/root\u3092\u4f5c\u308c\u306a\u3044\u3068\u8a00\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u70ba\u3001set mountpoint=\/\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u5f8c\u3001\u6b63\u3057\u304f\u30de\u30a6\u30f3\u30c8\u3055\u305b\u308b\u70ba\u306b\u3001\u4e00\u65e6export\u3057\u3066\u3001\u518d\u5ea6import\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u3082-R \/mnt\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5f8c\u3001var, tmp, usr, usr\/local\u3092\u4f5c\u308a\u307e\u3059\u3002\u3053\u306e\u8fba\u308a\u306f\u304a\u597d\u307f\u3067\u3002<\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<kbd class=\"css_kbd_class\">ctrl<\/kbd>+<kbd class=\"css_kbd_class\">d<\/kbd>\u3067\u629c\u307e\u3059\u3002<\/p>\n<h3>5. \u3082\u308d\u3082\u308d\u8a2d\u5b9a<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306b\u623b\u308b\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(\u30c7\u30a3\u30b9\u30af\u3078\u306e\u66f8\u304d\u8fbc\u307f)\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20571\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-6-installing.jpg\" alt=\"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e2d\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-6-installing.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-6-installing-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u30c7\u30a3\u30b9\u30af\u3078\u306e\u66f8\u304d\u8fbc\u307f\u7d42\u4e86\u5f8c\u3001root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20570\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-7-password.jpg\" alt=\"root\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-7-password.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-7-password-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20569\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-8-network.jpg\" alt=\"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-8-network.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-8-network-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6642\u9593\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5fc5\u305a\u3001UTC\u3067\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20568\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-9-time.jpg\" alt=\"\u6642\u8a08\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-9-time.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-9-time-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u8d77\u52d5\u30b5\u30fc\u30d3\u30b9\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20579\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-10-services.jpg\" alt=\"\u8d77\u52d5\u30b5\u30fc\u30d3\u30b9\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-10-services.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-10-services-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u95a2\u4fc2\u306e\u8a2d\u5b9a\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20580\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-11-system-hardening.jpg\" alt=\"\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-11-system-hardening.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-11-system-hardening-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>root\u4ee5\u5916\u306b\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3059\u308b\u5834\u5408\u306f\u3001\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20581\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-12-adduser.jpg\" alt=\"\u30e6\u30fc\u30b6\u8ffd\u52a0\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-12-adduser.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-12-adduser-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u5fc3\u6b8b\u308a\u304c\u7121\u3044\u304b\u3001\u805e\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20578\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-13-final-config.jpg\" alt=\"\u6700\u7d42\u8a2d\u5b9a\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-13-final-config.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-13-final-config-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<h3>6. \u8d77\u52d5\u8a2d\u5b9a<\/h3>\n<p>\u6700\u5f8c\u306b\u3001shell\u3092\u8d77\u52d5\u3059\u308b\u304b\u805e\u304b\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20583\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-14-last-shell.jpg\" alt=\"Shell\u8d77\u52d5\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-14-last-shell.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-14-last-shell-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7d42\u4e86\u5f8c\u3001\u518d\u8d77\u52d5\u306e\u524d\u306b\u3082\u3046\u4e00\u5ea6shell\u3092\u8d77\u52d5\u3059\u308b\u304b\u805e\u304b\u308c\u307e\u3059\u306e\u3067\u3001<span class=\"css_btn_class\">Yes<\/span>\u3092\u9078\u3093\u3067\u3001shell\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre># zpool set bootfs=rpool\/root rpool\r\n# vi \/mnt\/etc\/rc.conf\r\n<\/pre>\n<p>\u307e\u305a\u3001\u8d77\u52d5\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u3001rpool\/root\u3092\u4f7f\u3046\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u3092\u3057\u306a\u3044\u3068\u3001\u8d77\u52d5\u6642\u306b\u3001&#8221;Can&#8217;t find \/boot\/zfsloader&#8221;\u3068\u8a00\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20585\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-find-zfsloader.jpg\" alt=\"zfsloader\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-find-zfsloader.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-find-zfsloader-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\/mnt\/etc\/rc.conf\u306b\u6b21\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code>zfs_enable=&quot;YES&quot;\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3001zfs create\u3067\u4f5c\u3063\u305f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30de\u30a6\u30f3\u30c8\u51fa\u6765\u306a\u304f\u3066\u3001\u4f8b\u3048\u3070&#8221;can&#8217;t exec getty&#8221;\u3068\u8a00\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u4ed6\u306e\u30a8\u30e9\u30fc\u3082\u51fa\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20584\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-exec-getty.jpg\" alt=\"getty\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-exec-getty.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-cant-exec-getty-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<kbd class=\"css_kbd_class\">ctrl<\/kbd>+<kbd class=\"css_kbd_class\">d<\/kbd>\u3067\u629c\u3051\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<h3>7. \u518d\u8d77\u52d5<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20582\" src=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-15-reboot.jpg\" alt=\"\u518d\u8d77\u52d5\" width=\"480\" height=\"360\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-15-reboot.jpg 480w, https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-15-reboot-150x113.jpg 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p><span class=\"css_btn_class\">Reboot<\/span>\u3092\u9078\u3093\u3067\u518d\u8d77\u52d5\u304c\u6210\u529f\u3059\u308c\u3070\u5b8c\u6210\u3067\u3059\u3002<\/p>\n<h3>\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u30a6\u30a7\u30d6\u30da\u30fc\u30b8<\/h3>\n<ul>\n<li><a href=\"http:\/\/toriyu.jp\/hitorigoto\/id3047.html\" target=\"_blank\" rel=\"noopener\">\u3072\u3068\u308a\u3054\u3068 &#8211; \u5b8c\u5168 ZFS Root \u3078\u306e\u9053<\/a><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/tama0905\/20120106\/1325868667\" target=\"_blank\" rel=\"noopener\">FreeBSD\u3067GPT\u3092\u4f7f\u3046 &#8211; Tama\u306e\u30b7\u30b9\u30c6\u30e0\u30e1\u30e2<\/a><\/li>\n<li><a href=\"http:\/\/www.seichan.org\/blog\/2013\/12\/post-237.html\" target=\"_blank\" rel=\"noopener\">AFT(4k block) HDD \u3092 ZFS \u3067\u4f7f\u3046\u5834\u5408\u306e\u826f\u3044\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/blogs.yahoo.co.jp\/alpha3166\/10269630.html\" target=\"_blank\" rel=\"noopener\">\u6700\u5c0f\u9650\u306e\u8a2d\u5b9a\u3067FreeBSD\u3092ZFS\u304b\u3089\u8d77\u52d5\u3059\u308b ( UNIX ) &#8211; \u30a2\u30eb\u30d5\u30a1\u306e\u30d6\u30ed\u30b0 &#8211; Yahoo!\u30d6\u30ed\u30b0<\/a><\/li>\n<li><a href=\"https:\/\/blather.michaelwlucas.com\/archives\/2108\" target=\"_blank\" rel=\"noopener\">Cloning a FreeBSD\/ZFS Machine with \u2018zfs send\u2019 \u00ab blather.michaelwlucas.com<\/a><\/li>\n<li><a href=\"https:\/\/wiki.freebsd.org\/RootOnZFS\/GPTZFSBoot\" target=\"_blank\" rel=\"noopener\">RootOnZFS\/GPTZFSBoot &#8211; FreeBSD Wiki<\/a><\/li>\n<li><a href=\"https:\/\/forums.freebsd.org\/threads\/35402\/\" target=\"_blank\" rel=\"noopener\">Can&#8217;t exec getty error | The FreeBSD Forums<\/a><\/li>\n<li><a href=\"https:\/\/forums.freebsd.org\/threads\/48357\/\" target=\"_blank\" rel=\"noopener\">How to mount zfs pool on boot? | The FreeBSD Forums<\/a><\/li>\n<\/ul>\n[amazonjs asin=\"B00CPG04JE\" locale=\"JP\"]\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD10\u306e\u5165\u3063\u305fZPOOL\u304b\u3089\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30ea\u30b9\u30c8\u30a2\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u3046\u307e\u304f\u3044\u304b\u305a\u3001FreeBSD11\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002FreeBSD11\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6642\u3001\u30c7\u30a3\u30b9\u30af\u3092\u4e38\u3054\u3068\u4f7f\u3046\u306a\u3089\u81ea\u52d5\u30e2\u30fc\u30c9\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":20576,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092shell\u3067\u8a2d\u5b9a\u3057\u3066Root on ZFS\u306bFreeBSD11\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[60,5],"tags":[],"class_list":["post-20537","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-freebsd","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg","jetpack-related-posts":[{"id":20256,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/mooving-the-system-pool-to-another-disk.html","url_meta":{"origin":20537,"position":0},"title":"FreeBSD\u306eRoot on ZFS\u30b7\u30b9\u30c6\u30e0\u306e\u5225\u30c7\u30a3\u30b9\u30af\u3078\u306e\u79fb\u884c","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670817\u65e5","format":false,"excerpt":"FreeBSD10\u306eRoot\u3067\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30fc\u30eb(rpool)\u3092\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30b3\u30d4\u30fc\u3057\u3001\u305d\u306e\u30c7\u30a3\u30b9\u30af\u304b\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Install\u958b\u59cb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7985,"url":"https:\/\/oichinote.com\/plus\/2013\/04\/install-freebsd-with-full-zfs.html","url_meta":{"origin":20537,"position":1},"title":"FreeBSD9\u3067Full ZFS\u30b7\u30b9\u30c6\u30e0\u4f5c\u6210\u306e\u5b9f\u9a13[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e744\u670829\u65e5","format":false,"excerpt":"FreeBSD\u52c9\u5f37\u30b7\u30ea\u30fc\u30ba\u306e\u4e00\u74b0\u3067\u3059\u3002 FreeBSD\u306e\u52c9\u5f37\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2012\u5e7411\u67083\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"\u30b7\u30b9\u30c6\u30e0\u7528\u30d7\u30fc\u30eb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/04\/20130428zfs_rpool.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":19706,"url":"https:\/\/oichinote.com\/plus\/2017\/03\/install-freebsd11-to-parallels12.html","url_meta":{"origin":20537,"position":2},"title":"Parallels12\u306bFreeBSD11\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e743\u670818\u65e5","format":false,"excerpt":"\u4eca\u3001NAS\u3068\u3057\u3066\u4f7f\u3063\u3066\u3044\u308bFreeBSD\u304c10.0\u3068\u30b5\u30dd\u30fc\u30c8\u5207\u308c\u306e\u72b6\u614b\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6b21\u306e\u554f\u984c\u304c\u767a\u751f\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u7d42\u4e86","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/03\/20170318parallels-customize-done.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20201,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/moving-zpool-data-to-another-drive.html","url_meta":{"origin":20537,"position":3},"title":"\ufeffZFS\u306e\u30c7\u30fc\u30bf\u30d7\u30fc\u30eb\u306e\u5f15\u8d8a\u3057","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670821\u65e5","format":false,"excerpt":"\u30b7\u30b9\u30c6\u30e0\u30d7\u30fc\u30eb\u306e\u79fb\u884c\u306f\u7d50\u69cb\u9762\u5012\u3067\u3057\u305f\u3002 AFT\u306a\u306e\u306b\u30d6\u30ed\u30c3\u30af\u30b5\u30a4\u30ba\u304c512B \u30c7\u30fc\u30bf\u30d7\u30fc\u30eb\u3082\u79fb\u884c\u3057\u307e\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"GW3.5AA-SUP3","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170621gw3.5aa-sup3.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10146,"url":"https:\/\/oichinote.com\/plus\/2013\/11\/add-mirroring-disks-to-existed-zfs-pool.html","url_meta":{"origin":20537,"position":4},"title":"ZFS\u3067\u65e2\u5b58\u30d7\u30fc\u30eb\u306b\u30df\u30e9\u30fc\u30c7\u30a3\u30b9\u30af\u3092\u8ffd\u52a0\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e7411\u670821\u65e5","format":false,"excerpt":"FreeBSD 9.1\u3092\u30b5\u30fc\u30d0\u306b\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002 FreeBSD\u306b\u30b5\u30fc\u30d0\u7528\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"ZFS\u69cb\u6210","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/11\/20131121freebsd-zfs.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":8922,"url":"https:\/\/oichinote.com\/plus\/2013\/08\/install-netatalk-3-0-4-on-freebsd-9-1.html","url_meta":{"origin":20537,"position":5},"title":"FreeBSD 9.1\u306bnetatalk 3.0.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e748\u67088\u65e5","format":false,"excerpt":"FreeBSD 9.1\u3092\u642d\u8f09\u3057\u305f\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u307e\u3057\u305f\u3002Full ZFS\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u307e\u3060\u4eee\u904b\u7528\u4e2d\u3067\u3001\u30e6\u2026","rel":"","context":"Mac","block_context":{"text":"Mac","link":"https:\/\/oichinote.com\/plus\/category\/mac"},"img":{"alt_text":"NAS\u6027\u80fd\u6bd4\u8f03","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/08\/20130808nas-performance-comparison.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/20537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=20537"}],"version-history":[{"count":16,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/20537\/revisions"}],"predecessor-version":[{"id":20614,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/20537\/revisions\/20614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/20576"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=20537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=20537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=20537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}