User Tools

Site Tools


tutorials:ct1:installation:moving_rootfs_from_nandflash_to_hard_drive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:ct1:installation:moving_rootfs_from_nandflash_to_hard_drive [2013/11/05 18:01]
119.132.97.248 created
tutorials:ct1:installation:moving_rootfs_from_nandflash_to_hard_drive [2013/12/23 14:50] (current)
Line 10: Line 10:
 ===== Abstract ===== ===== Abstract =====
  
-This guide tells you how install Lubuntu Desktop/​Server'​s rootfs from nandflash to hard drive. We can get +100MB/s R/W from Cubie1/2/3 SATA port now. Installing the rootfs to SSD hard drive, ​make Cubietruck really like Linux PC. +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 Linux PC. 
-This guide only work for ct-lubutnu-desktop/​server v1.00 or later.+This guide only works for ct-lubutnu-desktop/​server v1.00 or later.
  
  
Line 20: Line 20:
 Please refer to http://​docs.cubieboard.org/​tutorials/​ct1/​installation/​cb3_lubuntu-12.10-desktop_nand_installation_v1.00 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 ==== ==== Copying Rootfs ====
 +
 +We assume that, /dev/sda is the hard drive we want to install
 +
   $sudo su - root   $sudo su - root
   #dd if=/​dev/​nandb of=/​dev/​sda1 bs=1M   #dd if=/​dev/​nandb of=/​dev/​sda1 bs=1M
Line 30: Line 46:
   #mount /dev/nanda /mnt   #mount /dev/nanda /mnt
   #vi /​mnt/​uEnv.txt   #vi /​mnt/​uEnv.txt
 +
 +Change the contents of uEnv.txt to
  
   root@cubietruck:​~#​ cat /​mnt/​uEnv.txt ​   root@cubietruck:​~#​ cat /​mnt/​uEnv.txt ​
Line 35: Line 53:
   extraargs=console=ttyS0,​115200 hdmi.audio=EDID:​0 disp.screen0_output_mode=EDID:​1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard   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   nand_root=/​dev/​sda1
 +
 +  #sync
 +  #umount /mnt
 +  #reboot
  
  
tutorials/ct1/installation/moving_rootfs_from_nandflash_to_hard_drive.1383645700.txt.gz · Last modified: 2013/12/23 14:50 (external edit)