Reply
Thread Tools
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#1
After cleaning device (was endless reboot). After a full recovery and download the last two firmware (1.0.3.8 from the first time installation does not start, double-loaded firmware) size of the installed system has become a very big 4GB (up to reflash was 2,2 GB). Where temporary files are stored that can be removed?
Code:
[root@localhost nemo]# btrfs fi show Label: 'sailfish' uuid: 0f8a2490-53ed-4ff6-ba34-b81df3430387 Total devices 1 FS bytes used 5.16GB devid 1 size 13.75GB used 13.75GB path /dev/mmcblk0p28

Btrfs v0.20-rc1 [root@localhost nemo]# btrfs fi df / Data: total=13.08GB, used=4.94GB System, DUP: total=8.00MB, used=4.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=330.00MB, used=228.29MB Metadata: total=8.00MB, used=0.00 [root@localhost nemo]#

Last edited by Victorious; 2014-02-16 at 22:40.
 
mced's Avatar
Posts: 115 | Thanked: 185 times | Joined on Apr 2011 @ Spain
#2
Du is your friend.

Start Terminal, login as root (devel-su), go to root directory (cd /) and type:

Code:
du -h --max-depth=1
This command will tell you how "full" is every directory. If you need to inspect deeply, change the "--max-depth" number (2, 3, 4...) or enter the "suspicious" directory and, from there, repeat the du command with depth 1.


Another way: find.
Code:
find / -size +100M
This command will find files bigger than 100 megabyte. But I prefer du because find can discover big files, but not a lot of small files occupying the same size.
 
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#3
Originally Posted by mced View Post
Du is your friend.

Start Terminal, login as root (devel-su), go to root directory (cd /) and type:

Code:
du -h --max-depth=1
Another way: find.
Code:
find / -size +100M
.
Thank you! Here is:
Code:
[root@localhost nemo]# cd /
[root@localhost /]# du -h --max-depth=1
820M    ./home
0       ./swap
456K    ./dev
5.1M    ./etc
70M     ./boot
52M     ./var
0       ./sys
du: cannot access `./proc/6734/task/6734/fd/4': No such file or directory
du: cannot access `./proc/6734/task/6734/fdinfo/4': No such file or directory
du: cannot access `./proc/6734/fd/4': No such file or directory
du: cannot access `./proc/6734/fdinfo/4': No such file or directory
du: cannot access `./proc/6748': No such file or directory
du: cannot access `./proc/6749': No such file or directory
0       ./proc
934M    ./usr
5.5M    ./bin
19M     ./lib
0       ./media
4.0K    ./mnt
93M     ./opt
820K    ./root
24G     ./run
3.9M    ./sbin
0       ./srv
97M     ./system
4.0K    ./tmp
8.0K    ./drm
45M     ./firmware
116K    ./persist
136K    ./acct
686M    ./data
0       ./cache
0       ./config
27G     .
[root@localhost nemo]# find / -size +100M
find: /proc/1987/task/1987/fd/4: No such file or directory
find: /proc/1987/task/1987/fdinfo/4: No such file or directory
find: /proc/1987/fd/4: No such file or directory
find: /proc/1987/fdinfo/4: No such file or directory
/usr/lib/locale/locale-archive
/data/sdcard/2gisMobile/2GISData_Moscow~mobile-164.2.0.dgdat
[root@localhost nemo]# df -ah
Filesystem Size Used Avail Use% Mounted on
rootfs 14G 5.5G 8.2G 40% /
/dev/mmcblk0p28 14G 5.5G 8.2G 40% /
devtmpfs 406M 64K 406M 1% /dev
none 0 0 0 - /proc
none 0 0 0 - /sys
tmpfs 407M 84K 407M 1% /dev/shm
devpts 0 0 0 - /dev/pts
tmpfs 407M 24M 384M 6% /run
tmpfs 407M 0 407M 0% /sys/fs/cgroup
cgroup 0 0 0 - /sys/fs/cgroup/systemd
cgroup 0 0 0 - /sys/fs/cgroup/debug
cgroup 0 0 0 - /sys/fs/cgroup/cpu,cpuacct
cgroup 0 0 0 - /sys/fs/cgroup/freezer
debugfs 0 0 0 - /sys/kernel/debug
fusectl 0 0 0 - /sys/fs/fuse/connections
mtp 0 0 0 - /dev/mtp
tmpfs 407M 16K 407M 1% /tmp
/dev/mmcblk0p25 8.0M 4.2M 3.8M 54% /persist
/dev/mmcblk0p19 8.0M 4.1M 3.9M 52% /drm
/dev/mmcblk0p9 48M 5.1M 43M 11% /var/systemlog
/dev/mmcblk0p18 64M 45M 20M 70% /firmware
/dev/mmcblk0p28 14G 5.5G 8.2G 40% /home
/dev/mmcblk0p28 14G 5.5G 8.2G 40% /swap
tmpfs 407M 0 407M 0% /mnt/asec
tmpfs 407M 0 407M 0% /mnt/obb
statefs 0 0 0 - /run/state
statefs 0 0 0 - /run/user/100000/state
/dev/mmcblk1p1 30G 25G 5.0G 84% /run/user/100000/media/sdcard

Last edited by Victorious; 2014-02-17 at 08:17.
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#4
Most likely old btrfs snapshot was not cleaned up. You should receive instructions form care soon how to clean it.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following 3 Users Say Thank You to rainisto For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#5
Originally Posted by rainisto View Post
Most likely old btrfs snapshot was not cleaned up. You should receive instructions form care soon how to clean it.
Can you share this instruction please ?
 
Posts: 45 | Thanked: 78 times | Joined on Dec 2013 @ Bruxelles
#6
You have the answer here

Last edited by b.cloanta; 2014-02-18 at 17:14.
 

The Following 3 Users Say Thank You to b.cloanta For This Useful Post:
Posts: 49 | Thanked: 11 times | Joined on Jan 2014 @ Moscow
#7
Originally Posted by rainisto View Post
Most likely old btrfs snapshot was not cleaned up. You should receive instructions form care soon how to clean it.
You are absolutely right! How to clean it?
Code:
0/257 817819648 4096
0/258 38080512 4096
0/259 4096 4096
0/264 817819648 4096
0/265 38080512 4096
[root@localhost nemo]#
mount -o subvolid=0 /dev/mmcblk0p28 /mnt/

[root@localhost nemo]# ls -la /mnt/
total 4
drwxr-xr-x 1 root root 260 Feb 9 13:40 .
drwxr-xr-x 1 root root 718 Feb 14 11:03 ..
drwxr-xr-x 1 root root 718 Feb 14 11:03 @
drwxr-xr-x 1 root root 768 Feb 8 13:42 @_old
drwxr-xr-x 1 root root 8 Nov 20 04:55 @home
drwxr-xr-x 1 root root 0 Nov 20 04:49 @swap
drwxr-xr-x 1 root root 610 Nov 20 04:55 factory-@
drwxr-xr-x 1 root root 8 Nov 20 04:55 factory-@home
drwxr-xr-x 1 root root 766 Feb 8 21:50 rec-20140209_093232_@
drwxr-xr-x 1 root root 8 Nov 20 04:55 rec-20140209_093232_@home
drwxr-xr-x 1 root root 754 Feb 9 13:36 rec-20140209_094009_@
drwxr-xr-x 1 root root 8 Nov 20 04:55 rec-20140209_094009_@home
[root@localhost nemo]#

[root@localhost nemo]# btrfs subvolume delete /mnt/rec-20140209_093232_@
Delete subvolume '/mnt/rec-20140209_093232_@'
ERROR: cannot delete '/mnt/rec-20140209_093232_@' - Directory not empty
[root@localhost nemo]#

Last edited by Victorious; 2014-02-18 at 18:49.
 
Posts: 2 | Thanked: 2 times | Joined on Nov 2010
#8
By instruction we were advised to delete all subdirs starts with rec*.

But after this error we discovered, that inside of the "rec-20140209_093232_@" directory there is another one and it is called "factory-@". That is why "btrfs subvolume delete" refused to delete it and we were also advised do not delete "factory-@".

Now questions are:
What "factory-@" is doing inside of "rec-20140209_093232_@"?
How can we delete "rec-20140209_093232_@", if inside there is another directory which we must leave?

thanks in advance

Last edited by SD_lucas; 2014-02-18 at 19:42.
 
Posts: 45 | Thanked: 78 times | Joined on Dec 2013 @ Bruxelles
#9
I have deleted the whole rec folder, but if you're not sure dont delete nothing. Maybe Jolla will come with beter solution without risk.
Attached Images
 
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#10
Victorious: you seem to have @_old there, so you might want to try as root:
# touch /.cleanup-needed
# sync; sync;
# reboot

(hint: you can see what this does by looking preinit script)
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2014-02-19 at 11:55.
 
Reply

Tags
big size system


 
Forum Jump


All times are GMT. The time now is 02:11.