User Tools

Site Tools


tutorials:ct1:installation:moving_rootfs_from_nandflash_to_hard_drive

Moving Rootfs From Nandflash To Hard Drive

About this Article

Abstract

This guide shows you how to install Lubuntu Desktop/Server's rootfs from nandflash to the hard drive. We can get +100MB/s R/W from Cubie1/2/3 SATA port now. Installing the rootfs to SSD hard drive, makes the Cubietruck really like a Linux PC. This guide only works for ct-lubutnu-desktop/server v1.00 or later.

Installation

Installing Lubuntu Desktop/Server to Nandflash

Prepeare the drive for rootfs

The drive must have a primary partition (for example with 10 GByte) formated with filesystem "ext4". You can use the Linaro user interface DISK app, gparted or use the following shell commands

list all available drives

#fdisk -l

Choose the drive you want to make changes to (e.g. sda):

#fdisk /dev/sda

use "p" (print partition of a drive), "d" delete a partition or "n" (create new partition). The partition should be of type "83"

Format the partition for rootfs with EXT4 filesystem

#mkfs.ext4 /dev/sda1

Copying Rootfs

We assume that, /dev/sda is the hard drive we want to install

$sudo su - root
#dd if=/dev/nandb of=/dev/sda1 bs=1M

Changing Boot Parameters

$sudo su - root
#mount /dev/nanda /mnt
#vi /mnt/uEnv.txt

Change the contents of uEnv.txt to

root@cubietruck:~# cat /mnt/uEnv.txt 
console=tty0
extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
nand_root=/dev/sda1
#sync
#umount /mnt
#reboot

See Also

tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive.txt · Last modified: 2013/12/23 14:50 (external edit)