Results 1 to 7 of 7

Thread: Changing /home partition

  1. #1
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    Changing /home partition

    I started using Ubuntu on my macbook back at the beginning of this year and though 50Gb would be plenty of room for everything. I'm getting close to the point where I'm running low ~75% space used. I have a huge chunk of space available on the disk, but there are other partitions in the way. Take a look at my partitions and let me know what the best option is. I would like to combine my current /home partition with that huge free space, but I'm not sure if that is an option.

    The other option is to just use the big free partition as my /home.
    Could I just do
    Code:
    dd if=/dev/home/partition of=/dev/new/partition
    Then change my /home partition in fstab?

    Thanks,
    Kopkins
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changing /home partition

    Moved to Apple sub-forum.

    I do not know Macs but with gpt do not use any dd type programs. With Windows in a Mac you have to have the hybrid MBR/gpt configuration. The Mac is an older UEFI system and Window is still in BIOS with MBR. Paritions for the Mac are gpt but Windows only boots from gpt with a newer UEFI or BIOS/MBR.

    http://www.rodsbooks.com/gdisk/hybrid.html
    http://www.microsoft.com/whdc/device...e/GPT_FAQ.mspx

    The author of gdisk posted once here not to use dd as gpt partitions have internal structures that cannot be bit by bit copied without creating issues.

    Someone with a Mac should really comment, but I would think you can copy with rsync.

    To move /home uses rsync- Be sure to use parameters to preserve ownership & permissions
    https://help.ubuntu.com/community/Pa...ng/Home/Moving
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Changing /home partition

    Thank you. Very useful to know before I go ahead and try it only to make a mess of everything. Any apple users have any knowledge?

    Kopkins

  4. #4
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Changing /home partition

    Following this,
    https://help.ubuntu.com/community/Pa...ng/Home/Moving
    I got as far as renaming /home to /old_home, but terminal says that device or resource is busy and it can't mv it.

    Not sure what to do.

    Here's another shot of my partitions.

    Kopkins
    Attached Images Attached Images

  5. #5
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changing /home partition

    Did you change to / ?

    cd / && sudo mv /home /old_home && cd / && sudo mkdir -p /home
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  6. #6
    Join Date
    Mar 2012
    Location
    Near one of my computers
    Beans
    307
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Changing /home partition

    Yes I did. Eventually I just changed fstab to not mount my old /home partition and instead to mount the new one. I've been using the new /home partition for an hour or so without problems now. I'm just going to reformat the partition I don't need anymore and leave it empty for now. I'm ending up with about the same result.

    For reference if anyone else encounters this issue I'm attaching my original fstab and the modified (current) fstab, along with a snapshot of my current partition layout.

    Solved,

    Thank you oldfred

    Kopkins
    Attached Images Attached Images
    Attached Files Attached Files

  7. #7
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Changing /home partition

    Glad it worked.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







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
  •