Find the answer to your Linux question:
Results 1 to 7 of 7
Is it possible to make a new partition, set the mount point to /home after install? Will I have to move the files or will they automatically?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Jun 2007
    Posts
    458

    Separate /home after install


    Is it possible to make a new partition, set the mount point to /home after install?

    Will I have to move the files or will they automatically?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Its possible, but you will have to move any existing directories on the old /home to the new /home manually.

  3. #3
    Linux User
    Join Date
    Jun 2007
    Posts
    458
    Which's reliable:

    1. Make new partition, move files there, delete old home, mount new home?
    2. Make new partition, mount new home, copy files there?

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Make a new partition, move files to partition using cp -a command. Edit /etc/fstab file and add an entry for new /home partition. Reboot machine. New /home partition will be mounted.
    Make sure to use -a option with cp command. Its for preserving permissions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux User
    Join Date
    Jun 2007
    Posts
    458
    Either of the -r and -a option do not copy symbolic links. There are a lot of these links in Themes, .whatever (preferencs) folders, so I cannot copy them. Any way I can mount a folder on a partition as /home? I have lot of space on a drive which I want to utilise. I do not want to break the partition.

  6. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    I think cp -a should copy links as well, I just tried it and it worked for me. You can cp the information and then modify /etc/fstab to mount /home to the partition and test things work correctly. There is no need to remove the /home information on your root partition unless you are short of space.
    Did you try doing the cp and mounting the partition to /home to check the links?

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    cp -a command works fine for perserving permissions and symlinks. Do not remove /home folder under root ( / ) before tesing /home partition as suggested by Jonathan183.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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