{"id":602,"date":"2014-09-02T07:36:10","date_gmt":"2014-09-01T22:36:10","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=602"},"modified":"2014-09-02T07:41:14","modified_gmt":"2014-09-01T22:41:14","slug":"chroot-dev_null-permission-denied","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2014\/09\/02\/chroot-dev_null-permission-denied\/","title":{"rendered":"chroot \u74b0\u5883\u3067 `\/dev\/null&#8217; \u304c\u4f7f\u3048\u306a\u304f\u3066\u56f0\u308b"},"content":{"rendered":"<div style=\"background-color: rgb(255, 255, 255); font-family: 'Lucida Grande', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 0.9em; overflow-x: hidden; overflow-y: auto; margin: 0px !important; padding: 5px 20px 26px !important;padding: 20px;padding: 20px; color: rgb(34, 34, 34); font-size: 15px; font-family: 'Roboto Condensed', Tauri, 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', AppleSDGothicNeo-Medium, 'Segoe UI', 'Malgun Gothic', Verdana, Tahoma, sans-serif; background-color: rgb(255, 255, 255); -webkit-font-smoothing: antialiased; background-position: initial initial; background-repeat: initial initial;\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">Kobo \u306e chroot \u74b0\u5883\u3067 debian \u3092\u52d5\u304b\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u306e\u3067\u305f\u307e\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u306e\u3067\u3059\u304c\uff0c\u5b9f\u6a5f\u3060\u3068\u9045\u3044\u306e\u3067PC \u306echroot \u74b0\u5883\u3067\u5b9f\u884c\u3057\u305f\u308a\u3057\u307e\u3059<br style=\"clear: both;\">\uff03\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u9055\u3044\u306fqemu \u3067\u5438\u53ce\uff0e &gt; <a href=\"https:\/\/matoken.org\/blog\/blog\/2014\/01\/22\/usermode-qemu-kono-on-debian\/\" title=\"\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3qemu \u3092\u4f7f\u3063\u3066 Kono on Debian \u306e\u30a4\u30e1\u30fc\u30b8\u3092 Host PC \u3067 apt-get \u3068\u304b\u3059\u308b | matoken's meme\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">\u30e6\u30fc\u30b6\u30fc\u30e2\u30fc\u30c9\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3qemu \u3092\u4f7f\u3063\u3066 Kono on Debian \u306e\u30a4\u30e1\u30fc\u30b8\u3092 Host PC \u3067 apt-get \u3068\u304b\u3059\u308b | matoken\u2019s meme<\/a><\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u305d\u3053\u3067\u4eca\u56de <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">apt-get update<\/code> \u4e2d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">\/bin\/sh: 1: cannot create \/dev\/null: Permission denied<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\"><code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">\/dev\/null<\/code> \u3092\u78ba\u8a8d\u3059\u308b\u3068\u3071\u3063\u3068\u898b\u30c7\u30d0\u30a4\u30b9\u306f\u554f\u984c\u306a\u3055\u305d\u3046\u3060\u3051\u3069\u4f7f\u3048\u306a\u3044\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\"># ls -la \/dev\/null<br style=\"clear: both;\">crw-rw-rw- 1 root root 1, 3 Sep  2 02:57 \/dev\/null<br style=\"clear: both;\"># echo hoge &gt; \/dev\/null<br style=\"clear: both;\">bash: \/dev\/null: Permission denied<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3059\u308b\u3068kinneko\u3055\u3093\u306e\u30da\u30fc\u30b8\u304c\u30d2\u30c3\u30c8\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\"><a href=\"http:\/\/d.hatena.ne.jp\/kinneko\/20130726\/p4\" title=\"cannot create \/dev\/null: Permission denied - kinneko@\u8ee2\u8077\u5148\u52df\u96c6\u4e2d\u306e\u65e5\u8a18\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">cannot create \/dev\/null: Permission denied &#8211; kinneko@\u8ee2\u8077\u5148\u52df\u96c6\u4e2d\u306e\u65e5\u8a18<\/a><br \/>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">\u8abf\u3079\u3066\u307f\u308b\u3068\u3001chroot\u3057\u305f\u30c4\u30ea\u30fc\u306e\u3042\u308b\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u30de\u30a6\u30f3\u30c8\u30aa\u30d7\u30b7\u30e7\u30f3\u306bnodev\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u304c\u30c0\u30e1\u306e\u3088\u3046\u3060\u3002<\/p>\n<\/blockquote>\n<\/li>\n<\/ul>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3042\u30fc\u306a\u308b\u307b\u3069!<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">chroot \u5143\u3067\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u78ba\u304b\u306b <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">nodev<\/code> \u304c\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">% mount |grep rootfs<br style=\"clear: both;\">\/dev\/sdc1 on \/media\/mk\/rootfs type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\"><code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">dev<\/code> \u3092\u4ed8\u3051\u3066 <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">remount<\/code> \u3057\u3066\u307f\u308b\u3068 <\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">% sudo mount -o remount,dev \/dev\/sdc1<br style=\"clear: both;\">% mount |grep rootfs<br style=\"clear: both;\">\/dev\/sdc1 on \/media\/mk\/rootfs type ext4 (rw,nosuid,relatime,data=ordered,uhelper=udisks2)<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\"><code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">chroot<\/code> \u3057\u306a\u304a\u3055\u306a\u304f\u3066\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\uff0e\u6bce\u56de\u30c1\u30a7\u30c3\u30af\u3057\u3066\u308b\u3093\u3067\u3059\u304b\u306d\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\"># echo hoge &gt; \/dev\/null<\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3066\u3053\u3068\u3067 update \u51fa\u6765\u305f :)<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\"># apt-get install -f<\/p>\n<\/blockquote>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B00H8X84E6\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B00FOSXTVA\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=B00A71AKXE\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Kobo \u306e chroot \u74b0\u5883\u3067 debian \u3092\u52d5\u304b\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u306e\u3067\u305f\u307e\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u884c\u3046\u306e\u3067\u3059\u304c\uff0c\u5b9f\u6a5f\u3060\u3068\u9045\u3044\u306e\u3067PC \u306echroot \u74b0\u5883\u3067\u5b9f\u884c\u3057\u305f\u308a\u3057\u307e\u3059\uff03\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u9055\u3044\u306fqemu \u3067\u5438\u53ce\uff0e &gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6],"tags":[276,32,40,275],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","tag-debian-linux","tag-jessie","tag-kobo","tag-linux"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}