Hardware Reference
In-Depth Information
tmpfs 100M 0 100M 0% /run/user
/dev/mmcblk0p1 96M 62M 35M 65% /media/BEAGLEBONE
/dev/mmcblk1p2 1.8G 290M 1.4G 18% /media/rootfs
/dev/mmcblk1p1 16M 520K 16M 4% /media/BEAGLEBONE_
This prints out how much of the disk is free. The first line is the one we're interested in. If
the Size is much smaller than the size of your microSD card, you'll need to resize your
partition. Just enter the following:
root@beaglebone:/var/lib/cloud9# cd /opt/scripts/tools/
root@beaglebone:/opt/scripts/tools# ./grow_partition.sh
root@beaglebone:/opt/scripts/tools# reboot
root@beaglebone:/var/lib/cloud9# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.2G 2.0G 5.0G 29% /
udev 10M 0 10M 0% /dev
tmpfs 100M 676K 99M 1% /run
/dev/mmcblk0p2 7.2G 2.0G 5.0G 29% /
tmpfs 249M 0 249M 0% /dev/shm
tmpfs 249M 0 249M 0% /sys/fs/cgroup
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 100M 0 100M 0% /run/user
/dev/mmcblk0p1 96M 62M 35M 65% /media/BEAGLEBONE
/dev/mmcblk1p2 1.8G 290M 1.4G 18% /media/rootfs
/dev/mmcblk1p1 16M 520K 16M 4% /media/BEAGLEBONE_
This clever script will figure out how big the partition can be and grow it to that size. A
reboot is necessary.
Here, I started by putting a 4 GB image on an 8 GB microSD card. Initially, only 3.2 GB
were usable. After growing the partition, most of the card (7.2 GB) is available.
Mac
If you are running from a Mac host, the steps are fairly similar to running on a Linux host,
except that you won't be able to view the Linux partition on the created microSD card.
Begin by plugging a 4 GB or bigger microSD card into a reader on your host and then run
Disk Utility. Select the disk and click Info. In Figure 1-29 , you can see the Disk Identifier
is disk1s1 .
Search WWH ::




Custom Search