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-04-22 00:15:55

stealth82
Member
Registered: 2008-03-29
Posts: 14

Accidentally deleted /usr folder

Hi, I have a BIG problem.

Due to a some disgraceful typed commands I've accidentally deleted the /usr folder of my NAS.

What kind of files has been lost? I seriously worried about the system integrity.

How can I recover the situation?

Last edited by stealth82 (2009-04-22 00:36:04)

Offline

 

#2 2009-04-22 02:34:42

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: Accidentally deleted /usr folder

Reboot your DNS-323. Rootfs is in RAM and built on startup from filesystem contents stored in flash.

-Jeff

Offline

 

#3 2009-04-22 03:50:12

talkingRock
Member
Registered: 2009-03-26
Posts: 100

Re: Accidentally deleted /usr folder

I believe that the preceding post is correct.

Just for fun, you can look in /etc/rc.sh and see where almost everything in /usr is either a symbolic link to or copy of something in the flash.

gotta love open source and linux.

Offline

 

#4 2009-04-22 08:39:51

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Accidentally deleted /usr folder

Whoa! Is it so simple? Many thanks!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB