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, y
ou 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.

“We purchased our first server with Bytemark just over 18 months ago and they have provided us with a faultless service. We've been particularly impressed with their technical knowledge, their support team and their use of Debian really sealed the deal for us when we signed up. We're currently in the process of moving all of our hosting requirements to them”

Paul Rogers
GPMD Website Architects

Control Panel

News from our company, and our opinions on emerging technologies.

ExtrasThe Team

You get more than just a server - our free extras give you a robust hosting service.

Built by handBuilt by hand

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