HELP!, removed some files under /home/virtfs, How to restore back?

charlie.seah

Registered
Apr 19, 2008
2
0
51
Hi all...

I was cleaning up some files in /home directory today as many of my client had stopped services with my dedicated server...

And now my dedicated server seem to be massed up by me where no command can be working as its complaint like below:

Code:
[[email protected] home]# ls
-bash: /bin/ls: No such file or directory

-bash: /sbin/shutdown: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[[email protected] bin]# shutdown now -r
-bash: /sbin/shutdown: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[[email protected] bin]# /sbin/shutdown now -r
-bash: /sbin/shutdown: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directoryThe last thing / command I give to the server is as follow:

Code:
[[email protected] home]# cd virtfs/
[[email protected] virtfs]# ls
centralp cron-nl-central-demo dfhotel piccolo
[[email protected] virtfs]# rm -Rf cron-nl-central-demo/
rm: cannot remove directory `cron-nl-central-demo//usr/man': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/lib': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/bin': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/share': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/sbin': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/X11R6': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/libexec': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/local/lib': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/local/bin': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/local/share': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/local/Zend': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/kerberos': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//usr/include': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//dev/shm': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//dev/pts': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//lib': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//bin': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//tmp': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//opt': Device or resource busy
rm: cannot remove directory `cron-nl-central-demo//var/run': Device or resource busy

[[email protected] virtfs]# ls
-bash: /bin/ls: No such file or directory
[[email protected] virtfs]# ls -laAnd after that its does not work any more....

The reason I remove the cron-nl-central-demo is the"cron-nl-centra-demo" is created using useradd in the server as I didn't need the cPanel function for this account.

No I can't even login any more after my SSH2 sessions ends nor FTP nor emails.... How to resolve this? Please help and Thanks in advance...
 

ee99ee

Well-Known Member
Aug 15, 2003
70
0
156
Looks like you accidentially deleted your root filesystem (rm -rf /), or someone/something did. Restore from backup.

-Chris
 

charlie.seah

Registered
Apr 19, 2008
2
0
51
Looks like you accidentially deleted your root filesystem (rm -rf /), or someone/something did. Restore from backup.

-Chris

Thanks for reply...

I did it... T_T cause I want to clean up things related to user of "cron-nl-central-demo" and I get to the folder of /home/virtfs/cron-nl-central-demo....

The problem is after I did the stupid actions, now SSH2 doesn't allow me to connect any more nor FTP ... T_T
 

secure1

Registered
Apr 13, 2008
3
0
51
That is pretty serious if you deleted your virtfs, those are *hardlinks* to your actually operating system. If I were you, I would seek professional help from your host or someone who can restore your system from backup.