What's new

Is this file system expanded to use the entire card

Notconnected

Regular Contributor
This is a 64GB card, but am not seeing it.
Code:
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                98.3M     24.5M     71.8M  25% /
tmpfs                     3.8G    220.0K      3.8G   0% /tmp
/dev/mmcblk0p1           63.9M     19.1M     44.8M  30% /boot
tmpfs                   512.0K         0    512.0K   0% /dev
 
Wait and see if anyone answers here:
 
Check the partition table.

Code:
fdisk -l /dev/mmcblk0
 
If thing just don't add up on a filing system you may have a fake card on your hands. If the advice from @RMerlin doesn't bring results read this.
Download the app and run it - I've had two fakes from amazon.
 
Wait and see if anyone answers here:
I did.
Check the partition table.

Code:
fdisk -l /dev/mmcblk0
This is what I get

root@OpenWrt:~# fdisk -l /dev/mmcblk0
-ash: fdisk: not found
root@OpenWrt:~#
Thanks, looks like fdisk is not installed.
EDIT I Installed fdisk and the output is below, the card did show up in rpi-imager as 64GB
Code:
Device         Boot  Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *      8192 139263  131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456 360447  212992  104M 83 Linux
root@OpenWrt:~#
 
Last edited:
I did.

This is what I get

root@OpenWrt:~# fdisk -l /dev/mmcblk0
-ash: fdisk: not found
root@OpenWrt:~#
Thanks, looks like fdisk is not installed.
EDIT I Installed fdisk and the output is below, the card did show up in rpi-imager as 64GB
Code:
Device         Boot  Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *      8192 139263  131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456 360447  212992  104M 83 Linux
root@OpenWrt:~#
We'd need to see the total block count shown above, to determine how much of it is actually used by the existing partitions.
 
Check the partition table.

Code:
fdisk -l /dev/mmcblk0
@RMerlin
fdisk was not installed, I installed it and the result is posted below.
Does fdisk need to be installed in order for the sh /expand-root.sh command to run.
Device Boot Start End Sectors Size Id Type<br>/dev/mmcblk0p1 * 8192 139263 131072 64M c W95 FAT32 (LBA)<br>/dev/mmcblk0p2 147456 360447 212992 104M 83 Linux<br>root@OpenWrt:~#
 
We'd need to see the total block count shown above, to determine how much of it is actually used by the existing partitions.
Thanks for posing, it seems blkid was missing, I installed it and ran the commad you gave me.
Code:
Configuring blkid.
root@OpenWrt:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 59.48 GiB, 63864569856 bytes, 124735488 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: dos
Disk identifier: 0x9890fa51
 
This does not look right, it seems everytime I run the command it adds
the same two files to this directory, am quit sure that is not called for,
the script seems to add them but nothing in my partition table changes.
Code:
root@OpenWrt:/etc# cat /etc/sysupgrade.conf
## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
/etc/uci-defaults/70-rootpt-resize
/etc/uci-defaults/80-rootfs-resize
root@OpenWrt:/etc#
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top