<分区>
我正在开发带有 Linux 的 SBC6845 卡: 我安装了 4 个分区:
Creating 5 MTD partitions on "atmel_nand":
0x000000000000-0x000000100000 : "Factory"
0x000000100000-0x000000300000 : "Kernel1"
0x000000300000-0x000000500000 : "Kernel2"
0x000000500000-0x000008280000 : "Rootfs1"
0x000008280000-0x000010000000 : "Rootfs2"
我想制作一个 shell 脚本来显示当前使用的分区,但我不知道该怎么做。
命令“df -h”返回:
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 178.8G 65.4G 104.3G 39% /
tmpfs 61.7M 0 61.7M 0% /dev/shm
tmpfs 61.7M 36.0K 61.7M 0% /tmp
而且 fdisk
在此系统上不起作用。
有人知道如何解决这个问题吗?