Skip to main content

How to mount disks after server booted into rescue

Comments

6 comments

  • 24x7ss
    Hello, You will need to chroot the / partition to see the correct ownerships. Once you mount the / partition, you can do following. I am assuming sda1 is your root partition mount /dev/sda1 /mnt chroot /mnt
    0
  • cPanelMichael
    Hello, I don't think you will receive much user-feedback on this topic, as most of the discussions here revolve around the cPanel/WHM software itself. I highly recommend consulting with a qualified system administrator that can assist you with this issue, as you might make a mistake that results in data loss if you are inexperienced with system recovery. Feel free to update this thread with the outcome. Thank you.
    0
  • busterkat
    OK. I got the server reloaded. I got WHM reloaded. I have a tar.gz cpbackup file. I have no access via WHM or ssh but I do have access via sftp. Where do I put the backup and then what is the next step please?
    0
  • cPanelMichael
    I have no access via WHM or ssh but I do have access via sftp.

    Is there anything in particular preventing you from accessing WHM or SSH? You will need access to at least SSH if you want to restore an account. Thank you.
    0
  • busterkat
    Michael thank you for replying. I now have SSH and WHM and ftp finally. Got the disks mounted. I don't know why access was prevented, I believe that it was an id_rsa issue after the os rescue reload. A lot of things were different after the rescue including ips and passwords. I have the server up now in rescue mode and ftp'd the restore files up to /root. For some reason I could not write to /home, I would get 'could not create folder named "whatever"' I used full restore by username. Some sites are fine but others will not come up although they look fine in WHM/CP. The ips were mixed up. I reset those to their original ips. Two sites return the default cp page. Another returns internal server error. A wordpress site is not working. The db looks OK. The restore process did not create the usual subfolders in /home (is it supposed to do?). Everything is in root: WHM 11.48.2 (build 1)
    0
  • cPanelMichael
    Hello, You need to ensure the server is operating as expected before restoring accounts. If the /home partition was not able to have new files written to it, then the restore likely failed. I suggest contacting a qualified system administrator to help you ensure the server is up and running in normal mode, rather then attempting to restore the accounts in rescue mode. Thank you.
    0

Please sign in to leave a comment.