Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
unmesh wrote:
root@DLINK:~# e2fsck /dev/sda
Details matter! Really! From http://www.inreto.de/dns323/fsck/
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
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
No, that is okay. It was probably the clock on the unit was set wrong, or is set wrong now.
Offline
The utils work great...
Is there any way to do this check automatic every month or week...
Has anyone tired this?
thanks
Offline
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:
+ 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:
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:
+ /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
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:
KV=$(uname -r) mkdir -p /lib/modules/$KV cp reloaded-$KV.ko /lib/modules/$KV
Then, change the reload script and replace
insmod $ko machtype=$machtype kernel=$kernel initrd=$initrd cmdline="$cmdline"
with
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
Works perfect now. Thanks, fonz.
Offline
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?)
Offline
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
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
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