|
我使用busybox自定了一个rootfs文件系统,启动后,发现磁盘容量未能全部挂载,root目录可用空间约1个G。寻求办法挂载磁盘,多谢!!!
自定义的磁盘容量信息如下:
[0@CNEW]# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 999.7M 593.3M 338.0M 64% /
devtmpfs 1.9G 4.0K 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
[0@CNEW]# fdisk -l
Disk /dev/mmcblk0: 29 GB, 31293702144 bytes, 61120512 sectors
3820032 cylinders, 1 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk0p1 0,0,0 0,0,0 1 4294967295 4294967295 2047G ee EFI GPT
原debian10文件系统的磁盘信息如下:
toybrick@debian10:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 3.1G 25G 12% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 18M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/mmcblk0p3 95M 31M 60M 34% /boot
tmpfs 391M 4.0K 391M 1% /run/user/114
tmpfs 391M 0 391M 0% /run/user/1000
toybrick@debian10:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 29.1G 0 disk
├─mmcblk0p1 179:1 0 4M 0 part
├─mmcblk0p2 179:2 0 4M 0 part
├─mmcblk0p3 179:3 0 96M 0 part /boot
└─mmcblk0p4 179:4 0 29G 0 part /
mmcblk0boot0 179:32 0 4M 1 disk
mmcblk0boot1 179:64 0 4M 1 disk
toybrick@debian10:~$ sudo fdisk -l
[sudo] password for toybrick:
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mmcblk0: 29.1 GiB, 31293702144 bytes, 61120512 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
Disklabel type: gpt
Disk identifier: E7380000-0000-466C-8000-099D000008D5
Device Start End Sectors Size Type
/dev/mmcblk0p1 16384 24575 8192 4M unknown
/dev/mmcblk0p2 24576 32767 8192 4M unknown
/dev/mmcblk0p3 32768 229375 196608 96M unknown
/dev/mmcblk0p4 229376 61120447 60891072 29G unknown
|
|