Results 1 to 3 of 3

Thread: how to change mount point of existing partition?

  1. #1
    Join Date
    May 2007
    Beans
    22

    how to change mount point of existing partition?

    I recently installed 12.10. I have a separate home partition. When I installed 12.10, I chose to have the installer replace the old installation (because I knew my files were safe on my home partition) but it didn't occur to me that the new installation wouldn't recognize my existing home partition as /home.
    So, now that 12.10 is installed, how do I change the mount point of the partition so it mounts as /home?

    Thanks,
    ed

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,854
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to change mount point of existing partition?

    First check the UUID of the partition with:
    sudo blkid

    Note the string down (and the filesystem too).

    Then open /etc/fstab for editing and add a line like:
    Code:
    UUID=<string> /home <filesystem, like ext4> defaults 0 1
    But does the user match so that it can pick up the /home partition since you didn't specify it during installation?

    For existing /home you always use the manual partitioning and tell it which partition to use as what. Remember, linux doesn't assume anything for you. It only does what you tell it to.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to change mount point of existing partition?

    It is highly recommended to make a copy of /etc/fstab and keep it for later before you start editing. That way if things go wrong, it is easy to restore.

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
  •