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 2007-07-14 20:28:10

Emacs
Member
Registered: 2007-06-24
Posts: 110

Problem: Can I damage the internal filesystem of the DNS?

Hi all,

I played around with chroot'ing into debian etch for a while now.
At some time I decided to "rm -rf" my etch directory and found out in the middle of it, that I had lot's of mounts in the etch directory:

mount --bind $DISK1 etch/$DISK1
mount --bind $DISK2 etch/$DISK2
mount --bind / etch/mnt/root
mount --bind /dev etch/dev
mount --bind /sys  etch/sys
mount --bind /sys/crfs etch/sys/crfs
mount --bind /web etch/web
mount --bind /proc etch/proc

Hastely I stopped the rm -rf
Besides some data I involuntary deleted from my discs, I'm not sure what I deleted from /, /dev, /sys, /sys/crfs, /web, and /proc.

I rebooted the DNS - which worked fine.
I can still access my shares and printing to the network printer on the DNS is possible too.

But for the live of me I cannot get the damn thing to execute Fonz' fun_plug script anymore...
There are some other fun_plugs around - some of them work, some don't.


My plan of action would be to
1.) re-flash the firmware I'm currently using
2.) re-set factory default settings
3.) re-enter my DNS settings manually
4.) re-install Fonz' fun_plug

Does that sound reasonable?
Would I be able to do this without formatting my discs again (I would hate to)?
Is there a shortcut I could use?

Cheers,

Emacs

Last edited by Emacs (2007-07-14 20:28:45)

Offline

 

#2 2007-07-14 21:11:30

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Problem: Can I damage the internal filesystem of the DNS?

It seems that the internal filesystem is not broken.

The underlying problem - which is causing my fun_plug to fail is that I have stupidly placed a script to control the fan in the fun_plug.d/start directory.
The script runs fine - but it runs in an endless loop.. therefore the start_telnet script is never called :-( doh

Now I'm looking for ways to remove this file or its permissions.

I'm afraid I've created it as user root though.

Deleting or changing it from a windows-mount is not working (permission denied).
Trying to create an FTP user and go in with that results in the same problem.

Geez...

Emacs

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB