Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 3704  / 2 Years ago, wed, april 6, 2022, 6:26:16

I have a zram swap (and a normal one) and I got no idea where it came from:



$ sudo blkid | grep zram
/dev/zram0: UUID="..." TYPE="swap"

$ lsmod | grep zram
zram 18642 1

$ cat $ cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
UUID=... / ext4 discard,noatime,errors=remount-ro 0 1
/dev/disk/by-uuid/... /mnt/data ext4 defaults,user,exec,errors=remount-ro 0 2
/dev/disk/by-uuid/... /mnt/media ext4 defaults,user,errors=remount-ro 0 2
UUID=... none swap sw 0 0



  1. Where did come from?

  2. How can I get rid of it, besides blacklisting zram?



This is happening only on one of my systems, both running Ubuntu 12.04 Alpha 2+.


More From » 12.04

 Answers
6

I forgot to check the files in /usr/share/initramfs-tools and indeed, I found some compcache related files. I then checked, which package installed those files, e.g.



sudo dpkg -S /usr/share/initramfs-tools/conf.d/compcache


points to the package casper. Now, I got no idea how this ended up on my system, but purging it and recreating the initrd, gets rid of the zram swap.


[#40475] Thursday, April 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ularousand

Total Points: 380
Total Questions: 109
Total Answers: 101

Location: England
Member since Tue, Sep 8, 2020
4 Years ago
;