{"id":1231,"date":"2011-03-10T00:35:44","date_gmt":"2011-03-09T16:35:44","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=1231"},"modified":"2011-10-18T16:08:30","modified_gmt":"2011-10-18T08:08:30","slug":"label-or-ufsid-in-fstab","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2011\/03\/10\/label-or-ufsid-in-fstab\/","title":{"rendered":"\u5728 fstab \u88e1\u7528 label \u6216 ufsid \u6a19\u793a\u78c1\u789f"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u5728 FreeBSD \u4e0b\uff0c\/etc\/fstab \u662f\u958b\u6a5f\u6642\u639b\u8f09\u78c1\u789f\u7684\u4f9d\u64da\uff0c\u901a\u5e38\u770b\u5230\u7684\u5f62\u5f0f\u6703\u662f\u985e\u4f3c\u9019\u6a23\u7684<\/p>\n<pre lang=\"none\">\/dev\/ad0s1a             \/               ufs     rw              1       1<\/pre>\n<p>\u4e0d\u904e\u9019\u6a23\u6703\u7522\u4e00\u500b\u554f\u984c\uff0c\u5982\u679c\u63db\u4e86\u4e00\u500b\u786c\u789f\u7684\u4f4d\u7f6e\u7684\u8a71\u5f88\u6709\u53ef\u80fd ad0 \u5c31\u4e0d\u518d\u662f ad0\uff0c\u958b\u6a5f\u6642\u5c31\u6703\u5361\u4f4f\u53eb\u4f60\u624b\u6a5f\u8f38\u5165\u6b63\u78ba\u7684 root \u6a94\u6848\u7cfb\u7d71\u4e4b\u4f4d\u7f6e\uff0c\u9019\u6642\u5019 label \u5c31\u6d3e\u4e0a\u7528\u5834\u4e86\uff0c\u6211\u5011\u53ef\u4ee5\u7528 glabel \u5e6b\u5206\u5272\u5340\u52a0\u4e0a label<br \/>\n<strong>glabel label root_fs \/dev\/ad0s1a<\/strong><br \/>\n\u9019\u6a23\u5c31\u6703\u5728 \/dev\/label \u4e0b\u51fa\u73fe\u4e00\u500b\u65b0\u7684\u6a94\u6848\u53eb root_fs\uff0c\u7136\u5f8c \/etc\/fstab \u4e0b\u5c31\u53ef\u4ee5\u6539\u6210\u9019\u6a23\u5beb\uff0c\u4e0d\u7528\u7ba1\u4ed6\u662f ad0 \u9084\u662f ad1 \u6216\u662f\u5565\u7684\u4e86\u3002<\/p>\n<pre lang=\"none\">\/dev\/label\/root_fs             \/               ufs     rw              1       1<\/pre>\n<p>\u9019\u65b9\u6cd5\u7684\u554f\u984c\u662f\u5728\u65bc\uff0c\u639b\u8f09\u4e2d\u7684\u78c1\u789f\u662f\u4e0d\u80fd\u52a0 label \u7684\uff0c\u8981\u561b\u5c31\u662f\u53bb\u627e\u5f35 Live CD \u958b\u6a5f\u5f8c\u5728\u9084\u6c92\u639b\u8f09\u7684\u60c5\u6cc1\u4e0b\u4f86\u4fee\u6539\uff0c\u4e0d\u7136\u5c31\u8981\u7528\u53e6\u4e00\u500b\u65b9\u6cd5\u4e86\u3002<br \/>\n\u57f7\u884c <strong>dumpfs \/dev\/ad0s1a | grep id<\/strong> \u5c31\u53ef\u4ee5\u770b\u5230 ad0s1a \u7684 ufsid \u662f\u5565\uff0c\u9019\u500b\u503c\u61c9\u8a72\u6703\u51fa\u73fe\u5728 \/dev\/ufsid \u88e1\u9762 (\u6c92\u770b\u5230\u6c92\u5dee)\uff0c\u7136\u5f8c\u6539 \/etc\/fstab<\/p>\n<pre lang=\"none\">\/dev\/ufsid\/4d6b031d6e0de88e             \/               ufs     rw              1       1<\/pre>\n<p>\u9019\u6a23\u6548\u679c\u4e00\u6a23\uff0c\u958b\u6a5f\u6642\u5c31\u6703\u81ea\u52d5\u53bb\u627e\u662f\u9019\u500b ufsid \u7684\u78c1\u789f\u4e86\uff0c\u81f3\u65bc swap  \u7684\u8a71\u7576\u7136\u4e0d\u6703\u6709 ufsid \u9019\u6771\u897f\uff0c\u6240\u4ee5\u9084\u662f\u4e56\u4e56\u7684\u7528 label \u8655\u7406\u5427\u3002<\/p>\n<p>\u8a3b\uff1azfs \u4e0d\u7528\u9019\u7a2e\u65b9\u5f0f\u639b\u8f09\uff0c\u7528 zfs \u7684\u8a71\u53ef\u4ee5\u76f4\u63a5\u5ffd\u7565\u672c\u7bc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u5728 FreeBSD \u4e0b\uff0c\/etc\/fstab \u662f\u958b\u6a5f\u6642\u639b\u8f09\u78c1\u789f\u7684\u4f9d\u64da\uff0c\u901a\u5e38\u770b\u5230\u7684\u5f62\u5f0f\u6703\u662f\u985e\u4f3c\u9019\u6a23\u7684 \/dev\/ad0s1a \/ ufs rw 1 1 \u4e0d\u904e\u9019\u6a23\u6703\u7522\u4e00\u500b\u554f\u984c\uff0c\u5982\u679c\u63db\u4e86\u4e00\u500b\u786c\u789f\u7684\u4f4d\u7f6e\u7684\u8a71\u5f88\u6709\u53ef\u80fd ad0 \u5c31\u4e0d\u518d\u662f ad0\uff0c\u958b\u6a5f\u6642\u5c31\u6703\u5361\u4f4f\u53eb\u4f60\u624b\u6a5f\u8f38\u5165\u6b63\u78ba\u7684 root \u6a94\u6848\u7cfb\u7d71\u4e4b\u4f4d\u7f6e\uff0c\u9019\u6642\u5019 label \u5c31\u6d3e\u4e0a\u7528\u5834\u4e86\uff0c\u6211\u5011\u53ef\u4ee5\u7528 glabel \u5e6b\u5206\u5272\u5340\u52a0\u4e0a label glabel label root_fs \/dev\/ad0s1a \u9019\u6a23\u5c31\u6703\u5728 \/dev\/label \u4e0b\u51fa\u73fe\u4e00\u500b\u65b0\u7684\u6a94\u6848\u53eb root_fs\uff0c\u7136\u5f8c \/etc\/fstab \u4e0b\u5c31\u53ef\u4ee5\u6539\u6210\u9019\u6a23\u5beb\uff0c\u4e0d\u7528\u7ba1\u4ed6\u662f ad0 \u9084\u662f ad1 \u6216\u662f\u5565\u7684\u4e86\u3002 \/dev\/label\/root_fs \/ ufs&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[192,4284],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-boot","tag-fstab"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/1231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=1231"}],"version-history":[{"count":5,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/1231\/revisions"}],"predecessor-version":[{"id":1575,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/1231\/revisions\/1575"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}