swap

4 risposte [Ultimo contenuto]
oshanz
Offline
Iscritto: 02/12/2012

beside of my swap partition (more size than my ram) there also a auto created swap file, in dev/zram0. its in high priority as swapon show and low size than my ram. i cant hibernate my pc. error show that 'cant get swap writer'. even i swapoff the file and delete it, after next boot it creat again. there isnt any line about this file in etc/fstab. how should i remove it complity or disable and set my swap partition to high priority. PLS help.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Are you 100% sure it is a swap file? If so, I would simply try:
$ sudo rm /dev/zram0

Have you created this swap file yourself? I do not have it on my system and an application would need root privileges to create something in /dev.

lembas
Offline
Iscritto: 05/13/2010

http://en.wikipedia.org/wiki/ZRam
I have it on my 5.5.

Perhaps you could define a higher priority in fstab for the regular swap (see man swapon).

oshanz
Offline
Iscritto: 02/12/2012

Magic banana>I didnt creat that file. rm zram0 isn't successful. After reboot file apear again. Lembas> changed swap partition to higher value, now hibernation works fine. Main problem solved. Thanks all.

lembas
Offline
Iscritto: 05/13/2010

Good! If you wish to get rid of zram for good, put these commands into some late startup script (run as root)

swapoff /dev/zram0
modprobe -r zram

The first command stops using it as swap and the second removes the module.