====== Moving Rootfs From Nandflash To Hard Drive ====== //__About this Article__// * **Author**: --- --- 2013/11/05 17:51 * **Copyrights**: [[http://creativecommons.org/licenses/by-sa/3.0/|CC Attribution-Share Alike 3.0 Unported]] * **Contributors**: [[http://cubieboard.org/|Cubieboard Community]] : ... ===== 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 ==== Please refer to http://docs.cubieboard.org/tutorials/ct1/installation/cb3_lubuntu-12.10-desktop_nand_installation_v1.00 ==== 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 === {{tag>Cubieboard Cubietruck}}