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-11-17 20:07:35

petasis
Member
Registered: 2007-06-23
Posts: 39

chroot into debian and removed everything with rm: have I bricked dns?

Hi all,

I had to replace a drive in my dns. The original ones were using fun_plug to chroot into debian etch.
I replaced the drive, and reformated everything (I had all my data in the dns as a backup).
So, I copied the fun_plug I had and the relevant files in Volume_1 & reboot the dns.
However, I got no ssh telent, and I thought that something was wrong with it, so I used plain telnet to the dns and removed everything from the Volume_1 directory with rm. Just to find out that I have also REMOVED (almost) everything from /!
The web interface no longer works, and almost nothing works. I am able to run commands from the busybox3 though.

Now, my question is: have I distroyed my dns? If I reboot it, it will never come alive again?
Is the / filesystem somehow stored in the flash memory the bios is stored? Do I need to reflash the firmware (in some way I have to find out)?
Or the flash contains everything compressed and what I removed (everything under / actually) was removed from a ramdisk or something - and when I reboot the dns everything will be ok?

Does anybody knows how the firmware works and dns boots?
Currently, ls on / gives only /mnt, /proc & /sys.

If I have to re-flash the firmware, does anybody knows a procedure from telnet? (I have no web interface...)

Thanks,

George

Offline

 

#2 2007-11-18 00:26:55

dannystaple
Member
Registered: 2007-08-29
Posts: 9

Re: chroot into debian and removed everything with rm: have I bricked dns?

The good news is that if the 323 is anything like G600 (I suspect they are not that far different), then the stuff you removed was on the ramdisk only filesystem (at the root), and is recreated every time you reboot the box (hence the need to override stuff like user permission settings with fun_plug when it gets booted). So yes it should be alive after a reboot. However, you may have managed to zap all data you had on the hard disk.

Offline

 

#3 2007-11-18 00:45:50

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: chroot into debian and removed everything with rm: have I bricked dns?

Finally, I made the decision and removed the power from the DNS. Then I put the power back in, and DNS booted normally.
I saw the web interface, and everything seems ok. Regarding data, I had no data in it. I had just replaced one disk, and I have red the posts about data losses during disks replacements, so everything is ok now...

Thanks,

George

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB