I am trying to clone my Linux USB live persistence from a 32 GB drive to a 64 GB drive. After I clone it, there is some unallocated space (32 GB). I have done some research but I still cannot figure it out. Below are the things that I tried.
I booted from the old USB and used
cfdisk to check the partition.
It said that there is unallocated free 32 GB on my new USB drive,
so I used
resize to resize
/dev/sdb3 from 20 GB to 54.3 G as shown:
Disk: /dev/sdb Size: 57.3 GiB, 61505273856 bytes, 120127488 sectors Label: dos, identifier: 0x0e390ebe Device Boot Start End Sectors Size Id Type /dev/sdb1 * 64 6279167 6279104 3G 17 Hidden HPFS/NTFS /dev/sdb2 6279168 6280575 1408 704K 1 FAT12 /dev/sdb3 6281216 120127487 113846272 54.3G 83 Linux
When I use
fdisk -l to check the partition,
it tells me it has 54.3 GB in the partition.
Device Boot Start End Sectors Size Id Type /dev/sdb1 * 64 6279167 6279104 3G 17 Hidden HPFS/NTFS /dev/sdb2 6279168 6280575 1408 704K 1 FAT12 /dev/sdb3 6281216 120127487 113846272 54.3G 83 Linux
But when I use
it showed me that my
/dev/sdb3 is still 26 GB:
Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 785M 11M 775M 2% /run /dev/sdb1 3.0G 3.0G 0 100% /run/live/persistence/sdb1 /dev/loop0 2.8G 2.8G 0 100% /run/live/rootfs/filesystem.squashfs tmpfs 3.9G 0 3.9G 0% /run/live/overlay /dev/sdb3 26G 18G 6.9G 72% /run/live/persistence/sdb3 overlay 26G 18G 6.9G 72% / tmpfs 3.9G 48M 3.8G 2% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup tmpfs 3.9G 324K 3.9G 1% /tmp tmpfs 785M 48K 785M 1% /run/user/0 /dev/sdb2 684K 670K 14K 98% /media/root/Kali Live
I also tried using GParted, but it doesn't help:
What can I do to extend the OS partition but not just the USB partition?