About this Article
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.
Please refer to http://docs.cubieboard.org/tutorials/ct1/installation/cb3_lubuntu-12.10-desktop_nand_installation_v1.00
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
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