Web Hosting Resources, Forum, FAQ, Directory
Login
Username:

Password:


Lost Password?

Register now!
Main Menu
Search
Hosting Article :: Dedicated Linux

Partitioning a Linux Dedicated Server With Two Hard Drives


Linux server


If your Linux server is configured with two hard disks, you will need to prepare the secondary hard disk before you can use it. Before you can use a secondary hard disk, you need to:

  • Partition the secondary hard disk.
  • Create a file system for the new partition.
  • Mount the partition to make it accessible.

These instructions are specific to servers setup after July 15, 2005, for servers prior to this, the path in the following steps will need to be modified slightly. The 'df' command will show you how the current filesystem is mounted, normally /dev/hdc was used for the new partition. For more advanced partitioning and mounting options, please see the vendor provided documentation for your Operating System.

To Create a Hard Disk Partition

  1. Log in to your dedicated server as "root."
  2. Type fdisk /dev/sdb, and then press Enter.

    NOTE:If your server still has the IDE drive and no SATA support and you reprovision your server, SATA support will be enabled.

  3. Type n to create a new partition.
  4. For extended or Primary (1-4), type p.
  5. Accept the defaults for the partition size.
  6. Accept the default for the first cylinder.
  7. Accept the default for last cylinder.
  8. Type w and press Enter to write partition information.

To Create a File System

  1. Type mkfs -t ext3 /dev/sdb and press Enter. It will take a few minutes to create the new file system on your secondary hard drive.

To Mount the File System

  1. Type cd /sbin.
  2. Type mkdir /mnt/disk2.
  3. Type chmod 777 /mnt/disk2.
  4. Type mount /dev/sdb /mnt/disk2, and then press Enter.
  5. To ensure that your dedicated server mounts the new file system after each reboot, you need to add the command to mount the new file system to /etc/mtab.
  6. Type echo "/dev/sdb /mnt/disk2 ext3 rw 0 0". Press Enter.
<< Why is Webmail in Plesk 8.1 for Fedora 4 and CentOS 4 not working? How Can I Access the Second Hard Drive of My Dedicated Server? >>
Trackback
  • URL: http://www.powerhoster.com/domainhosting/modules/article/view.article.php/c10/1419
  • Trackback: http://www.powerhoster.com/domainhosting/modules/article/trackback.php/1419
Rate
10987654321
API: Toolkit PM Email PDF Bookmark Print | RSS | RDF | ATOM
Copyright© Jane83 & Powerhoster.com
The comments are owned by the poster. We aren't responsible for their content.

 Re: ClimateScape and FireScape

Posted: 2011/12/6 11:36  Updated: 2011/12/6 11:36

beaujon


Joined: 2011/12/1
From:
Posts: 65353
ugg boots cheap causal boots These UGGS are very comfortable and their design makes them perfect for youngsters to put on and take off. When you check out the insole of the boots, you are going to notice that they have a very thick fleece lining that will give the comfort that's required uggs ugg boots discount , as well as keeping the feet cozy, free shipping based on the temperature. causal boots
© 2001-2007 Power Hoster