Results 1 to 5 of 5

Thread: Move Home directory to separate partition on Linux

  1. #1
    Join Date
    Jan 2011
    Posts
    36

    Move Home directory to separate partition on Linux

    I am System Developer. Currently working on “Linux mint’s tenth edition”. During installation of operating system I not concern about this issue, but now I understood that it would be better to have /home in its own partition for easier updates. Can someone tell me how to move my /home to different partition after installing? As I am working as system developer I need to know this for applying that concept in my future projects. Help expected as early as possible.

  2. #2
    Join Date
    May 2008
    Posts
    1,020

    Re: Move Home directory to separate partition on Linux

    I refer this one from Linux official book published by them. They mentioned in that it is possible to move “/home” to its own position or in simple word say partition. First you have to create a sufficient for your /home directory. You may have to use that new hard drive or resize the current hard drive to do this. I hope you are able to create new partition. For an System developer ti is an easiest thing to do. Next , step is mounting your partition to mount your create d partition you just have to enter following commands.

    $mkdir /mnt/newhome
    $sudo mount -t ext3 /dev/hda5 /mnt/newhome

    After that I think your problem will be solved.

  3. #3
    Join Date
    May 2008
    Posts
    859

    Re: Move Home directory to separate partition on Linux

    According to my concern since “/home” directory will have hardlinks ,softlinks , files and along with that nested directories. A regular copy may not be work for you. Therefore we use something that I learn from Debian’s guide. First enter commands Mentioned below:-

    $cd /home/
    $find . -depth -print0 | cpio --null --sparse -pvd /mnt/newhome/

    Take care about everything is copied over correctly. You might have to do some tweaking and honing to make sure what you get it all right. Next unmount the new partition, by entering the command:-

    $sudo umount /mnt/newhome

    And make a new way for home directory

    $sudo mv /home /old_home

    Since we already move /home to /old_ home, there is no longer a /home directory. So first we should recreate a new / home by;
    $sudo mkdir /home

    and then mounting new home with,
    $sudo mount /dev/hda5 /home

  4. #4
    Join Date
    Apr 2009
    Posts
    1,107

    Re: Move Home directory to separate partition on Linux

    If all make directory and mount command unable to give you desired result then I suggest you to go with Auto-install. I am not guaranteed that this will work with your case or not. But I am feeling that you need to re-install. There are easiest steps to get your desire result are mounting and make directory command. If they were fails to create new home directory than there will be issue of your available memory. First check your memory is more than efficient, which doesn’t creates any problem to commands for performing their functionality.

  5. #5
    Join Date
    Mar 2011
    Location
    bangalore
    Posts
    1

    Re: Move Home directory to separate partition on Linux

    hi man, u want to move u r home dir first u check mount commaned and u check wher it was mount ex:/dev/sda3 , first u unmount and cross check any userquotas are install,and u unmount that one ane simply mv /home /home.save and check selinux context also

Similar Threads

  1. Add conky script to home partition in Linux Mint
    By HALLBJORN in forum Windows Software
    Replies: 4
    Last Post: 14-01-2011, 10:23 AM
  2. Learn to move Windows Vista/7 on separate partition
    By Mastermind in forum Guides & Tutorials
    Replies: 3
    Last Post: 25-09-2010, 09:23 AM
  3. Home directory problem in linux
    By GlassFish in forum Operating Systems
    Replies: 3
    Last Post: 05-12-2009, 11:42 AM
  4. Use old home parition for new Linux Partition
    By MobiNuX in forum Operating Systems
    Replies: 3
    Last Post: 16-10-2009, 12:30 PM
  5. Use single /home partition for two linux
    By Patinux in forum Operating Systems
    Replies: 3
    Last Post: 24-09-2009, 02:27 PM

Tags for this Thread

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
  •  
Page generated in 1,713,574,304.35030 seconds with 17 queries