eWebtricity
08-27-2005, 02:15 PM
Taken directly from the 1and1.com FAQ support pages.
The Rescue System is a Linux system that runs on a RAM-Disk. A connection with
your Root-Server will look something like this:
# ssh root@yourRoot-Server
Password: XXXXX
Welcome to pureserver rescue disk
rescue:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 31729 26640 5089 84% /
rescue:~#
From here you can partition your internal hard drive or edit incorrect settings.
The following is the standard partitioning of the internal harddrive:
root@pureserver-rescue:~# fdisk -l
Disk /dev/hda: 16 heads, 63 sectors, 58168 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 66 530113+ 83 Linux
/dev/hda2 67 321 2048287+ 82 Linux swap
/dev/hda4 322 5005 37624230 5 Extended
/dev/hda5 322 959 5124703+ 83 Linux
/dev/hda6 960 1597 5124703+ 83 Linux
/dev/hda7 1598 5005 27374728+ 83 Linux
root@pureserver-rescue:~#
First of all you should run a filesystem check to fix any errors in the file
structure.
rescue:~# fsck.ext3 -y /dev/hda1
hda5, hda6, and hda7 are XFS need not be checked. Just mount them. xfs_check will be invoked which then
checks for errors.
Now you can mount the internal harddrive into the /mnt directory and change into
the system on the partition:
rescue:~# mount -t ext3 /dev/hda1 /mnt
rescue:~# mount -t xfs /dev/hda5 /mnt/usr
rescue:~# mount -t xfs /dev/hda6 /mnt/var
rescue:~# mount -t xfs /dev/hda7 /mnt/home
Now you can repair and/or configure your Root-Server in /mnt
After you have finished restoring your root server you need to execute the
following commands to restart your Root-Server:
rescue:~# umount /mnt/home
rescue:~# umount /mnt/var
rescue:~# umount /mnt/usr
rescue:~# umount /mnt
rescue:~# shutdown -rn now
Do not forget to unmount your internal hard drive after the restore and BEFORE you
restart the server. Also remember to change your Root-Server back to normal boot
mode from your Control Panel.
Some old servers have the partition set as follows (not available anymore):
The Rescue System is a Linux system that runs on a RAM-Disk. A connection with
your Root-Server will look something like this:
# ssh root@yourRoot-Server
Password: XXXXX
Welcome to pureserver rescue disk
rescue# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 37428528 11650336 23876900 33% /
/dev/hda1 253920 26584 214084 12% /boot
none 253516 0 253516 0% /dev/shm
From here you can partition your internal hard drive or edit incorrect settings.
The following is the standard partitioning of the internal harddrive:
rescue# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 83 Linux
/dev/hda2 34 131 787185 82 Linux swap
/dev/hda3 132 4865 38025855 83 Linux
First of all you should run a filesystem check to fix any errors in the file
structure.
rescue:~# fsck.ext3 -y /dev/hda1 ...
rescue:~# fsck.ext3 -y /dev/hda3
Now you can mount the internal harddrive into the /mnt directory and change into
the system on the partition:
rescue:~# mount /dev/hda3 /mnt
rescue:~# mount /dev/hda1 /mnt/boot
rescue:~# chroot /mnt
Now you can repair and/or configure your Root-Server in /mnt
After you have finished restoring your root server you need to execute the
following commands to restart your Root-Server:
rescue:~# umount /mnt/boot
rescue:~# umount /mnt
rescue:~# shutdown -rn now
Do not forget to unmount your internal hard drive after the restore and BEFORE you
restart the server. Also remember to change your Root-Server back to normal boot
mode from your Control Panel.
Source: http://faq.1and1.com/dedicated_servers/root_server/recovery_tool/6.html
The Rescue System is a Linux system that runs on a RAM-Disk. A connection with
your Root-Server will look something like this:
# ssh root@yourRoot-Server
Password: XXXXX
Welcome to pureserver rescue disk
rescue:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram0 31729 26640 5089 84% /
rescue:~#
From here you can partition your internal hard drive or edit incorrect settings.
The following is the standard partitioning of the internal harddrive:
root@pureserver-rescue:~# fdisk -l
Disk /dev/hda: 16 heads, 63 sectors, 58168 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 66 530113+ 83 Linux
/dev/hda2 67 321 2048287+ 82 Linux swap
/dev/hda4 322 5005 37624230 5 Extended
/dev/hda5 322 959 5124703+ 83 Linux
/dev/hda6 960 1597 5124703+ 83 Linux
/dev/hda7 1598 5005 27374728+ 83 Linux
root@pureserver-rescue:~#
First of all you should run a filesystem check to fix any errors in the file
structure.
rescue:~# fsck.ext3 -y /dev/hda1
hda5, hda6, and hda7 are XFS need not be checked. Just mount them. xfs_check will be invoked which then
checks for errors.
Now you can mount the internal harddrive into the /mnt directory and change into
the system on the partition:
rescue:~# mount -t ext3 /dev/hda1 /mnt
rescue:~# mount -t xfs /dev/hda5 /mnt/usr
rescue:~# mount -t xfs /dev/hda6 /mnt/var
rescue:~# mount -t xfs /dev/hda7 /mnt/home
Now you can repair and/or configure your Root-Server in /mnt
After you have finished restoring your root server you need to execute the
following commands to restart your Root-Server:
rescue:~# umount /mnt/home
rescue:~# umount /mnt/var
rescue:~# umount /mnt/usr
rescue:~# umount /mnt
rescue:~# shutdown -rn now
Do not forget to unmount your internal hard drive after the restore and BEFORE you
restart the server. Also remember to change your Root-Server back to normal boot
mode from your Control Panel.
Some old servers have the partition set as follows (not available anymore):
The Rescue System is a Linux system that runs on a RAM-Disk. A connection with
your Root-Server will look something like this:
# ssh root@yourRoot-Server
Password: XXXXX
Welcome to pureserver rescue disk
rescue# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 37428528 11650336 23876900 33% /
/dev/hda1 253920 26584 214084 12% /boot
none 253516 0 253516 0% /dev/shm
From here you can partition your internal hard drive or edit incorrect settings.
The following is the standard partitioning of the internal harddrive:
rescue# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 83 Linux
/dev/hda2 34 131 787185 82 Linux swap
/dev/hda3 132 4865 38025855 83 Linux
First of all you should run a filesystem check to fix any errors in the file
structure.
rescue:~# fsck.ext3 -y /dev/hda1 ...
rescue:~# fsck.ext3 -y /dev/hda3
Now you can mount the internal harddrive into the /mnt directory and change into
the system on the partition:
rescue:~# mount /dev/hda3 /mnt
rescue:~# mount /dev/hda1 /mnt/boot
rescue:~# chroot /mnt
Now you can repair and/or configure your Root-Server in /mnt
After you have finished restoring your root server you need to execute the
following commands to restart your Root-Server:
rescue:~# umount /mnt/boot
rescue:~# umount /mnt
rescue:~# shutdown -rn now
Do not forget to unmount your internal hard drive after the restore and BEFORE you
restart the server. Also remember to change your Root-Server back to normal boot
mode from your Control Panel.
Source: http://faq.1and1.com/dedicated_servers/root_server/recovery_tool/6.html