I have a emmc memory containing a working Ubuntu system. I want to connect it to my Ubuntu PC and shrink the rootfs partition in order to create a new partition in the resulting free space. I tried both with gparted (using the resize GUI and clicking on Apply) and fdisk but the filesystem gets corrupted. This is the commands I used with fdisk (the rootfs partition is in /dev/sdb5):
- fdisk /dev/sdb
- d 5
- partition number: 5
- first sector: as default
- last sector: +12G
The filesystem size (according to the superblock) is 3784187 blocks The physical size of the device is 3145728 blocks Either the superblock or the partition table is likely to be corrupt! Abort?
These operations used to work with a microSD card instead of the emmc memory. What could be the reason?