I have a small issue with zram, I cannot load it with modprobe, just with
insmod, which broke my /etc/init.d/zram script. The problem was introduced
with same recent upgrade in wheezy.
blackbox:~# uname -a
Linux blackbox 3.2.0-2-686-pae #1 SMP Tue Mar 20 19:48:26 UTC 2012 i686
GNU/Linux
blackbox:~# modprobe zram
ERROR: could not insert 'zram': No such file or directory
blackbox:~# modprobe -d /lib/modules/3.2.0-2-686-pae zram
blackbox:~# lsmod|grep zram
blackbox:~# insmod /lib/modules/3.2.0-2-686-
pae/kernel/drivers/staging/zram/zram.ko
blackbox:~# lsmod|grep zram
zram 13155 0
blackbox:~#
Any hint what to check is very welcome.
Thanks,
Rainer
--
Rainer Dorsch
http://bokomoko.de/
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201204091149.27883.ml@bokomoko.de">http://lists.debian.org/201204091149.27883.ml@bokomoko.de
04-09-2012, 02:16 PM
Ben Hutchings
zram advice needed
On Mon, 2012-04-09 at 11:49 +0200, Rainer Dorsch wrote:
> Hello,
>
> I have a small issue with zram, I cannot load it with modprobe, just with
> insmod, which broke my /etc/init.d/zram script. The problem was introduced
> with same recent upgrade in wheezy.
>
> blackbox:~# uname -a
> Linux blackbox 3.2.0-2-686-pae #1 SMP Tue Mar 20 19:48:26 UTC 2012 i686
> GNU/Linux
> blackbox:~# modprobe zram
> ERROR: could not insert 'zram': No such file or directory
> blackbox:~# modprobe -d /lib/modules/3.2.0-2-686-pae zram
> blackbox:~# lsmod|grep zram
> blackbox:~# insmod /lib/modules/3.2.0-2-686-
> pae/kernel/drivers/staging/zram/zram.ko
> blackbox:~# lsmod|grep zram
> zram 13155 0
> blackbox:~#
>
> Any hint what to check is very welcome.
ls -l /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
grep zram /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
Most likely you can fix this by running depmod again, but that is run
automatically at installation time.
Ben.
--
Ben Hutchings
Sturgeon's Law: Ninety percent of everything is crap.
04-09-2012, 03:24 PM
Rainer Dorsch
zram advice needed
Hello Ben,
thanks for you quick reply.
Am Monday 09 April 2012 schrieb Ben Hutchings:
> On Mon, 2012-04-09 at 11:49 +0200, Rainer Dorsch wrote:
> > Hello,
> >
> > I have a small issue with zram, I cannot load it with modprobe, just with
> > insmod, which broke my /etc/init.d/zram script. The problem was
> > introduced with same recent upgrade in wheezy.
> >
> > blackbox:~# uname -a
> > Linux blackbox 3.2.0-2-686-pae #1 SMP Tue Mar 20 19:48:26 UTC 2012 i686
> > GNU/Linux
> > blackbox:~# modprobe zram
> > ERROR: could not insert 'zram': No such file or directory
> > blackbox:~# modprobe -d /lib/modules/3.2.0-2-686-pae zram
> > blackbox:~# lsmod|grep zram
> > blackbox:~# insmod /lib/modules/3.2.0-2-686-
> > pae/kernel/drivers/staging/zram/zram.ko
> > blackbox:~# lsmod|grep zram
> > zram 13155 0
> > blackbox:~#
> >
> > Any hint what to check is very welcome.
>
> ls -l /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
> grep zram /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
That looks ok for me (?):
rd@blackbox:~$ ls -l /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
-rw-r--r-- 1 root root 351421 Apr 9 17:20 /lib/modules/3.2.0-2-686-
pae/modules.dep
-rw-r--r-- 1 root root 487906 Apr 9 17:20 /lib/modules/3.2.0-2-686-
pae/modules.dep.bin
rd@blackbox:~$ grep zram /lib/modules/3.2.0-2-686-pae/modules.dep{,.bin}
/lib/modules/3.2.0-2-686-pae/modules.dep:kernel/drivers/staging/zram/zram.ko:
Übereinstimmungen in Binärdatei /lib/modules/3.2.0-2-686-pae/modules.dep.bin.
rd@blackbox:~$ su -
Passwort:
blackbox:~# modprobe zram zram_num_devices=2
ERROR: could not insert 'zram': No such file or directory
blackbox:~# ls -l /lib/modules/3.2.0-2-686-
pae/kernel/drivers/staging/zram/zram.ko
-rw-r--r-- 1 root root 17412 Mär 20 23:01 /lib/modules/3.2.0-2-686-
pae/kernel/drivers/staging/zram/zram.ko
blackbox:~#
> Most likely you can fix this by running depmod again, but that is run
> automatically at installation time.
No, doesn't help unforteunately:
blackbox:~# depmod
blackbox:~# modprobe zram zram_num_devices=2
ERROR: could not insert 'zram': No such file or directory
blackbox:~#
On Mon, 2012-04-09 at 17:24 +0200, Rainer Dorsch wrote:
[...]
> > Most likely you can fix this by running depmod again, but that is run
> > automatically at installation time.
>
> No, doesn't help unforteunately:
>
> blackbox:~# depmod
> blackbox:~# modprobe zram zram_num_devices=2
> ERROR: could not insert 'zram': No such file or directory
> blackbox:~#
Well I have no idea what's going wrong. Please report a bug against
kmod (assuming that package is installed) or else module-init-tools.
Ben.
--
Ben Hutchings
Sturgeon's Law: Ninety percent of everything is crap.
04-09-2012, 07:48 PM
Rainer Dorsch
zram advice needed
Hi,
Am Monday 09 April 2012 schrieb Ben Hutchings:
> On Mon, 2012-04-09 at 17:24 +0200, Rainer Dorsch wrote:
> [...]
>
> > > Most likely you can fix this by running depmod again, but that is run
> > > automatically at installation time.
> >
> > No, doesn't help unforteunately:
> >
> > blackbox:~# depmod
> > blackbox:~# modprobe zram zram_num_devices=2
> > ERROR: could not insert 'zram': No such file or directory
> > blackbox:~#
>
> Well I have no idea what's going wrong. Please report a bug against
> kmod (assuming that package is installed) or else module-init-tools.
>