How to resize the rootfs?

Hi @why,

From my very limited info for this part, Please check below two things:

  • If you are using the UEFI/ARM-TF, I think you should use the script [1] to generate ptable; I noticed you are using the script https://github.com/96boards-hikey/partition-table-tool, but I think this repository is obsolete;

  • Suggest you could read more detailed info in the page [2], especially you should note the tool ‘gdisk’, you cannot directly use distro’s default binary, you need build it with one extra patch:

sudo apt-get source gdisk

cd gdisk-1.0.1

patch -p1 < ${l-loader}/0001-sgdisk-force-blocksize-as-4096.patch

make

cp sgdisk ${l-loader}/sgdisk

[1] https://github.com/96boards-hikey/l-loader/blob/testing/hikey960_v1.2/generate_ptable.sh
[2] https://github.com/96boards-hikey/tools-images-hikey960/blob/master/build-from-source/README-ATF-UEFI-build-from-source.md

I got it, thank you very much

I encountered this problem, no matter how much I expand the / dev / sdd10,
my root directory is only 3.1G, you can see from the following
information.
Any help would be very much appreciated.Thank you.
root@linaro-developer:~# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/root 3.1G 1.4G 1.8G 44% /
root@linaro-developer:~# mount -l

/dev/sdd10 on / type ext4 (rw,relatime,data=ordered) [rootfs]