• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoQuick StartHow can I use a SD with large capacity as my prima ...
Previous Next

How can I use a SD with large capacity as my primary medium?

Posted by: admin , December 27, 2013

[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.

SD16GB

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’:

step1

step2

step3

step4

Opps. We haven’t inserted the SD card into the SD slot of pcDuino yet. Let’s insert it and hit ‘Yes’:

step5

step6

step7

step8

step11

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:

$df –h

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.

$wget https://s3.amazonaws.com/pcduino/SampleCode/System/expandFS/expand_sdcard_rootfs.sh

$sudo bash ./expand_sdcard_rootfs.sh

After the expansion, we reboot pcDuino by:

$sudo reboot

After reboot, we run:

$sudo resize2fs /dev/mmcblk0p2

Check the storage space again using

$df -h

We can see that we get a full access to the SD card.[/vc_column_text][/vc_column][/vc_row]

Tags: Quick Start

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors