Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    24

    Default How liberate space!

    Hi I have Now, some unused space in my server system with cpanel, But I wanna liberate space in the main disk.

    I wanna know too a ssh code for delete all the content at the Secondary Hard Disk of My system (Actually used for Backup)

    Waiting ASAP Answer!

    Thanks!

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    7

    Default

    to delete everything on your second drive:

    UNDERSTAND THE POSSIBLY CONSEQUENCES OF TYPING THE FOLLOWING COMMAND WRONG (deleting everything on the entire system, period, if typed wrong)

    figure out the mount point of your secondary drive, then type:

    rm -rf <other drive's mount point>/*

    example: second drive is mounted at /mnt/secdrive

    rm -rf /mnt/secdrive/*

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    You should brush up on your unix commands...

    The rm command deletes files:

    Code:
    rm file.txt
    - deletes file.txt

    The -f switch forces the removal (does not prompt for yes/no):

    Code:
    rm -f *
    - deletes all files in the current directory

    The -r switch removes files recursively, through all directories:

    WARNING, DON'T COPY + PASTE THIS

    Code:
    rm -rf *
    - deletes all files AND directories in the current directory.

    MAKE SURE YOU DON'T just run rm -rf anywhere. If you run it in a place with files you need, you will NOT likely get them back.

    so...
    Code:
    cd /backupdrive # Change to your backup disk's directory (note yours will be different)
    ls -la # list the files in the directory, and verify that you want to delete them all
    rm -rf * # delete all the files that you just saw listed.

  4. #4
    Member
    Join Date
    Feb 2006
    Posts
    24

    Default Configure the secondary disk for use

    Ok if Now I wanna use the secondary disk for host accounts What I need to do??

    Waiting Answer!

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by cyberventas View Post
    Ok if Now I wanna use the secondary disk for host accounts What I need to do??

    Waiting Answer!
    Partition it as /home2, using the default settings cPanel/WHM will automatically start populating that disk with new accounts.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    24

    Default Function?

    Hi What mind this:

    Disk /dev/mapper/VolGroup00-LogVol00 (/)

    What is the function of that directory??

    Waiting Answer!

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Logical Volume Management (LVM) is managing some (or all) of the hard drives in your system.

  8. #8
    Member
    Join Date
    Oct 2004
    Location
    SouthAmerica
    Posts
    49

    Default 2 drives /home /home2 compatibles ¿?

    Quote Originally Posted by cPanelDavidG View Post
    Partition it as /home2, using the default settings cPanel/WHM will automatically start populating that disk with new accounts.
    If a do that, what happens with all accounts on /home ? will it work with no problem ?
    so... i change default settings to /home2 for new accounts and only new accounts will store on that disk and older ones will be in my old drive in /home , right ?

    thanks in advance
    Altomarketing.com
    Webhosting and Design from SouthAmerica to USA and Europe
    www.altomarketing.com

  9. #9
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Yes but you do not need to change the default settings, just leave the default settings as they are. The partition with the most free space will always be populated first. Your /home2 I assume would have the most free space since it is presumed empty but it will take care of its self without further adjustments.

Similar Threads & Tags
Similar threads

  1. add MySQL Disk Space in user quota space
    By activa in forum E-mail Discussions
    Replies: 139
    Last Post: 10-07-2010, 10:16 AM
  2. Replies: 3
    Last Post: 06-13-2010, 09:08 PM
  3. How to liberate space in / ?
    By pueblosnet in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-02-2008, 05:03 AM
  4. add mailman's disk space in user quota space
    By fleksi in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-02-2007, 01:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube