0

I'm trying to shrink my btrfs 900Gib HDD down to 500Gib so that I can transfer it using clonezilla to my new 500 Gib SSD.

I thought that I could just shrink down the partition using gparted, but it fails with this error:

GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Shrink /dev/sda2 from 931.01 GiB to 406.71 GiB  01:20:34    ( ERROR )

calibrate /dev/sda2  00:00:01    ( SUCCESS )

path: /dev/sda2 (partition)
start: 1050624
end: 1953519615
size: 1952468992 (931.01 GiB)
shrink file system  01:20:33    ( ERROR )

btrfs filesystem resize 1:426467328K '/mnt'  01:20:33    ( ERROR )

Resize '/mnt' of '1:426467328K'
ERROR: unable to resize '/mnt': No space left on device

========================================

This also occurs when I try and resize from 470GiB -> 433GiB. I don't believe that it can run out of space on the disk as there is 497GiB. Gparted

This was performed on an unencrypted home folder from the kubuntu 18.04.01 live usb.

EDIT 0: Output of sudo filesystem show /mnt (Which is where I have

/dev/sda2 mounted)
kubuntu@kubuntu:~$ sudo btrfs filesystem show /mnt
Label: none  uuid: 029c3c88-8edb-4da0-a741-5d912950e2e1
        Total devices 1 FS bytes used 406.61GiB
        devid    1 size 473.68GiB used 461.10GiB path /dev/sda2
Sarah Szabo
  • 1,513
  • 8
  • 30
  • 59

1 Answers1

0

I found that there were some old Timeshift snapshots. I deleted the snapshots on /dev/sda2 and was able to compress the disk.

It escaped my noticed because I had long since removed and purged timeshift, but the snapshots had remained and bloated due to all the movement on the filesystem.

Sarah Szabo
  • 1,513
  • 8
  • 30
  • 59