Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

During maintenance yesterday I did a mistake moving files and instead of mv ./* /destination-path, I typed mv /* /destination-path ... :( I stopped the process of moving in the middle and then moved files back to / and everything looked fine. i did the stupid thing to log out before checking can I log in and now I can't log in on this server, neither through ssh, nor on the console.

Ssh returns that:

MacBook:johns$ ssh -vv root@groom OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to groom [192.168.133.196] port 22. debug1: Connection established. debug1: identity file /Users/johns/.ssh/id_rsa type -1 debug1: identity file /Users/johns/.ssh/id_rsa-cert type -1 debug1: identity file /Users/johns/.ssh/id_dsa type -1 debug1: identity file /Users/johns/.ssh/id_dsa-cert type -1 ssh_exchange_identification: Connection closed by remote host

On the physical console I got:

O0o.oops() [console.c(83)]: Opening console failed

The server is pingable and all virtual machines that run on top of it are accessible via ssh. Unfortunately there aren't any backups. This is not a production server and the only valuable things there are few virtual machines, that are intact and running. The OS is CentOS 5.x running Xen and I have DRAC access to the server. I just need to find a way to log in. Any ideas?

share|improve this question
    
do you have physical access to the machine? if so try booting into single user mode... you jacked up your ssh it looks like. :) –  Ryan Apr 16 '12 at 19:16
    
Thanks. I have access to the machine, but I was hoping to get into it without rebooting. What a dreamer. :) –  Alec Apr 17 '12 at 0:23
    
I reckon the /dev directory might be broken, preventing the tty getting created. If you can't login via the console, then there isn't really anything you can do. Reboot, and hope udev fixes the devices. –  Paul Apr 17 '12 at 5:58
    
Update: I booted in rescue mode with CentOS CD and successfully mount the fs. Then I migrated all VM files I need with rsync (using the sparse files option) to another machine. Thanks for the help! –  Alec Apr 21 '12 at 11:00
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.