{"id":37,"date":"2009-01-15T20:00:55","date_gmt":"2009-01-16T04:00:55","guid":{"rendered":"http:\/\/amegan.com\/maclog\/?p=37"},"modified":"2009-02-02T16:21:23","modified_gmt":"2009-02-03T00:21:23","slug":"changehomedir","status":"publish","type":"post","link":"https:\/\/amegan.com\/maclog\/2009\/01\/changehomedir\/","title":{"rendered":"Home \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u79fb\u52d5 2 &#8211; \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5909\u66f4"},"content":{"rendered":"<p>\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7528\u306e\u30a8\u30ea\u30a2\u304c\u3067\u304d\u305f\u3089\u3001\u307e\u305a\u306f\u73fe\u5728\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/Users\/\u30e6\u30fc\u30b6\u540d, \u4eca\u56de\u306f \/Users\/Hiro) \u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\u79c1\u306e\u5834\u5408 \/Volumes\/Home\/Hiro) \u306e\u4e0b\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<\/p>\n<pre class=\"commandline\">% sudo  ditto -v \/Users\/Hiro \/Volumes\/Home\/Hiro<\/pre>\n<p>\u7d9a\u3044\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f4d\u7f6e\u3092\u6559\u3048\u3066\u3042\u3052\u308b\u306e\u3060\u304c\u3001\u3053\u308c\u306b\u306f2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3002<\/p>\n<h2 style=\"margin: 24pt 0 14pt 0; font-weight: bold\">\u65b9\u6cd51. \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u306e\u5909\u66f4<\/h2>\n<p>Mac OS X 10.5 (Leopard) \u307e\u3067\u306f NetInfo Manager \u3068\u3044\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u304c\u3001Mac OS X 10.5 \u3067\u306f Preference \u306e Accounts \u3068\u3044\u3046\u8a2d\u5b9a\u3067\u5909\u66f4\u304c\u53ef\u80fd\u3002<\/p>\n<div id=\"attachment_44\" style=\"width: 202px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/amegan.com\/maclog\/wp-content\/uploads\/2009\/01\/accounts.png\" rel=\"lightbox[37]\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-44\" class=\"size-medium wp-image-44\" title=\"accounts\" src=\"https:\/\/amegan.com\/maclog\/wp-content\/uploads\/2009\/01\/accounts-192x300.png\" alt=\"\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a\" width=\"192\" height=\"300\" srcset=\"https:\/\/amegan.com\/maclog\/wp-content\/uploads\/2009\/01\/accounts-192x300.png 192w, https:\/\/amegan.com\/maclog\/wp-content\/uploads\/2009\/01\/accounts.png 340w\" sizes=\"auto, (max-width: 192px) 100vw, 192px\" \/><\/a><p id=\"caption-attachment-44\" class=\"wp-caption-text\">\u30a2\u30ab\u30a6\u30f3\u30c8\u8a2d\u5b9a<\/p><\/div>\n<p>\u307e\u305a\u5de6\u4e0b\u306b\u3042\u308b\u9375\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8a2d\u5b9a\u3092\u5909\u66f4\u53ef\u80fd\u306b\u3059\u308b\u3002 \u305d\u306e\u3042\u3068\u3001\u5909\u66f4\u3057\u305f\u30e6\u30fc\u30b6\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af(Control + \u30af\u30ea\u30c3\u30af) \u3092\u3057\u3066 Advanced Options &#8230; \u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u3092\u9078\u3076\u3002<\/p>\n<p>Advanced Options \u753b\u9762\u304c\u306b\u3087\u308d\u3063\u3068\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u3053\u306e Home Directory \u3068\u3044\u3046\u9805\u76ee\u306b\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/Volumes\/Home\/Hiro) \u306e\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u3053\u3053\u3067\u518d\u30ed\u30b0\u30a4\u30f3 (\u3082\u3057\u304f\u306f\u518d\u8d77\u52d5) \u3059\u308b\u3068 Mac OS X \u306f\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u6271\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f \/Users\/ \u4ee5\u4e0b\u3092\u6c7a\u3081\u6253\u3061\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u3060\u307e\u3059\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"commandline\">% sudo mv \/Users \/Users.old\r\n% sudo ln -s \/Volumes\/Home \/Users\r\n% sudo rm -rf \/Users.old<\/pre>\n<p>\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306f \/Users.old \u3092\u6d88\u3057\u305f\u3044\u4eba\u3060\u3051\u3069\u3046\u305e\u3002<\/p>\n<h2 style=\"margin: 24pt 0 14pt 0; font-weight: bold\">\u65b9\u6cd52. \u30c7\u30a3\u30b9\u30af\u69cb\u6210\u306e\u5909\u66f4<\/h2>\n<p>\u3082\u3046\u3072\u3068\u3064\u306e\u65b9\u6cd5\u306f OS X \u306e\u4e0b\u5c64\u30ec\u30a4\u30e4\u30fc\u3067\u3042\u308b Unix \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<p>Leopard \u3067\u306f vifs \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u624b\u9806\u3068\u3057\u3066\u306f<\/p>\n<pre class=\"commandline\">% diskutil info \/Volumes\/Home\/ | grep UUID<\/pre>\n<p>\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306e UUID \u3092\u898b\u3064\u3051\u308b\u3002<\/p>\n<p>Volume UUID:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1111AAAA-BBBB-CCCC-DDDD-1234ABCD5678<\/p>\n<p>\u305d\u306e\u3042\u3068\u3001<\/p>\n<pre class=\"commandline\">% sudo vifs<\/pre>\n<p>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066 \/etc\/fstab \u3092\u5909\u66f4\u3059\u308b\u3002 \u5177\u4f53\u7684\u306b\u306f\u4e0a\u3067\u898b\u3064\u3051\u305f UUID \u306b\u5bfe\u3057\u3001<\/p>\n<p>UUID=1111AAAA-BBBB-CCCC-DDDD-1234ABCD5678 \/Users hfs rw 1 0<\/p>\n<p>\u3068\u3044\u3046\u884c\u3092\u8ffd\u52a0\u3057\u4fdd\u5b58\u3002 (Journaled HFS+ \u306e\u5834\u5408\u306f hfs+ \u3058\u3083\u306a\u304f\u3066 hfs \u3092\u6307\u5b9a\u3059\u308b)<\/p>\n<p>\u3042\u3068\u306fMac\u3092\u30ea\u30d6\u30fc\u30c8\u3092\u3059\u308c\u3070 \/Users \u306b\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af\u304c\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u3002(\u3053\u306e\u65b9\u6cd5\u306e\u5834\u5408 System Preference \u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5909\u66f4\u3092\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002)<\/p>\n<p>\u53c2\u8003:<\/p>\n<ul>\n<li><a href=\"http:\/\/mux03.panda64.net\/diary\/20071105.html#p02\">Leopard\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3059\u308b<\/a><\/li>\n<li><a href=\"http:\/\/discussions.apple.com\/thread.jspa?messageID=5820852&amp;tstart=0\">Topic                 :                 Leopard and \/etc\/fstab <\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7528\u306e\u30a8\u30ea\u30a2\u304c\u3067\u304d\u305f\u3089\u3001\u307e\u305a\u306f\u73fe\u5728\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/Users\/\u30e6\u30fc\u30b6\u540d, \u4eca\u56de\u306f \/Users\/Hiro) \u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\u79c1\u306e\u5834\u5408 \/Volumes\/Home\/Hiro) \u306e\u4e0b\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002 % sudo ditto -v \/Users\/Hiro \/Volumes\/Home\/Hiro \u7d9a\u3044\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f4d\u7f6e\u3092\u6559\u3048\u3066\u3042\u3052\u308b\u306e\u3060\u304c\u3001\u3053\u308c\u306b\u306f2\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3002 \u65b9\u6cd51. \u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u306e\u5909\u66f4 Mac OS X 10.5 (Leopard) \u307e\u3067\u306f NetInfo Manager \u3068\u3044\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u305f\u3088\u3046\u3060\u304c\u3001Mac OS X 10.5 \u3067\u306f Preference \u306e Accounts \u3068\u3044\u3046\u8a2d\u5b9a\u3067\u5909\u66f4\u304c\u53ef\u80fd\u3002 \u307e\u305a\u5de6\u4e0b\u306b\u3042\u308b\u9375\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u8a2d\u5b9a\u3092\u5909\u66f4\u53ef\u80fd\u306b\u3059\u308b\u3002 \u305d\u306e\u3042\u3068\u3001\u5909\u66f4\u3057\u305f\u30e6\u30fc\u30b6\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af(Control + \u30af\u30ea\u30c3\u30af) \u3092\u3057\u3066 Advanced Options &#8230; \u3068\u3044\u3046\u30e1\u30cb\u30e5\u30fc\u3092\u9078\u3076\u3002 Advanced Options \u753b\u9762\u304c\u306b\u3087\u308d\u3063\u3068\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u3053\u306e Home Directory \u3068\u3044\u3046\u9805\u76ee\u306b\u65b0\u3057\u3044\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\/Volumes\/Home\/Hiro) \u306e\u5834\u6240\u3092\u6307\u5b9a\u3059\u308b\u3002 \u3053\u3053\u3067\u518d\u30ed\u30b0\u30a4\u30f3 (\u3082\u3057\u304f\u306f\u518d\u8d77\u52d5) \u3059\u308b\u3068 Mac OS X \u306f\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3057\u3066\u6271\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f \/Users\/ \u4ee5\u4e0b\u3092\u6c7a\u3081\u6253\u3061\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u3060\u307e\u3059\u3088\u3046\u306b\u3059\u308b\u3002 % sudo mv \/Users \/Users.old % sudo ln -s \/Volumes\/Home \/Users % sudo rm -rf \/Users.old \u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306f \/Users.old \u3092\u6d88\u3057\u305f\u3044\u4eba\u3060\u3051\u3069\u3046\u305e\u3002 \u65b9\u6cd52. \u30c7\u30a3\u30b9\u30af\u69cb\u6210\u306e\u5909\u66f4 \u3082\u3046\u3072\u3068\u3064\u306e\u65b9\u6cd5\u306f OS X \u306e\u4e0b\u5c64\u30ec\u30a4\u30e4\u30fc\u3067\u3042\u308b Unix \u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3002 Leopard \u3067\u306f vifs \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u624b\u9806\u3068\u3057\u3066\u306f % diskutil info \/Volumes\/Home\/ | grep UUID \u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u306e UUID \u3092\u898b\u3064\u3051\u308b\u3002 Volume UUID:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1111AAAA-BBBB-CCCC-DDDD-1234ABCD5678 \u305d\u306e\u3042\u3068\u3001 % sudo vifs [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3,5],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-mac","tag-leopard","tag-config"],"_links":{"self":[{"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":26,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/posts\/37\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amegan.com\/maclog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}