Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    53

    Default Question about mounting a drive

    Is there any way to mount a second hard drive in cpanel without formatting it? The drive I need to mount has backups of all of my sites. I went to do the mount in cpanel and realized it was going to erase the drive then I did Man mount in shell and I think I understand their instructions but im afraid to run much because if it messes something up it will take the dc 3 days to fix. If there is no way in cpanel can anyone tell me if this is the correct command to mount a drive in shell?

    The drive name he gave me was hdb
    mount /old/hdb
    Would that be the right command to mount the drive to a directory called old? Thanks for the answers.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Cleveland, Ohio
    Posts
    378

    Default

    You can temporarily mount with mkdir /mnt/olddrive; mount /dev/hdb /mnt/olddrive

    You can then access the drive at /mnt/olddrive. If it's going to stay on the server, you can setup fstab for it.

  3. #3
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    To mount a drive or partition in an ssh session

    # fdisk -l

    Will list all the drives and partitions. Look for the hdb one, you should see /dev/hdbx x being a number.

    If it was your old drive, you may see several partitions.

    To mount them

    eg

    # cd /

    # mkdir oldusr

    # mount /dev/hdbx oldusr

    hdbx would be the correct partition number, eg /dev/hdb2

    Do that for each partition, mkdir oldhome oldroot as required and mount them.

  4. #4
    Member
    Join Date
    Apr 2005
    Posts
    53

    Default

    Ty all.. I got them all restored and now when you go to the site you get a 403 forbidden... any clue? Freshly loaded os and cpanel. I restarted the nameservers after the change

  5. #5
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    Try

    # /scripts/enablefileprotect

    or

    Make sure that the public_html for each user is chowned $user:nobody

Similar Threads & Tags
Similar threads

  1. Mounting new hard drive
    By MethOd63 in forum New User Questions
    Replies: 3
    Last Post: 03-10-2011, 06:11 AM
  2. Mounting 2nd Drive
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-22-2006, 02:51 PM
  3. mounting new drive
    By kistler in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-22-2006, 08:20 PM
  4. Mounting a Hard drive
    By Mo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-12-2004, 06:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube