Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, Can anyone explain the steps for me to move my home directories from the /home directory onto a new larger hard drive without breaking the users. Do I just ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    15

    How to move my home directory.


    Hello,

    Can anyone explain the steps for me to move my home directories from the /home directory onto a new larger hard drive without breaking the users. Do I just edit the passwd file or is it more complex than this?

    Basically I want to mount the new hard drive as /home

    Thanks,
    jon

  2. #2
    Just Joined!
    Join Date
    May 2004
    Location
    Pennsylvania
    Posts
    98
    you should be able to create a symbolic link

    just create the directories on the new hard drive (i'll call it /u01)
    move the /home directories to the new drive
    create a symbolic link

    assuming you have the new hard drive mounted at /u01
    Code:
    mv /home /u01
    ln -s /u01/home /home
    **Note You may be able to mount the new drive as /home and copy the files over.
    Also you're idea will probably work too... but i don't like to mess with passwd files unless i absolutely have too

  3. #3
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    The better idea there is the second one: mount the hard drive, copy the folders in /home to it. Then rm -rf /home/* and mount the new hdd at /home:

    Code:
    mount /dev/hdxy /home
    Then you can add an entry to /etc/fstab to make sure it's mounted at boot.

    Edit: you will have to be logged in as only root when you do this.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    note: dont do rm -f .... until after u have checked ur new drive mounts correctly and has all the files copied properly.

  6. #5
    Linux Newbie
    Join Date
    Jul 2004
    Location
    www.syracuse.com
    Posts
    119
    http://www-106.ibm.com/developerwork...-partplan.html

    i love all the cool tutorials ibm has available.

Posting Permissions

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