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 2010-02-08 01:27:41

jones79
New member
Registered: 2010-02-01
Posts: 3

e2fsck - unmount not possible

Hi!

Due to some filesystem errors I need to run e2fsck on my
DNS323. Using the boot image from http://www.inreto.de/dns323/fsck/
does not work, it does not even find the disks, so I am not able
do build the raid as described in the readme.txt.
And yes, I tried all of the images smile no success.

So I soldered a cable to gain access using the CON4 connector
on the DNS323īs mainboard. So far everything works fine and I can
break into the shell using the magic number.

But I cannot umount my Raid-Device /dev/md0, and receive the
message "Device or resource busy".

Forcing the umount with -f does not work, too.
Crawling through lots of e2fsck-umount-related stuff leaves me with
the commands "lsof" and "fuser", to display and kill the process
blocking the umount of /dev/md0.
But none of this commands is available within the shell.

So, I am out of ideas smile Can someone help me?
jones

Offline

 

#2 2010-02-09 21:03:14

jones79
New member
Registered: 2010-02-01
Posts: 3

Re: e2fsck - unmount not possible

My Solution:
- Deactivate funplug: there are files in use that do not allow the unmount of the RAID-device.
- Restart DNS323 and attach the serial cable to CON4
- Break into the shell
- Now you can unmount the RAID-Device and execute e2fsck

As expected e2fsck found and corrected the errors in the file system.

The command I used was e2fsck -p -v /dev/md0

-p means correct all errors without user-interaction
-v is verbose mode

If you like, you can run e2fsck -n -v /dev/md0 before.
-n means readonly-mode, no changes are made, so you can
see if there are errors.

Last edited by jones79 (2010-02-09 21:03:31)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB