|
楼主 |
发表于 2016-12-29 11:58:22
|
显示全部楼层
cubieboard2的nand扩充到3.6GB步骤:
1、下载cb2-lubuntu-en-4g-card0.img.gzhttp://dl.cubieboard.org/softwar ... -a20-lubuntu-v1.07/
解压后,用Win32DiskImager写入tf卡
2、tf插入cubieboard2,开机
sudo su
nand-part -f a20 /dev/nand
看到如下
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
3 partitions
partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 131072 user_type=0
partition 2: class = DISK, name = rootfs, partition start = 163840, partition size = 6291456 user_type=0
partition 3: class = DISK, name = UDISK, partition start = 6455296, partition size = 1277952 user_type=0
4、
nand-part -f a20 /dev/nand 32768 "bootloader 131072" "rootfs 7569408"
看到如下(注:7569408=6291456+1277952)
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
3 partitions
partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 131072 user_type=0
partition 2: class = DISK, name = rootfs, partition start = 163840, partition size = 6291456 user_type=0
partition 3: class = DISK, name = UDISK, partition start = 6455296, partition size = 1277952 user_type=0
check partition table copy 0: mbr: version 0x00000200, magic softw411
check partition table copy 1: mbr: version 0x00000200, magic softw411
check partition table copy 2: mbr: version 0x00000200, magic softw411
check partition table copy 3: mbr: version 0x00000200, magic softw411
ready to write new partition tables:
mbr: version 0x00000200, magic softw411
2 partitions
partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 131072 user_type=0
partition 2: class = DISK, name = rootfs, partition start = 163840, partition size = 7569408 user_type=0
write new partition tables? (Y/N)
y
verifying new partition tables:
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 131072 user_type=0
partition 2: class = DISK, name = rootfs, partition start = 163840, partition size = 7569408 user_type=0
rereading partition table... returned 0
5、重启一下
reboot
6、开机后
sudo su
e2fsck -f /dev/nandb
看到如下
e2fsck 1.42.5 (29-Jul-2012)
/dev/nandb: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (342657, counted=343239).
Fix<y>? yes
Free inodes count wrong (306159, counted=306168).
Fix<y>? yes
/dev/nandb: ***** FILE SYSTEM WAS MODIFIED *****
/dev/nandb: 72840/379008 files (0.1% non-contiguous), 443193/786432 blocks
7、resize2fs /dev/nandb
8、关机
poweroff
9、拔出tf卡
10、启动cubieboard2
11、
df -lh
看到如下
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.6G 1.7G 1.8G 48% /
devtmpfs 382M 4.0K 382M 1% /dev
tmpfs 20M 4.0K 20M 1% /tmp
none 96M 212K 96M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 478M 0 478M 0% /run/shm
none 100M 16K 100M 1% /run/user
|
|