We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-05-08 14:03:37 +0200

btrfs balancing preparation

Hello, my phone has the BTRFS disease, it's totally out of space. This caused the 1.1.4 update to fail badly, I can't use the GUI anymore and I'm stuck with ssh access. Apparently, to prepare for performing the balance operation, I need to clear as much space as possible.

However, what meager knowledge of the Linux command line I have will only get me so far in tracking down the largest space hogs and efficiently getting rid of them. Could I get some command line help from the pros for

  1. quickly finding largest and unneeded files and
  2. deleting them in bulk wherever possible?

Otherwise this will literally take me weeks to get done, and it'd be quicker and less effort to send it in for repair.

btrfs balancing preparation

Hello, my phone has the BTRFS disease, it's totally out of space. This caused the 1.1.4 update to fail badly, I can't use the GUI anymore and I'm stuck with ssh access. Apparently, to prepare for performing the balance operation, I need to clear as much space as possible.

However, what meager knowledge of the Linux command line I have will only get me so far in tracking down the largest space hogs and efficiently getting rid of them. Could I get some command line help from the pros for

  1. quickly finding largest and unneeded files and
  2. deleting them in bulk wherever possible?

Otherwise this will literally take me weeks to get done, and it'd be quicker and less effort to send it in for repair.

EDIT: Now I performed the balance operations twice, and apparently after the 2nd one I have less space left than after the first, is that normal?

[root@Jolla nemo]# btrfs balance start / Done, had to relocate 22 out of 22 chunks [root@Jolla nemo]# btrfs fi show ERROR: unable get label Inappropriate ioctl for device Label: 'sailfish' uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387 Total devices 1 FS bytes used 6.48GiB devid 1 size 13.75GiB used 9.12GiB path /dev/mmcblk0p28 Btrfs v3.16 [root@Jolla nemo]# btrfs balance start / Done, had to relocate 12 out of 12 chunks [root@Jolla nemo]# btrfs fi show ERROR: unable get label Inappropriate ioctl for device Label: 'sailfish' uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387 Total devices 1 FS bytes used 6.49GiB devid 1 size 13.75GiB used 10.13GiB path /dev/mmcblk0p28 Btrfs v3.16