You are Here: FAQ ->Dedicated Servers->Linux Root Server->Linux Recovery->Article #4


How do I mount my drives in the Rescue System?


For Linux Dedicated Servers only!Linux Dedicated Servers Only!
      This DOES NOT include:
          arrow 1&1 Beginner (MS/Linux)
          arrow 1&1 Home (MS/Linux)
          arrow 1&1 Business (MS/Linux)
          arrow 1&1 Developer (MS/Linux)
          arrow 1&1 Dedicated Website Servers (formerly called managed servers)





Your drives should be automatically mounted in the normal boot mode. When booting to the Rescue System, the data on your drive(s) are not mounted automatically. This FAQ may be used as a guide to the procedure however you must ensure that the server is rebooted into the Linux Rescue System first. For more information on how to reboot you machine into the Linux Rescue System, please reference What can I do with the Recovery Tool?

You will also need to log into the server via SSH as the root user. If, when rebooting into the Rescue System, you are given a generated password from the 1&1 Control Panel, use that password instead of your normal root user password.

Step 1:

Once you are logged into your server in the Rescue System via SSH, type fdisk -l to list the current partition tables. In this example, the system is set up using software RAID 1 using two drives - sda and sdb. As you can see below, each of the two drives have the same partitions and then are linked together through Multiple Device Drivers and shown as md1, md5 and md6.

pwReset1.jpg

If instead you have a server with hardware RAID or no RAID at all you should see output similar to the one below which will only show partitions for one drive.

pwResetHWRAID1.jpg
Step 2:

Type the mount command and press ENTER to view the already mounted devices. You should not see any /dev/mdX, /dev/sdX or /dev/hdX devices listed as they are not mounted by default in the Rescue system.

pwReset2.jpg
Step 3:

We will now mount the root parition to the /mnt/ folder.

For software RAID, type mount /dev/md1 /mnt to mount the root md partition to the /mnt/ folder.

pwReset3.jpg

For hardware RAID, type mount /dev/sda1 /mnt to mount the root sda1 partition to the /mnt/ folder.
pwResetHWRAID2.jpg
Step 4:

Type the mount command again to verify that it has mounted correctly as highlighted in red in the output below.

pwReset4.jpg
Step 5:

Type cat /mnt/etc/fstab to output the file to the screen. This is the /etc/fstab file on your hard drive that specifies which folder each md partition should be mounted to. Because we are in the Rescue System and the root partition is mounted to /mnt/ we reference the file as /mnt/etc/fstab.

Each /dev/mdX device will show the correct mount folder directly after. As you can see from the file, /dev/md1 should be mounted to the root or / folder. Since we are using the Rescue System, we can not mount /dev/md1 to the / folder as the Rescue System is using the / folder. Therefore, we mounted /dev/md1 to the /mnt/ folder on the Rescue System and the /mnt/ folder will now essentially be the root folder for the contents of your hard drive.

pwReset5.jpg

For hardware RAID, the output will be similar to the image below instead.

pwResetHWRAID3.jpg
Step 6:

Next we will mount the other devices to the correct folders ensuring that each is preceded with /mnt/ as this is where we mounted the root partition of the hard drive. Use the image below for reference.

pwReset6.jpg

For hardware RAID, use the image below for reference instead.

pwResetHWRAID4.jpg


You should now be able to change directories to the /mnt/ folder and view the entire contents of your hard drive(s)!


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5