Installing the Filesystem to an SD Card: Difference between revisions

From RidgeRun Developer Wiki
(Created page with '= 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...')
 
No edit summary
Line 9: Line 9:
<pre>
<pre>
$ cd <sdk install dir>
$ cd <sdk install dir>
$ FSROOT=$PWD/fs/fs
$ FSROOT=$(PWD)/fs/fs
</pre>
</pre>


Line 26: Line 26:


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


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

Revision as of 00:44, 16 December 2010

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.