Results 1 to 3 of 3

Thread: move /home using UUID

  1. #1
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    146
    Distro
    Ubuntu 13.10 Saucy Salamander

    move /home using UUID

    Theres plenty of help on how to move /home, but they all involve moving /home to something line /home.old

    I've got two software raids.

    array1, which is RAID5 and currently has /home
    array2, which is RAID1 and currently has /home-new

    Rather than renaming anything, I was thinking of using the UUID to mount the array.

    The steps would be to

    1) boot into save mode
    2) umount /home
    3) umount /home-new
    4) mount the RAID1 via UUID as /home and test
    5) put changes in fstab (if everything works)

    That way the RAID5 doesn't get touched at all.

    Does anybody see a problem with this approach?

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: move /home using UUID

    More or less, moving a /home partition always goes like that. /home-old or /home-new are only temporary mount point so that you can copy the files (you have to have a mount point to work with).
    After that you simply edit /etc/fstab and replace the UUID of the old partition with the new one. So, yes, it should work.

    Just make sure when you say /home-new you don't actually mean a folder called like that. When you open /dev/md2 it should immideately have the users folders inside, not first a folder called home-new.

    PS. I'm not sure you can test mounting the new array at /home while the system is running. I have never tried to unmount /home when running. The test will be after you edit fstab and reboot. It will boot using the new device as /home and you will see whether it works or not. If it doesn't, you have to be ready to undo the fstab change from live session if it doesn't boot correctly after the change.
    Last edited by darkod; December 4th, 2012 at 11:56 AM.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Apr 2006
    Location
    Sydney, Australia
    Beans
    146
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: move /home using UUID

    have already rsynced /home and /mnt/home-new

    will let you know how I go

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
  •