I recently read a thread on how to properly migrate my system from my 8GB sandisk to a 16GB one. The reason is I needed to apt dist-upgrade but there wasn't enough capacity. Also, my 8GB one is old so it's pretty beat up already.

I lost the link of the thread and I can't seem to find it now, but to summarize, to do a proper transfer it's best to image (via dd) my whole 8GB first, verify the integrity, then dd it again to my 16GB. after it's done, I have to increase the capacity of my root partition using parted.

My problem is the 3rd partition in my 16GB flashdrive doesn't seem to have increased.

here's a df -H

Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 391M 17M 375M 5% /run
/dev/sdb1 3.0G 3.0G 0 100% /lib/live/mount/medium
/dev/loop0 2.7G 2.7G 0 100% /lib/live/mount/rootfs/filesystem.squashfs
tmpfs 2.0G 0 2.0G 0% /lib/live/mount/overlay
/dev/mapper/sdb3 4.5G 3.0G 1.3G 70% /lib/live/mount/persistence/sdb3
overlay 4.5G 3.0G 1.3G 70% /
tmpfs 2.0G 12M 2.0G 1% /dev/shm
tmpfs 5.3M 0 5.3M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 13k 2.0G 1% /tmp
tmpfs 391M 13k 391M 1% /run/user/131
tmpfs 391M 54k 391M 1% /run/user/0
/dev/sdb2 701k 680k 21k 98% /media/root/Kali Live
/dev/sda1 161G 158G 2.2G 99% /media/root/F4A6118FA6115388


and an fdisk -l (omitted /dev/sda1 since it's my internal HDD)

Disk /dev/sdb: 14.3 GiB, 15376318464 bytes, 30031872 sectors
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: dos
Disk identifier: 0xa9ef3e16

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 5734399 5734336 2.8G 17 Hidden HPFS/NTFS
/dev/sdb2 5734400 5735807 1408 704K 1 FAT12
/dev/sdb3 5735808 30031871 24296064 11.6G 83 Linux


Disk /dev/loop0: 2.5 GiB, 2679435264 bytes, 5233272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/sdb3: 11.6 GiB, 12437487616 bytes, 24291968 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


as you can see, /dev/sdb3 should have well over 11G. However, once it's mounted it seems to loose a lot of capacity it should have.

P.S. I don't know where to insert this, but I'm using a luks encryption on that sdb3 partition, and I think that's messing with it.

How can I fix this? If it has something to do with luks, will it be possible to fix it without losing data?

I don't have any way to backup my data, and I'm always on metered connection so uploading my data online is a no way to go.