Results 1 to 3 of 3

Thread: moving home directory

  1. #1
    Join Date
    Apr 2009
    Beans
    109

    moving home directory

    really basic question but I can't seem to find the answer.

    I would like to move the /home directory to a different location, there only seem to be guides on how to move it to it's own partition.

    I have a drive (/dev/sda5) mounted as /media/data

    I would like to move /home to /media/data/home?

    I have tried usermod but get the following error:
    Code:
    test@TestServer:/media/data$ sudo mkdir /media/data/home
    test@TestServer:/media/data$ ls
    home  lost+found
    test@TestServer:/media/data$ sudo usermod -dm /media/data/home
    usermod: user '/media/data/home' does not exist
    HELP!!


    Thanks
    Last edited by BarryDocks; June 29th, 2010 at 10:27 PM.

  2. #2
    Join Date
    Apr 2009
    Beans
    109

    Re: moving home directory

    solved this,

    renamed original /home as /home_old
    created new /home

    added to fstab:
    /media/data/home /home none defaults,bind 0 0

    reload fstab (mount -a)

  3. #3
    Join Date
    Oct 2007
    Location
    Oregon, USA
    Beans
    1,534

    Re: moving home directory

    I'm glad you figured it out. Since it's solved could you mark it as such?

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
  •