Results 1 to 3 of 3

Thread: Have two hard drives but need more space

  1. #1

    Have two hard drives but need more space

    Since I started hosting a few mud games, I have quickly started eating up the 4 gig drive with their games and webpages etc..

    Can I move just a single user from one drive to another for instance;

    currently /dev/hdc1 is my home directory
    in it are 6 users of which one is my non-root user (thanks for that tip).

    I want to move /home/rastar to my hda drive which primarily is running RH7.3 and hosting my main webpage but is a 40 gig hd. I would never run out of space for myself that way and I can maintain a fairly accurate disksize for the other hosted users.

    Anyone know of a way to do this?

    Ras

  2. #2

    Re: Have two hard drives but need more space

    2 ways you can do this.

    First way, if there is unpartitioned space, partition a space for your home directory, make the file system, mount it to /mnt/tmp or something, and cp -rp /home/yourname /mnt/tmp, then verify that all made it over, rm -rf /home/yourname, then umount /mnt/tmp ; mount /dev/foo /home/yourname. Then just add in an entry to /etc/fstab for that mount point.

    Second way, if there is no unpartitioned space, create a folder on an existing partition for your files, try to use the same exact permissions of /home/yourname. Then you can cp -rp or mv /home/yourname /path/to/that/other/folder. Once that is done, rm -rf /home/yourname and then make a symlink. ln -s /path/to/that/other/folder /home/yourname. Now they are linked and /home/yourname works, just leads to another location.

  3. #3

    Re: Have two hard drives but need more space

    Cool I will have to check it out...

    Thanks,
    Ras

Similar Threads

  1. SATA Hard drives.
    By CP in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 06-18-2006, 02:37 AM
  2. 2 hard drives
    By gtoman in forum Linux - General Topics
    Replies: 1
    Last Post: 06-06-2006, 10:59 PM
  3. Problem with 2 hard drives not being recognized
    By BurntAsh in forum Linux - Hardware, Networking & Security
    Replies: 10
    Last Post: 11-14-2003, 06:56 PM
  4. Cheap Hard Drives
    By trickster in forum Linux - Hardware, Networking & Security
    Replies: 12
    Last Post: 06-15-2003, 11:50 AM
  5. old hard drives
    By agar in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-04-2001, 03:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •