{"id":496,"date":"2017-01-05T21:21:18","date_gmt":"2017-01-05T12:21:18","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/01\/05\/raspberry_pi_2_ubuntu_matesd\/"},"modified":"2017-01-05T21:21:18","modified_gmt":"2017-01-05T12:21:18","slug":"raspberry_pi_2_ubuntu_matesd","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/01\/05\/raspberry_pi_2_ubuntu_matesd\/","title":{"rendered":"Raspberry PI 2 \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fUbuntu Mate\u306bSD\u30ab\u30fc\u30c9\u306e\u3059\u3079\u3066\u306e\u5bb9\u91cf\u3092\u8a8d\u8b58\u3055\u305b\u308b"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/Raspberry-%E3%83%9C%E3%83%BC%E3%83%89%EF%BC%86%E3%82%B1%E3%83%BC%E3%82%B9%E3%82%BB%E3%83%83%E3%83%88-Element14%E7%89%88-Computing-Lab\/dp\/B01CSFZ4JG\/ref=as_li_ss_il?ie=UTF8&amp;qid=1483618433&amp;sr=8-1&amp;keywords=raspberry+pi&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=9aadddd5ffb5a2df9cac58e49f34cee6\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B01CSFZ4JG&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=B01CSFZ4JG\" width=\"1\" height=\"1\">  <\/p>\n<h2>1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a title=\"https:\/\/www.raspberrypi.org\/downloads\/\" href=\"https:\/\/www.raspberrypi.org\/downloads\/\">https:\/\/www.raspberrypi.org\/downloads\/<\/a><\/p>\n<p>\u304b\u3089\u3001Ubuntu Mate \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u89e3\u51cd(<a href=\"https:\/\/sevenzip.osdn.jp\/\">7zip\u304c\u4fbf\u5229<\/a>)\u3057\u3066\u3001image \u30d5\u30a1\u30a4\u30eb\u3092\u3001micro&nbsp; SD \u30ab\u30fc\u30c9\u306b\u713c\u304f(<a href=\"https:\/\/ja.osdn.net\/projects\/sfnet_win32diskimager\/\">Win32 Disk Imager\u304c\u4fbf\u5229<\/a>)\u3002Rasbperry Pi \u306b\u3055\u3057\u3066\u8d77\u52d5\u3002<\/p>\n<h2><\/h2>\n<h2>2.SD\u30ab\u30fc\u30c9\u306e\u5168\u5bb9\u91cf\u3092\u8a8d\u8b58\u3055\u305b\u308b<\/h2>\n<p><a title=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=91&amp;t=110785\" href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=91&amp;t=110785\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=91&amp;t=110785<\/a><\/p>\n<p>32GB \u306eSD\u30ab\u30fc\u30c9\u3092\u5229\u7528\u3057\u305f\u306e\u3060\u304c\u30017.2GB \u3057\u304b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u306a\u3044\u3002<\/p>\n<pre class=\"prettyprint linenums\">root@pi:\/home\/piroto# df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/root       7.2G  3.9G  3.4G  54% \/\r\ndevtmpfs        459M     0  459M   0% \/dev\r\ntmpfs           463M  404K  463M   1% \/dev\/shm\r\ntmpfs           463M   13M  451M   3% \/run\r\ntmpfs           5.0M  4.0K  5.0M   1% \/run\/lock\r\ntmpfs           463M     0  463M   0% \/sys\/fs\/cgroup\r\n\/dev\/mmcblk0p1   64M   20M   45M  32% \/boot\r\ntmpfs            93M   44K   93M   1% \/run\/user\/1000<\/pre>\n<p><a title=\"http:\/\/raspberrypi.stackexchange.com\/questions\/37739\/ubuntu-mate-not-using-all-its-storage\" href=\"http:\/\/raspberrypi.stackexchange.com\/questions\/37739\/ubuntu-mate-not-using-all-its-storage\">http:\/\/raspberrypi.stackexchange.com\/questions\/37739\/ubuntu-mate-not-using-all-its-storage<\/a><\/p>\n<p>\u30eb\u30fc\u30c8(sudo su)\u3082\u3057\u304f\u306f sudo \u3067FDISK \u3092\u8d77\u52d5 (fdisk \/dev\/mmcblk0)<\/p>\n<pre class=\"prettyprint linenums\">root@pi:\/dev# ls -l | grep \"mmc*\"\r\nbrw-rw----  1 root disk    179,   0  4\u6708 21  2016 mmcblk0\r\nbrw-rw----  1 root disk    179,   1  4\u6708 21  2016 mmcblk0p1\r\nbrw-rw----  1 root disk    179,   2  4\u6708 21  2016 mmcblk0p2\r\nroot@pi:\/dev# fdisk \/dev\/mmcblk0\r\n\r\nWelcome to fdisk (util-linux 2.27.1).\r\nChanges will remain in memory only, until you decide to write them.\r\nBe careful before using the write command.\r\n\r\n\r\nCommand (m for help): m\r\n\r\nHelp:\r\n\r\n  DOS (MBR)\r\n   a   toggle a bootable flag\r\n   b   edit nested BSD disklabel\r\n   c   toggle the dos compatibility flag\r\n\r\n  Generic\r\n   d   delete a partition\r\n   F   list free unpartitioned space\r\n   l   list known partition types\r\n   n   add a new partition\r\n   p   print the partition table\r\n   t   change a partition type\r\n   v   verify the partition table\r\n   i   print information about a partition\r\n\r\n  Misc\r\n   m   print this menu\r\n   u   change display\/entry units\r\n   x   extra functionality (experts only)\r\n\r\n  Script\r\n   I   load disk layout from sfdisk script file\r\n   O   dump disk layout to sfdisk script file\r\n\r\n  Save &amp; Exit\r\n   w   write table to disk and exit\r\n   q   quit without saving changes\r\n\r\n  Create a new label\r\n   g   create a new empty GPT partition table\r\n   G   create a new empty SGI (IRIX) partition table\r\n   o   create a new empty DOS partition table\r\n   s   create a new empty Sun partition table<\/pre>\n<p>\u5185\u5bb9\u306e\u78ba\u8a8d(p)<\/p>\n<pre class=\"prettyprint linenums\">Command (m for help): p\r\nDisk \/dev\/mmcblk0: 29 GiB, 31117541376 bytes, 60776448 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x580a66ff\r\n\r\nDevice         Boot  Start      End  Sectors  Size Id Type\r\n\/dev\/mmcblk0p1 *      2048   133119   131072   64M  c W95 FAT32 (LBA)\r\n\/dev\/mmcblk0p2      133120 15728639 15595520  7.4G 83 Linux<\/pre>\n<p>\u524a\u9664\u304b\u3089\u518d\u4f5c\u6210(d \u2013 2 \u2013 n \u2013 p \u2013 2 \u2013 enter \u2013 enter \u2013 w) \u3057\u3001reboot<\/p>\n<pre class=\"prettyprint linenums\">Command (m for help): d\r\nPartition number (1,2, default 2): 2\r\n\r\nPartition 2 has been deleted.\r\n\r\nCommand (m for help): 2\r\n2: unknown command\r\n\r\nCommand (m for help): n\r\nPartition type\r\n   p   primary (1 primary, 0 extended, 3 free)\r\n   e   extended (container for logical partitions)\r\nSelect (default p): p\r\nPartition number (2-4, default 2): 2\r\nFirst sector (133120-60776447, default 133120):\r\nLast sector, +sectors or +size{K,M,G,T,P} (133120-60776447, default 60776447):\r\n\r\nCreated a new partition 2 of type 'Linux' and of size 28.9 GiB.\r\n\r\nCommand (m for help): w\r\nThe partition table has been altered.\r\nCalling ioctl() to re-read partition table.\r\nRe-reading the partition table failed.: Device or resource busy\r\n\r\nThe kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).\r\n<\/pre>\n<p>reboot \u3042\u3068\u3001\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u62e1\u5f35<\/p>\n<pre class=\"prettyprint linenums\">root@pi:\/home\/piroto# resize2fs \/dev\/mmcblk0p2\r\nresize2fs 1.42.13 (17-May-2015)\r\nFilesystem at \/dev\/mmcblk0p2 is mounted on \/; on-line resizing required\r\nold_desc_blocks = 1, new_desc_blocks = 2\r\nThe filesystem on \/dev\/mmcblk0p2 is now 7580416 (4k) blocks long.<\/pre>\n<p>\/ \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u300129GB \u3068\u8a8d\u8b58\u3055\u308c\u305f\u3002<\/p>\n<pre class=\"prettyprint linenums\">root@pi:\/home\/piroto# df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/root        29G  3.9G   25G  14% \/\r\ndevtmpfs        459M     0  459M   0% \/dev\r\ntmpfs           463M  200K  463M   1% \/dev\/shm\r\ntmpfs           463M  6.8M  457M   2% \/run\r\ntmpfs           5.0M  4.0K  5.0M   1% \/run\/lock\r\ntmpfs           463M     0  463M   0% \/sys\/fs\/cgroup\r\n\/dev\/mmcblk0p1   64M   20M   45M  32% \/boot\r\ntmpfs            93M   28K   93M   1% \/run\/user\/1000<\/pre>\n<p><a href=\"https:\/\/www.amazon.co.jp\/Ubuntu-Server-%E5%AE%9F%E8%B7%B5%E3%83%90%E3%82%A4%E3%83%96%E3%83%AB-%E7%8F%BE%E5%A0%B4%E3%81%A7%E5%8D%B3%E9%81%8B%E7%94%A8%E3%81%AB%E5%BD%B9%E7%AB%8B%E3%81%A4%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E8%A8%AD%E5%AE%9A%E3%81%AE%E3%83%8E%E3%82%A6%E3%83%8F%E3%82%A6-%E5%90%89%E7%94%B0%E5%8F%B2\/dp\/4048866877\/ref=as_li_ss_il?ie=UTF8&amp;qid=1483618539&amp;sr=8-14&amp;keywords=ubuntu&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=7458549dc9f04b3f4fd0f32e374fa1af\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4048866877&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4048866877\" width=\"1\" height=\"1\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb https:\/\/www.raspberrypi.org\/downloads\/ \u304b\u3089\u3001Ubuntu Mate \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u89e3\u51cd(7zip\u304c\u4fbf\u5229)\u3057\u3066\u3001image \u30d5\u30a1\u30a4\u30eb\u3092\u3001micro&nbsp; S [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[83,60],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-ubuntu"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}