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 2009-06-23 20:51:08

abubin
Member
Registered: 2007-11-01
Posts: 59

how to fix corrupted filesystem?

I was copying a file when suddenly power outage.

So the file now is corrupted and cannot be deleted. I don't mind losing the data but I need to fix the corrupted file.

RAID1 reported to be in sync.

I tried looking for the correct fsck command to run in this forum but can't find the right answer. Please help. Thanks.

Offline

 

#2 2009-06-24 02:06:16

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: how to fix corrupted filesystem?

just running fsck will probably do it, but you may have problems with trying to check a mounted partition, so I suggest looking here

http://www.inreto.de/dns323/fsck/

Offline

 

#3 2009-06-24 10:40:27

abubin
Member
Registered: 2007-11-01
Posts: 59

Re: how to fix corrupted filesystem?

will this disturb my current funplug 0.5 setup?

Offline

 

#4 2009-06-24 12:52:05

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: how to fix corrupted filesystem?

no, it is just a seperate download, when you run it it 'reboots' (not really) into a special setup where you won't have the problem of mounted partitions, do your disk check and then type 'reboot' and you will be back to your normal ffp 0.5.  If you try it, note that you need to run the script for no bash if you don't have that installed.

Offline

 

#5 2009-06-24 18:52:20

abubin
Member
Registered: 2007-11-01
Posts: 59

Re: how to fix corrupted filesystem?

hmm...i tried using SSH into the dns323 and run the command but it seems to be stuck at downloading the files.

root@mynas:/mnt/HD_a2/ffp# rsync -av inreto.de::dns323/fsck .
receiving file list ... done
fsck/
fsck/README.txt
fsck/fsck-initramfs.gz

Waited like 30 minutes and still hang there. So I wget the files manuall. Then chmod them all to 777. Run reload.sh and i get disconnected. After waited like 30 secs, I tried to connect but unable. Keep on trying again and again still can't. Something is wrong. I can't even ping the IP.

Question 1: Must I use telnet? SSH can?

Question 2: rsync doesn't work, how to solve?

Thanks.

Offline

 

#6 2009-06-24 19:27:06

abubin
Member
Registered: 2007-11-01
Posts: 59

Re: how to fix corrupted filesystem?

I reactivated telnet back and tried but still doesn't work. Rsync doesn't work and running reload.sh also doesn't work.

Ahh....manage to get it work after rebooting the dns323 with telnet started by default.

Thought rsync still doesn't work, i use wget to get all files manually.

Wowza!! Manage to run fsck and fixed the corruption. Thank you luusac for the guide.

Last edited by abubin (2009-06-24 21:07:22)

Offline

 

#7 2009-06-24 21:44:48

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: how to fix corrupted filesystem?

you are welcome!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB