求科普,sd卡容量问题
8g的tf卡用df查看怎么感觉少了一半呢?
求科普
pi@raspberrypi ~ $ df -h
Filesystem SizeUsed Avail Use% Mounted on
rootfs 1.8G1.6G111M94% /
/dev/root 1.8G1.6G111M94% /
tmpfs 19M216K 19M 2% /run
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 37M8.0K 37M 1% /tmp
tmpfs 10M 0 10M 0% /dev
tmpfs 37M 0 37M 0% /run/shm
/dev/mmcblk0p1 56M 35M 22M61% /boot 按照这个调整了一下
http://www.shumeipai.net/read.php?tid=426
貌似哪里不对。。。
pi@raspberrypi / $ sudo fdisk -c /dev/mmcblk0
Command (m for help): p
Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes
4 heads, 16 sectors/track, 242560 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00016187
Device Boot Start End Blocks IdSystem
/dev/mmcblk0p1 8192 122879 57344 cW95 FAT32 (LBA)
/dev/mmcblk0p2 122880 15523839 7700480 83Linux
Command (m for help): q
pi@raspberrypi / $ df -h
Filesystem SizeUsed Avail Use% Mounted on
rootfs 1.8G1.6G111M94% /
/dev/root 1.8G1.6G111M94% /
tmpfs 19M216K 19M 2% /run
tmpfs 5.0M 05.0M 0% /run/lock
tmpfs 37M4.0K 37M 1% /tmp
tmpfs 10M 0 10M 0% /dev
tmpfs 37M 0 37M 0% /run/shm
/dev/mmcblk0p1 56M 35M 22M61% /boot 看你分区已经修改成功了,fdisk 显示的是8G。
你重启,执行sudo resize2fs /dev/mmcblk0p2了吗?
这是让系统重新检测容量。 sudo resize2fs /dev/mmcblk0p2
搞定谢谢
页:
[1]