The Following User Says Thank You to ikerrg For This Useful Post: | ||
|
2012-11-08
, 09:25
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#2
|
dfree() { space=`df -B 1 | tail -1 | awk '{ print $4 }' ` [ $? -ne 0 ] && return 0 return $space }
The Following User Says Thank You to reinob For This Useful Post: | ||
|
2012-11-08
, 09:27
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#3
|
The Following User Says Thank You to ikerrg For This Useful Post: | ||
|
2012-11-08
, 09:40
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#4
|
@reinob
The file /var/log/maemo-optify-boottime.log is coming from the package maemo-optify-runonce. Why you don't have it installed? It is odd, I have not changed any official package in my device and it is reflashed one month ago with the latest rootfs and eMMC images.
In addition, I do not understand why since the last week a process is executing this file on boot. How can I find where it is called on booting?
|
2012-11-08
, 10:09
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#5
|
|
2012-11-08
, 10:21
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#6
|
Thanks again! I will try to play with the booting process to learn a bit more And also I will consider removing optify packages, though maemo-optify-runonce is considered that it is used for when you update your rootfs, to be sure that everything is optified.
Anyway, you said that in your most "normal" N900 you also have the file /usr/sbin/maemo-optify-auto-opt.sh.
Something should have changed in my phone in the last week because the logfile had no records from before, and now it is growing.
|
2012-11-08
, 10:32
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#7
|
Well, I don't (still) know what exactly those packages "optify", i.e. how they decide which file/folder to move away and symlink. It might be useful, but most probably not
From what I've been able to read from the .deb the script will check if the log has reached a certain size, and if so, delete it and start again. Probably this is what happened to you, and you just happened to notice that log file after the first log/previous logs had already been deleted.
dfree() { space=`df -B 1 | tail -1 | awk '{ print int($4/(1024*1024)) }' ` [ $? -ne 0 ] && return 0 return $space }
|
2012-11-08
, 11:02
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#8
|
#!/bin/sh . /usr/sbin/maemo-optify-lib.sh dfree "/home" echo $?
|
2012-11-08
, 11:33
|
Posts: 181 |
Thanked: 82 times |
Joined on Jan 2010
|
#9
|
dfree() { space=`df -B 1048576 $1 | tail -1 | awk '{ print int($4) }' ` [ $? -ne 0 ] && return 0 return $space }
#!/bin/sh . /usr/sbin/maemo-optify-lib.sh dfree "/home" echo $space
|
2012-11-08
, 12:40
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#10
|
The Following User Says Thank You to reinob For This Useful Post: | ||
2012-10-31 18:05:25 :: not enough free space in /home (need at least 200 MB free), quitting.
1+0 records in
1+0 records out
512 bytes (512B) copied, 1.222565 seconds, 418B/s
The script which is generating the log is /usr/sbin/maemo-optify-auto-opt.sh, which calls the function dfree inside /usr/sbin/maemo-optify-lib.sh. dfree function is as follows
On the other hand, I do not know where the /usr/sbin/maemo-optify-auto-opt.sh is called from on every boot of the phone. The file checks if everything is optified, and it is not required now.
Thanks in advance.