You are here:

Home > Support > Technical Documents > Rescue tips for dedicated servers

Print this page

Technical Documents

Rescuing your server

This page will help you fix your Bytemark dedicated host, assuming it is running a Linux-based OS. We assume you’ve been able to follow the instructions on how to boot your server over the network or boot your VM in rescue mode .

Mount your drives

If you have a dedicated server, the first thing you will want to do is type:

 mountall

which will assemble your normal filesystem on /target.

Virtual machine customers should type:

 mount / -o rw,remount

to be able to change files as normal.

You are then free to edit any files, which may be all you need to do to fix your problem. If that’s all you need, just type reboot when you’re done and wait for your system to boot up normally.

Start your networking (virtual machines)

If you have a virtual machine and need to get files on or off the rescued system, you may want to start your networking with:

 ifup eth0

Copying files on and off

If you need to copy files on or off your server, you should start an SSH server:

 /etc/init.d/ssh start

On a dedicated server you should also set a root password with passwd (this does not affect your normal root password) and be prepared to click through a host-key warning when you connect.

You can then use SCP or SFTP to copy files on and off the server as root – the server should have its normal IP address.

Jumping into your system

On a dedicated server, if you need to run programs on your real filesystem, type:

 chroot /target

which will leave you at a prompt “inside” your normal system. You can use this to re-run lilo or grub. When you’re finished, you will probably need to type exit before you can issue the reboot command.

This step isn’t necessary for virtual machine customers.

Changing your root password

Probably the most common operation that you can do is resetting your root password. While inside the system you can just run:

 passwd

and set yourself a new root password.

Selected tags
  • Reinstall [X]
More tags (see all)

“I've stayed with Bytemark over a few years mainly because of the great value for money, service and overall package you deliver. Now using Symbiosis all the fiddly little bits and pieces that used to confuse me are a thing of the past. It's great how it joins all the best UNIX software for the job and makes it so easy to set up.”

Michael Parker
Zanity

Managed HostingManaged Hosting

Get on with your business whilst we monitor, analyse and plan the future of your hosting.

Control Panel

A 4GiB dedicated server with RAID1 for £69.00 per month - control and isolation for less!

Built by handBuilt by hand

Because we build our servers by hand, you get high power, low cost, and excellent build quality.