Root File System not resize, please assist

Partition table is resized, however, I am unable to get root file system to resize, it will only show 126MB Disk space

root@OpenWrt:~# fdisk -l
Disk /dev/nvme0n1: 30 GiB, 32212254720 bytes, 62914560 sectors
Disk model: VMware Virtual NVMe Disk
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: D78766DE-1636-A3BF-018E-32C9DE23EA00

Device Start End Sectors Size Type
/dev/nvme0n1p1 512 262655 262144 128M EFI System
/dev/nvme0n1p2 262656 62914526 62651871 29.9G Linux filesystem
/dev/nvme0n1p128 34 511 478 239K BIOS boot

Partition table entries are not in disk order.
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 126.3M 23.9M 99.9M 19% /
tmpfs 366.0M 84.0K 365.9M 0% /tmp
tmpfs 512.0K 0 512.0K 0% /dev

Did you only increase the size of the partition ?

there is no way i can resize the file system, everytime, there is error

if i run
fsck -f /dev/nvme0n1

fsck from util-linux 2.37.2 e2fsck 1.46.5 (30-Dec-2021)

ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup blocks...

fsck.ext2: Bad magic number in super-block while trying to open /dev/nvme0n1

The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:

e2fsck -b 8193 ‹device>


e2fsck -b 32768 ‹device>

Found a gpt partition table in /dev/nvme0n1

and nothing work

Even if you do the resize2fs 1st ?

correct: here is the error

root@OpenWrt:~# resize2fs /dev/nvme0n1p2

resize2fs 1.47.0 (5-Feb-2023)

Filesystem at /dev/nvme0n1p2 is mounted on /; on-line resizing required

old_desc_blocks = 1, new_desc_blocks = 2

resize2fs: Invalid argument While checking for on-line resizing support

root@OpenWrt:~# resize2fs /dev/nvme0n1

resize2fs 1.47.0 (5-Feb-2023)

resize2fs: Resource busy while trying to open /dev/nvme0n1

Couldn't find valid filesystem superblock.

somehow i get a new vm working, I am not sure what configuration in vmware fusion cause the issue

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