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.

mounting question,

Discussion in 'General Discussion' started by shann, May 26, 2003.

  1. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hi,

    Our admin installed a new harddrive for us.


    Current file system
    /dev/hda1 1.4G 720M 680M 52% /
    /dev/hda3 41G 27G 13G 67% /home
    none 236M 0 236M 0% /dev/shm
    /dev/hda2 7.7G 7.0G 390M 95% /usr
    /dev/hda5 3.8G 1.9G 1.7G 52% /var

    I wanted to make the new harddrive to mouted on

    /dev/hda6/ /backup
    /dev/hda7 /home2

    How could I do this? Please help on this.

    cPanel.net Support Ticket Number:
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    First, hda6 is likely already taken. That's probably where your swap drive is.

    Second, I may be wrong, but from what I know, the second hard drive can't be /dev/hda. Most are either hdc or hdd.

    What you need to do is partition your drive. Here is where I found instructions on this.
    http://tldp.org/HOWTO/mini/Partition/

    cPanel.net Support Ticket Number:
     
  3. jphilipson

    jphilipson Well-Known Member

    Joined:
    Jan 8, 2003
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    Yes, hda is your primary drive, your 2nd drive will be hdc I believe, as hdb would be the master on the second controller if i am not mistaken? You can use "dmesg | grep hdc" or "dmesg | grep hdb" tp see which it is. Now assuming the seconf drive is formatted into one partition lets say its hdc1 and we want it mounted as backup..

    So we would

    #mkdir /backup
    #mount /dev/hdc1 /backup

    then edit your fstab file so it gets mounted at boot time also

    #pico -w /etc/fstab

    add the following line.. (assuming its ext3 filesys)

    /dev/hdc1 /backup ext3 defaults 1 2

    save and exit

    hope that helps ya

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page