Issue with Usable Storage

Hi Guys,

Im Using MT7621 based hardware with 64MB SPI Flash, but Usable Space is only 13.4 MB,
Help will be greatful,

WDAdmin@Cisco_WD:~# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mtdblock0  31:0    0  192K  1 disk 
mtdblock1  31:1    0   64K  1 disk 
mtdblock2  31:2    0   64K  1 disk 
mtdblock3  31:3    0 31.7M  0 disk 
mtdblock4  31:4    0  2.4M  1 disk 
mtdblock5  31:5    0 29.3M  1 disk /rom
mtdblock6  31:6    0 13.4M  0 disk /overlay
WDAdmin@Cisco_WD:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                16.0M     16.0M         0 100% /rom
tmpfs                   249.4M      1.6M    247.8M   1% /tmp
/dev/mtdblock6           13.4M     13.0M    364.0K  97% /overlay
overlayfs:/overlay       13.4M     13.0M    364.0K  97% /
tmpfs                   512.0K         0    512.0K   0% /dev
WDAdmin@Cisco_WD:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 01fb0000 00010000 "firmware"
mtd4: 00265b69 00010000 "kernel"
mtd5: 01d4a497 00010000 "rootfs"
mtd6: 00d60000 00010000 "rootfs_data"

your rootfs size doesn't match your mtd partition size.

What i need to do to resolve this, ?

create a new image with them matching, or reduce the size of the rootfs, and increase rootfs_data size ?

IMO:

  0x50000ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”         
         ā”‚           ā”‚                                      ā”‚         
         ā”‚           ā”‚               kernel                 ā”‚         
         ā”‚           ā”‚              0x265b69                ā”‚         
         ā”‚           ā”‚                                      ā”‚         
         ā”‚           ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤0x2b5b69 
         ā”‚           ā”‚           ā”‚                          ā”‚         
         ā”‚           ā”‚           ā”‚(squashfs data for rootfs)ā”‚         
         ā”‚           ā”‚           ā”‚                          ā”‚         
         ā”‚           ā”‚           ā”‚ 0x1d4a497 - 0xd60000     ā”‚         
         ā”‚ firmware  ā”‚           ā”‚   = 0xfea497(approx. 16M)ā”‚         
         ā”‚ 0x1fb0000 ā”‚           ā”‚                          ā”‚         
         ā”‚           ā”‚  rootfs   ā”‚                          ā”‚         
         ā”‚           ā”‚ 0x1d4a497 ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤0x12a0000
         ā”‚           ā”‚           ā”‚                          ā”‚         
         ā”‚           ā”‚           ā”‚       rootfs_data        ā”‚         
         ā”‚           ā”‚           ā”‚        0xd60000          ā”‚         
         ā”‚           ā”‚           ā”‚     (approx. 13.4M)      ā”‚         
         ā”‚           ā”‚           ā”‚                          ā”‚         
         ā”‚           ā”‚           ā”‚                          ā”‚         
0x2000000ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜         
partition@50000 {
    compatible = "denx,uimage";
    label = "firmware";
    reg = <0x50000 0x1fb0000>;    ---> reg = <0x50000 0x3fb0000>;
};
3 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.