How to shrink image?

Hi all, I’'m newbie in manjaro.

How to shrink manjaro image? I tried the usual way (with GPT fix) but didn’t want to turn it on.

I shrink image with fdisk (remove second partition and create new, little bit smaller), and then fix the GPT with gdisk, and look good:

Disk /dev/sda: 7.4 GiB, 7910457344 bytes, 15450112 sectors
Disk model: SDDR-399
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: BAF0ADF7-CCE3-4FEB-B083-B81373F698DE

Device      Start      End  Sectors   Size Type
/dev/sda1   62500   500000   437501 213.6M Microsoft basic data
/dev/sda2  500001 15039224 14539224     7G Linux filesystem

(In microSD card reader connected the other rockpi, thats why shows sda not mmcblk)
It seems to boot, signal on hdmi, boot messages appear (no error), then black, no ethernet.
There is a continuous signal on HDMI, but only black.

What have I done wrong?

Update: PARTUUID is match (blkid = extlinux.conf), parted, fdisk, gdisk, e2fsck is ok.
Update2: All boot steps running, last line: “Starting kernel…” and black screen.

Thank you!

Here it is perfectly explained: HOWTO – Resize partitions in raw disk (dd) image files (.img) – Random notes of a SysAdmin

Thank you, but its not valid at here.

  • We have GPT and MBR.
  • Not ubuntu, not debian, no grub.

Doesn’t matter. It’s linux and the tools are universal for any distro.

You said that this is an image right? Not a physical partition.