Raspbian 起動ディスクの容量

起動ディスク(と言っても Micro-SD だけど)を作成して「いざ起動!」してみる。

早速sshで入ってみると

Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Aug 19 13:34:40 2015 from katzmbp.local

NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'

pi@raspberrypi ~ $

こんなカンジ。

とりあえず状況確認、ということで容量を見てみると

pi@raspberrypi ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          2.9G  2.4G  334M  89% /
/dev/root       2.9G  2.4G  334M  89% /
devtmpfs        460M     0  460M   0% /dev
tmpfs            93M  224K   93M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           186M     0  186M   0% /run/shm
/dev/mmcblk0p1   56M   19M   37M  34% /boot

おいおい!32GBのMicroSDだよ!?なんで3GB?どういうこと?

いろいろググると、とりあえずは書いてあるとおり
sudo raspi-config
をやるのが正しいらしい。

┌──────────────────┤ Raspberry Pi Software Configuration Tool (raspi-config) ├───────────────────┐
│                                                                                                                          │
│     1 Expand Filesystem              Ensures that all of the SD card storage is available to the OS                      │
│     2 Change User Password           Change password for the default user (pi)                                           │
│     3 Enable Boot to Desktop/Scratch Choose whether to boot into a desktop environment, Scratch, or the command-line     │
│     4 Internationalisation Options   Set up language and regional settings to match your location                        │
│     5 Enable Camera                  Enable this Pi to work with the Raspberry Pi Camera                                 │
│     6 Add to Rastrack                Add this Pi to the online Raspberry Pi Map (Rastrack)                               │
│     7 Overclock                      Configure overclocking for your Pi                                                  │
│     8 Advanced Options               Configure advanced settings                                                         │
│     9 About raspi-config             Information about this configuration tool                                           │
│                                                                                                                          │
│                                                                                                                          │
│                                 <Select>                                       <Finish>                                  │
│                                                                                                                          │
└─────────────────────────────────────────────────────────────────────────┘

一番上におもいっきり書いてあった。

設定変更して再起動後に見てみると、

pi@raspberrypi ~ $ df -h
ファイルシス   サイズ  使用  残り 使用% マウント位置
rootfs            29G  2.4G   26G    9% /
/dev/root         29G  2.4G   26G    9% /
devtmpfs         460M     0  460M    0% /dev
tmpfs             93M  224K   93M    1% /run
tmpfs            5.0M     0  5.0M    0% /run/lock
tmpfs            186M     0  186M    0% /run/shm
/dev/mmcblk0p1    56M   19M   37M   34% /boot

ふぅ、よかったよかった。