[vc_row][vc_column][vc_column_text]In cases, we need a large working space, for example, we want to build kernel right on pcDuino. The on-board flash is not large enough to hold all the data and program. We would like to use a SD with large capacity, for example, 16 GB.
What about the system and data we installed on flash? No worry. pcDuino has a nice feature to backup and restore everything from flash to SD card with just a single mouse click.
First on pcDuino, we launch a terminal, and enter ‘$sudo board-configure.sh’:
Opps. We haven’t inserted the SD card into the SD slot of pcDuino yet. Let’s insert it and hit ‘Yes’:
Power cycle the pcDuino with the newly created SD in, we can also check if the SD card is able to boot pcDuino by following: http://learn.linksprite.com/?p=880
We reboot pcDuino, and check the storage space using:
In the above figure, we can see that although the SD card is of capacity 16GB, it only shows up as 2GB.
We are going to use a script to expand the file system to the whole SD card.
$sudo bash ./expand_sdcard_rootfs.sh
After the expansion, we reboot pcDuino by:
After reboot, we run:
$sudo resize2fs /dev/mmcblk0p2
Check the storage space again using
We can see that we get a full access to the SD card.[/vc_column_text][/vc_column][/vc_row]