The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

new hard drive partition...

Discussion in 'General Discussion' started by jeffyjoe, Dec 21, 2004.

  1. jeffyjoe

    jeffyjoe Member

    Joined:
    Dec 10, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    i had a second hard drive (120gb) added to my server (also new)
    when i mounted it (hdb) in cpanel it formatted it to 99mb

    i need to make it full capacity as close to 120gb as allowed

    i searched the forums and found a few things to do... but they are not complete
    can anyone help me finish?

    in redhat linux(dev directory) i typed this:
    df

    and got this:


    fdisk -l

    and got this:

    i don't know what to do next
    and i don't want to screw it all up

    tia
     
    #1 jeffyjoe, Dec 21, 2004
    Last edited: Dec 21, 2004
  2. jeffyjoe

    jeffyjoe Member

    Joined:
    Dec 10, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    anyone?
    please?



    if this can be done instad cpanel/whm i would love to know this..
    but from my searches, it can be done
    is this under partitioning a flaw in whm?

    can any one help?
     
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Yeah that feature in WHM seems flawed from my past experience. Just use fdisk via command line. If your not comfortable with it, get a test box and try it out first or hire someone capable and trustworthy enough to do the job for you.
     
  4. jeffyjoe

    jeffyjoe Member

    Joined:
    Dec 10, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    thanks for replying,

    i can do command line stuff..
    is there a lot to do? from here
    for the commant line



    i don't have a test box to test it on
    is there something like this (similer to dos)

    type: fdisk
    do you want the maximum size?
    type: yes
    100% completed

    type: format hdb
    100% complete

    dos seem soooo much easier
     
  5. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Yeah the interface / process is fairly straightforward as long as you have, at the very least a basic working knowledge of linux.
     
  6. jeffyjoe

    jeffyjoe Member

    Joined:
    Dec 10, 2004
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    thank you haze for your input...
    i am very new to linux
    but it is similar to dos, and i do have a basic understanding of dos, so i should be fine.
    so, again i still need an answer to my original question...

    what is the command line to partition it(hdb) to as large a size as i can go????

    maybe i'm asking in the wrong place,
    i would just like to know if not here then where???

    i figured cpanel support forum would be the place to ask how to work around a flaw in their software?!?!?


    anyone?
     
  7. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Warning: Don't do this on a production server, if you are not comfortable with these commands.

    All data on the disk (/dev/hdb in this case) will be deleted.

    Something like

    fdisk /dev/hdb

    <press> p

    Shows partition table, delete any partitions already there, by pressing d followed by the partition number.

    <press> n (to create a new partition)

    <press> p (for primary partition)

    <press> 1 (as partition number)

    <press> enter (several times to accept defaults for start partition block, end partition blocks.)

    <press> w (to write the partition table)

    Now to format ext3

    mke2fs -j /dev/hdb1

    Add the entry into /etc/fstab for the new partition, that's about it.
     
    #7 DigitalN, Dec 27, 2004
    Last edited: Dec 28, 2004
Loading...

Share This Page