Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

i.MX8 Mini + Yocto 2.5: Can't resize root partition using gparted #8

Open
erikly01 opened this issue Oct 9, 2019 · 1 comment
Open

Comments

@erikly01
Copy link

erikly01 commented Oct 9, 2019

Hi,

I followed the instructions for resizing the partition posted to the Wiki. Everything works up to the point I open gparted.

The mmcinfo command shows the following

u-boot=> mmcinfo
Device: FSL_SDHC
Manufacturer ID: 70
OEM: 100
Name: TB291
Bus Speed: 52000000
Mode : MMC DDR52 (52MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 14.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 14.6 GiB
Boot Capacity: 4 MiB ENH
RPMB Capacity: 4 MiB ENH
u-boot=> ums 0 mmc 1

However, after using the gparted command, it shows no unallocated space for the expansion.
sudo gparted /dev/sdb
gparted-no-space

What should I do to get the unallocated space to match the actual capacity of the mmc part?
How should i resize the partition?

Thanks in advance for you help!

@richard-hu
Copy link
Collaborator

richard-hu commented Oct 11, 2019

@erikly01 :

For the picture you post, it looks the command you issue isn't correct.
The correct command should be:

sudo gparted /dev/sdb

Instead of:

sudo gparted /dev/sdb2

Or try to fix the corrupted file system, then read partition table again:

Repair corrupted file system:
# sudo fsck -y /dev/sdb
Re-read partition table:
# sudo hdparm -z /dev/sdb
Execute ‘gparted’:
# sudo gparted /dev/sdb

BR,

TechNexion Support team

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants