DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2013-04-05 11:48:51

Alias_Knagg
New member
Registered: 2013-04-05
Posts: 2

Is this box dying? - SQUASHFS failed reading block

DNS-323, Firmware 1.07
Funplug, ssh, mediatoomb, unfsd, fan_ctrl.sh. Don't remember all the details smile

I noticed samba was missing after I switched it on after the the holidays.

# /usr/sbin/samba/smbd
Aborted (core dumped)
# /usr/bin/smbd
Aborted (core dumped)

dmesg is full of:
SQUASHFS error: zlib_inflate returned unexpected result 0xfffffffd, srclength 131072, avail_in 0, avail_out 0
SQUASHFS error: sb_bread failed reading block 0xe10

I presume that must be related.
Much more worrying than smbd failing in any case.
( ftp and ssh and nfs is working fine )

I guess I could make do with nfs just fine, but if the flash memory is dying, what’s the use :-(

Advice anybody?

Tanks smile


Attachments:
Attachment Icon dmsg.txt, Size: 12,902 bytes, Downloads: 353

Offline

 

#2 2013-04-05 16:41:51

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Is this box dying? - SQUASHFS failed reading block

Flash memory is based on electric charge, which can leak away over time. In that case the flash could be fine, it just lost it's contents. The errors in your dmesg are about the contents, not the memory itself.

You could try to reflash the firmware, to refresh the contents. Unfortunately that will only refresh the kernel and rootfs, not the bootloader and -environment.

Offline

 

#3 2013-04-07 11:50:44

Alias_Knagg
New member
Registered: 2013-04-05
Posts: 2

Re: Is this box dying? - SQUASHFS failed reading block

Hm.. is there a way of checking more closely what is failing?
I hesitate to just reflash and pray smile

where does /sys/crfs come from anyway?
--


when smbd crashes it does indeed leave SQUASHFS errors in dmesg:

SQUASHFS error: zlib_inflate returned unexpected result 0xfffffffd, srclength 131072, avail_in 0, avail_out 0
SQUASHFS error: sb_bread failed reading block 0xe10
SQUASHFS error: Unable to read page, block 3754d0, size ef12

Hm... a hunch
# md5sum /sys/crfs/samba/*   
<snip>
02c5e9e3f5a65b39eb21cec2cacd59a7  /sys/crfs/samba/nmbd
044b373cdc4c4c6b8b96923199ce6ac2  /sys/crfs/samba/smb
1b7b93bcbbfae03131ec5ba594b733e6  /sys/crfs/samba/smbclient
359da3bf47f5f59cc2c2a5e7a5dc3b9b  /sys/crfs/samba/smbcom
125ba7a7a2b3976c54f7946993095625  /sys/crfs/samba/smbpasswd

smbd is the only one who's not willing to get summed..

strace does not tell me much:
<snip>
brk(0x161000)                           = 0x161000
--- SIGBUS (Bus error) @ 0 (0) ---
chdir("/var/log/cores/smbd")            = 0
umask(0177077)                          = 0
rt_sigaction(SIGABRT, {SIG_DFL, [ABRT], SA_RESTART|0x4000000}, {0x4012d0b4, [ABRT], SA_RESTART|0x4000000}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
getpid()                                = 6103
kill(6103, SIGABRT)                     = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++


fsck does not seem to have anything to offer for squashfs..

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB