The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Data Protection' started by charlie.seah, Apr 19, 2008.

  1. charlie.seah

    charlie.seah Registered

    Joined:
    Apr 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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:
    [root@server2 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
    [root@server2 bin]# shutdown now -r
    -bash: /sbin/shutdown: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    [root@server2 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:
    [root@server2 home]# cd virtfs/
    [root@server2 virtfs]# ls
    centralp cron-nl-central-demo dfhotel piccolo
    [root@server2 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

    [root@server2 virtfs]# ls
    -bash: /bin/ls: No such file or directory
    [root@server2 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...
     
  2. ee99ee

    ee99ee Well-Known Member

    Joined:
    Aug 15, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Looks like you accidentially deleted your root filesystem (rm -rf /), or someone/something did. Restore from backup.

    -Chris
     
  3. charlie.seah

    charlie.seah Registered

    Joined:
    Apr 19, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1

    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
     
  4. secure1

    secure1 Registered

    Joined:
    Apr 13, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page