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

#26 2008-08-03 20:45:04

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated Filesystem Check Tools

unmesh wrote:

root@DLINK:~# e2fsck /dev/sda

Details matter! Really! From http://www.inreto.de/dns323/fsck/

Code:

If you have configured 'two separate disks', you can now check
filesystems with:

  e2fsck /dev/sda2
  e2fsck /dev/sdb2

Also, if you don't understand what these instructions do, I really recommend to have a look at some manual. If you carelessly play around with these tools, you can easily erase all your data, make your NAS explode and burn down your house.

Offline

 

#27 2008-08-15 06:18:43

3rdparty
Member
Registered: 2008-04-19
Posts: 20

Re: Updated Filesystem Check Tools

Code:

root@dlink-C8E869:~# e2fsck /dev/sda2
e2fsck 1.41.0 (10-Jul-2008)
Superblock last write time is in the future.  Fix<y>? yes

Adding dirhash hint to filesystem.

/dev/sda2 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes

Was it bad that I selected Y to fix the Superblock last write time?

Offline

 

#28 2008-08-15 23:57:26

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Updated Filesystem Check Tools

No, that is okay.  It was probably the clock on the unit was set wrong, or is set wrong now.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#29 2008-08-20 09:48:41

bhedrington
Member
From: USA
Registered: 2008-08-05
Posts: 6

Re: Updated Filesystem Check Tools

The utils work great...

Is there any way to do this check automatic every month or week...

Has anyone tired this?

thanks


Hardware:
2 Each - DNS 323 Hardware - B1 - FW: Dlink 1.05
All running: 2x 1TB (Raid 1) - FFP 0.5 - Samba - Firefly - SSH - PHP - Custom Fan Control - USB Storage
Vista, XP, 2000, RH, Cheetah, Leopard

Offline

 

#30 2008-08-20 10:39:36

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated Filesystem Check Tools

bhedrington wrote:

Is there any way to do this check automatic every month or week...

No.

Offline

 

#31 2008-08-31 20:09:52

hwj
New member
From: Austin, Texas
Registered: 2008-08-31
Posts: 2

Re: Updated Filesystem Check Tools

Hey fonz. I'm having some issues with fsck, perhaps you can give me an idea of what might be going wrong.

I'm using the latest fun-plug 0.5 and packages (rsynced 31 Aug) on a DNS-323 w/1.05 firmware. I just copied down the fsck files for the first time today as well, so they're current. I took a look at what you did in the debug reload script you posted earlier in this thread and replicated it in mine. It looks like the insmod at the end is failing:

Code:

+ insmod /mnt/HD_a2/ffp/fsck/reloaded-2.6.12.6-arm1.ko machtype=526 kernel=/mnt/HD_a2/ffp/fsck/zImage-2.6.12.6 initrd=/mnt/HD_a2/ffp/fsck/fsck-initramfs.gz 'cmdline=console=ttyS0,115200 ip=192.168.0.20::192.168.0.1:255.255.255.0:NAS:egiga0:none'
insmod: chdir(2.6.12.6-arm1): No such file or directory

Noting that in the fun-plug changelog, you mentioned:

Code:

busybox-1.12.0-3: Upgraded. Added patches for awk, dhcp, and insmod. Note that
    insmod still doesn't work well in busybox 1.12.0 (use /usr/sbin/insmod
    instead).

...I modified my debug reload.sh with /usr/sbin/insmod and got:

Code:

+ /usr/sbin/insmod /mnt/HD_a2/ffp/fsck/reloaded-2.6.12.6-arm1.ko machtype=526 kernel=/mnt/HD_a2/ffp/fsck/zImage-2.6.12.6 initrd=/mnt/HD_a2/ffp/fsck/fsck-initramfs.gz 'cmdline=console=ttyS0,115200 ip=192.168.0.20::192.168.0.1:255.255.255.0:NAS:egiga0:none'
insmod: error inserting '/mnt/HD_a2/ffp/fsck/reloaded-2.6.12.6-arm1.ko': -1 Unknown symbol in module

Any thoughts?

Offline

 

#32 2008-08-31 20:32:48

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated Filesystem Check Tools

hwj wrote:

Code:

insmod: error inserting '/mnt/HD_a2/ffp/fsck/reloaded-2.6.12.6-arm1.ko': -1 Unknown symbol in module

The firmware insmod doesn't work perfectly, either. As a work-around until busybox gets fixed, you can create /lib/modules/kernel-version, copy the reloaded modules and use modprobe:

Code:

KV=$(uname -r)
mkdir -p /lib/modules/$KV
cp reloaded-$KV.ko /lib/modules/$KV

Then, change the reload script and replace

Code:

insmod $ko machtype=$machtype kernel=$kernel initrd=$initrd cmdline="$cmdline"

with

Code:

modprobe reloaded-$KV machtype=$machtype kernel=$kernel initrd=$initrd cmdline="$cmdline"

Note that /lib/modules will not survive reboots. You need to do this every time, or add it to your script.

PS: I decided it's best to downgrade busybox to 1.11.2. I'll upload a new package and a new tarball within an hour.

Last edited by fonz (2008-08-31 21:02:52)

Offline

 

#33 2008-08-31 21:27:57

hwj
New member
From: Austin, Texas
Registered: 2008-08-31
Posts: 2

Re: Updated Filesystem Check Tools

Works perfect now. Thanks, fonz.

Offline

 

#34 2008-09-09 16:08:17

raggamuffin
New member
Registered: 2008-09-09
Posts: 1

Re: Updated Filesystem Check Tools

Hi fonz.

Firstly I'd like to say a big "Thank You" for your contribution to the community. I've been a user of the funplug'd DNS-323 for some time now and have recently purchased a DNS-343 to extend my storage (Also funplug'd).

Is there any chance you may be able to update the fsck utility to work on the DNS-343 in the near future? (I.e.: Are you planning on buying your own 343?) wink

Offline

 

#35 2008-10-02 00:11:26

Lss
New member
Registered: 2008-10-02
Posts: 2

Re: Updated Filesystem Check Tools

thanks for creating this and the guide. it helped me greatly. however i was wondering if it would be possible for you to add e2defrag also.

i found out that i have quite a fair amount of non-contiguous inodes after running e2fsck(~ 50%). thats on a 500GB hdd.

Offline

 

#36 2008-10-02 00:19:45

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated Filesystem Check Tools

Lss wrote:

e2defrag

I'm not convinced.
http://www.archivum.info/alt.os.linux.u … 00987.html

"e2defrag" is *old* and should never have been written. Much less should
anyone tell a newb about it, without at the same time telling him *not* to
use it ever

Offline

 

#37 2008-10-02 01:25:29

Lss
New member
Registered: 2008-10-02
Posts: 2

Re: Updated Filesystem Check Tools

fonz wrote:

Lss wrote:

e2defrag

I'm not convinced.
http://www.archivum.info/alt.os.linux.u … 00987.html

"e2defrag" is *old* and should never have been written. Much less should
anyone tell a newb about it, without at the same time telling him *not* to
use it ever

ok point taken. in that case there is nothing else i can do but to transfer everything out and dump it back it to reduce the fragmentation.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB