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.
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
Choose the drive you want to make changes to (e.g. 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
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
$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