Disk full - Unable to delete or balance (Read-only)
I ran in the space issue on Sailfish OS Version 1.1.9.28 and have problems to solve it. Asking the search function and google didn't helped me.
Probably because there is no space left on my Jolla I'am unable to activate the developer mode and delete some files over ssh and do the BTRFS balance. Look's like my necessary account for the dev-mode was removed or are not accessible like messages and contacts. Adding a new account isn't possible (At least on the GUI, because the list when selecting 'Add account' is empty). So I tried without success the factory reset over the GUI and the recovery tool.
In the recovery tool:
Restoring factory subvolumes...
Create a snapshot of '/mnt/factory-@' in '/mnt/@'
Segmentation fault
[ERROR] Failed to recover '@' subvolume from snapshot!
When I try to balance in the recovery shell after a
/ # mount -o nospace_cache,clear_cache,enospc_debug,nodatacow /dev/mmcblk0p28 /mnt
/ # btrfs balance start -dusage=5 /mnt/
I get an permission error:
ERROR: error during balancing '/mnt/' - Read-only file system
Even when chroot to the Sailfish filesystem I can't delete or 'echo > /path/to/yourfile' files in the nemo home due the Read-only.
mkdir /mnt/rootfs
mount /dev/mmcblk0p28 /mnt/rootfs
(mount /dev -o bind /mnt/rootfs/dev)
chroot /mnt/rootfs
/ # btrfs fi show
Label: 'sailfish' uuid: 4b9a7c4f-83c2-49be-b2b7-6fe67cc12eae
Total devices 1 FS bytes used 9.74GiB
devid 1 size 13.75GiB used 13.31GiB path /dev/mmcblk0p28
Btrfs v3.16
I've deleted some old backups in the GUI. Before it was 13.75GiB of 13.75GiB.
Is there a way to access over ssh in the recovery-mode? Or did I miss something because of the read-only (already tried 'su')?
I would greatly appreciate any suggestions. Thanks in advance!
EDIT:
Some additional information:
/ # btrfs fi df /mnt/rootfs/
Data, single: total=12.58GiB, used=8.96GiB
System, DUP: total=40.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=330.00MiB, used=74.89MiB
Metadata, single: total=8.00MiB, used=0.00
Try to find some more files to delete on the recovery mode, then hope that you can activate developer mode normally... I faced a similar problem, but luckily had the developer mode enabled (with no password to use over ssh though): https://together.jolla.com/question/105346/problem-with-btrfs-allocation-filesystem-full-and-jolla-account-sign-in/ Hope you find a solution!
jaine ( 2015-11-11 13:03:23 +0200 )editHello, my first idea would be to free some space, by doing a backup of some photos/videos/download data to the sd-card and delete then from the internal memory. The read-only problem appears, because mount is mounting read-only by default (?), telling it explicitly to mount with write-permissions might help. You can do that by adding "rw" to the mount-options. I hope this helps. Regards, Hades.
Hades0299 ( 2015-11-11 13:05:55 +0200 )editThanks for the ideas! But even if mounting with explicit -w for read-write the files can't deleted. Looks like it is already a default option.
gh ( 2015-11-11 15:00:51 +0200 )editI'have similar problem. I could start my phone after optimizing as prequisite to the update and tried to remove some files from with recovery mode to free some space, but get same message "Read-only file system"
Peeter ( 2015-11-11 15:26:37 +0200 )editHi, i did some searching, and found this. Hiibe it helps. Regards, Hades.
Hades0299 ( 2015-11-11 15:41:24 +0200 )edit