把rootfs放在硬盘上 ,今天发现终于基本搞定了。不过还有点有遗留问题
就是 硬盘在mount命令下显示的还是mmcblk0p2
看下面这个,是什么地方不对呢
root@localhost:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 1.8G 1006M 718M 59% /
devtmpfs 408M 4.0K 408M 1% /dev
none 408M 0 408M 0% /tmp
none 82M 256K 82M 1% /run
none 408M 0 408M 0% /var/tmp
none 5.0M 0 5.0M 0% /run/lock
none 408M 0 408M 0% /run/shm
none 100M 0 100M 0% /run/user
root@localhost:/# resize2fs /dev/sda1
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/sda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/sda1 is now 2441872 blocks long.
root@localhost:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 9.2G 1008M 7.9G 12% /
devtmpfs 408M 4.0K 408M 1% /dev
none 408M 0 408M 0% /tmp
none 82M 256K 82M 1% /run
none 408M 0 408M 0% /var/tmp
none 5.0M 0 5.0M 0% /run/lock
none 408M 0 408M 0% /run/shm
none 100M 0 100M 0% /run/user
root@localhost:/# mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
devtmpfs on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /tmp type tmpfs (rw)
none on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /var/tmp type tmpfs (rw)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
|