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.

help with second har drive

Discussion in 'General Discussion' started by shann, Jan 21, 2006.

  1. shann

    shann Well-Known Member

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


    I have added the second hardive and partitioned successfully. Also I have done the file system for it.

    now i wanted to mount it to /backup directory. How can I create /backup directory on second hard drive?

    I want to execute this

    mount /dev/hdc1 /backcup

    Since I don't have /backup directory I am getting error.

    thanks
    shan
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    If you have to mount the Second HDD, you will have to create a /backup directory on Primary HDD and then will have to mount 2nd HDD on /backup.
    Check the url :- http://forums.cpanel.net/showthread.php?t=48805 See if it helps you or paste the output of
    fdisk -l
    &
    df -h
     
  3. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Thank you, Mounted succesfully.

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda6 1012M 345M 616M 36% /
    /dev/hda1 99M 48M 47M 51% /boot
    /dev/hda5 53G 50G 633M 90% /home
    none 493M 0 493M 0% /dev/shm
    /dev/hda7 1012M 42M 919M 5% /tmp
    /dev/hda2 9.9G 5.1G 4.3G 55% /usr
    /dev/hda3 6.9G 5.5G 1.1G 85% /var
    /tmp 1012M 42M 919M 5% /var/tmp
    /dev/hdc1 111G 20K 105G 1% /backup


    fdisk -l

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 13 104391 83 Linux
    /dev/hda2 14 1318 10482412+ 83 Linux
    /dev/hda3 1319 2232 7341705 83 Linux
    /dev/hda4 2233 9726 60195555 f Win95 Ext'd (LBA)
    /dev/hda5 2233 9210 56050753+ 83 Linux
    /dev/hda6 9211 9341 1052226 83 Linux
    /dev/hda7 9342 9472 1052226 83 Linux
    /dev/hda8 9473 9726 2040223+ 82 Linux swap

    Not showing the second hard drive. Do I have to add anything manually?
     
  4. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    As per the output of fdisk -l there is no Second HDD attached to your server. Have you provided the complete output of fdisk -l ?
    And which partition have you mounted successfully ?
     
  5. shann

    shann Well-Known Member

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

    fdisk -l

    Disk /dev/hdc: 120.0 GB, 120000000000 bytes
    255 heads, 63 sectors/track, 14589 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 1 14589 117186111 83 Linux

    Disk /dev/hda: 79.9 GB, 79998918144 bytes
    255 heads, 63 sectors/track, 9725 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 1318 10482412+ 83 Linux
    /dev/hda3 1319 2232 7341705 83 Linux
    /dev/hda4 2233 9726 60195555 f Win95 Ext'd (LBA)
    /dev/hda5 2233 9210 56050753+ 83 Linux
    /dev/hda6 9211 9341 1052226 83 Linux
    /dev/hda7 9342 9472 1052226 83 Linux
    /dev/hda8 9473 9726 2040223+ 82 Linux swap


    Any suggestions ? Thaks in advance.
     
  6. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Yes, the 120GB drive is your 2nd HDD and according to the output of df -h, your drive is mounted on /backup
    /dev/hdc1 111G 20K 105G 1% /backup

    Now you are ready to use your 2nd HDD. Also add the entry in /etc/fstab for the drive to mount automatically on every reboot.
     
  7. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    If i want to create directories on second hard drive? I need to create under /backup directory?, other wise I need to create on primary and mount it. Am I correct ?
     
  8. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Anything you want to create on Secondary Drive you will have to create under /backup directory and not on Primary Drive. As I said earlier, make an entry in /etc/fstab and 2nd HDD will be mounted after every reboot.
     
  9. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Thank you sekar, since there are no datas on it. I am thiking to create 2 patition. Do you know the command, I want to make it like 60 GB and 60 GB

    fsick /deb/hdc and then follow the instruction or is there any online comnad there?

    thanks
     
  10. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    I go through you post but still unable to mount my 2nd drive, below is my fstab

    root@ns1 [/]# cat /etc/fstab
    LABEL=/ / ext3 defaults,usrquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    LABEL=/home /home ext3 defaults,usrquota 1 2
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    LABEL=/tmp /tmp ext3 defaults 1 2
    LABEL=/usr /usr ext3 defaults,usrquota 1 2
    LABEL=/var /var ext3 defaults,usrquota 1 2
    /dev/sda5 swap swap defaults 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
     
  11. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Paste the output of :- fdisk -l
     
  12. Stanleytiew

    Stanleytiew Well-Known Member

    Joined:
    May 9, 2005
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    Thank you very much, I have sucessful mount the drive now.
     
Loading...

Share This Page