Installing the Filesystem to an SD Card

From RidgeRun Developer Wiki
Revision as of 00:46, 16 December 2010 by Jweber (talk | contribs)

Installing a filesystem to an SD card

This tutorial will guide you on manually installing the filesystem onto an SD card.

Locate the filesystem

Locate the filesystem you want to use as your root filesystem. By default, this is located at <sdk install dir>/fs/fs.

$ cd <sdk install dir>
$ FSROOT=$(PWD)/fs/fs

Mount the SD card

Create a temporary mount point and mount the SD card.

$ mkdir temp
$ sudo mount /dev/sdc1 temp

Copy the filesystem to the SD card

Copy the filesystem to the SD card, ensuring that you preserve all of the file attributes and ownership.

$ sudo cp -adpr $FSROOT/* temp
$ sync
$ sudo umount temp
$ rm -rf temp

The filesystem should now be ready to use on your board.

See also:

Formatting a new SD card