You are not logged in.
Hey,
I'd like to change the image_size file for pm-utils (used for hibernation), if i try to open the file with VI and save it afterwards i get a strange errorcode (E667), the errormessage is in german ("image_size" E667: Fsync fehlgeschlagen) and should be something like "E667: Fsync failed".
Anyone got some idea?
I'd like to change the size to approx. 4 GB, my thought was to just replace the leading 5 in image_size with 40. Is that a good idea?
Thanks and cheers,
hubutz
Offline
I assume you're talking about /sys/power/image_size.
Please note that /sys is special: http://en.wikipedia.org/wiki/Sysfs
None of your changes in /sys will be saved.
I set my "image_size" via /etc/rc.local:
echo 0 > /sys/power/image_size
Simply change that "0" to the desired number of bytes.
M*cr*s*ft: Who needs quality when you have marketing?
Offline
Ahh... Okay, thanks. Got ya!
what does 0 mean? that the image has to be only 0 bytes? or is it allowed to be as max as possible?
I'd like to allocate 4 GB for the image size but tbh i don't know what the notation is as "524288000" is quite a strange number and not 1024*1024*512 (=536870912).
Would it be okay just to exchange the lead 5 with a "40"?
Thanks for your help and cheers,
hub
Last edited by hubutz (2009-03-23 19:27:15)
Offline
/sys/power/image_size controls the size of the image created by
the suspend-to-disk mechanism. It can be written a string
representing a non-negative integer that will be used as an upper
limit of the image size, in bytes. The suspend-to-disk mechanism will
do its best to ensure the image size will not exceed that number. However,
if this turns out to be impossible, it will try to suspend anyway using the
smallest image possible. In particular, if "0" is written to this file, the
suspend image will be as small as possible.
Reading from this file will display the current image size limit, which
is set to 500 MB by default.
Source: http://www.mjmwired.net/kernel/Document … erface.txt
M*cr*s*ft: Who needs quality when you have marketing?
Offline