Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member chrisbuk's Avatar
    Join Date
    Dec 2003
    Location
    Liverpool, United Kingdom
    Posts
    257
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default How do you create /home2 on a new secondary HDD

    Hi

    this server is a virtual machine. i have added a secondary HDD which is 15GB

    if i do

    fdisk -l
    I get

    Disk /dev/hda: 42.9 GB, 42949017600 bytes
    255 heads, 63 sectors/track, 5221 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 13 104391 83 Linux
    /dev/hda2 14 3263 26105625 8e Linux LVM

    Disk /dev/hdd: 16.1 GB, 16105807872 bytes
    16 heads, 63 sectors/track, 31207 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes

    Disk /dev/hdd doesn't contain a valid partition table
    how do i format this and make it /home2

  2. #2
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    In WHM you can do it by going to Disk Drives >> Format/Mount a new hard drive. I've never used that before though.

    By hand you could do something like.

    fdisk the 'drive'
    fdisk /dev/hdd
    (press 'm' for help to see all the options)
    press 'n' for a new partition
    press 'p' for a new primary partition
    partition number 1 (since it'll be the only one on the disk)
    use the default first cylinder
    use the last cylinder
    (it should go back and ask for a command after that)
    hit 'p' to show the partition table, if it looks good, hit 'w' to write to disk and exit.

    Now format it:
    Code:
    mkfs.ext3 /dev/hdd1
    Then add an entry to fstab for the new partition:

    /dev/hdd1 /home2 ext3 defaults,usrquota 1 2
    And then mount /dev/hdd1.

    That should do it.
    .

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default

    mount -a , command will help to update the /etc/fstab entries with out rebooting the server
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-17-2011, 08:13 PM
  2. Create accounts in a secondary drive ¿¿??
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-04-2007, 03:21 PM
  3. Wrong Partions on HDD - reconfigure HDD space
    By KimBO in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-27-2005, 11:48 AM
  4. I have /home and /home2.. can I backup both to /home2?
    By fog in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-27-2002, 02:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube