Results 1 to 9 of 9

Thread: Move or rearange Partitions?

  1. #1
    Join Date
    Oct 2009
    Beans
    170

    Move or rearange Partitions?

    Is there a way to move a linux system partition without breaking the Linux install? I got a new hard drive and after cloning my old drive I have an extra 500gb of un used space and want to combine it with the space from my old drives data partition so I don't have 2 seprate partitions and don't want to have to reinstall Linux because it took me a while to get all my programs installed and settings the way I want them and I did the mod that makes 12.04 look more like 10.04 and did the MAC Lion Theme Mod and don't want go th all the time consuming steps to get it all set up again.
    Last edited by daldude; March 3rd, 2013 at 05:03 PM.

  2. #2
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    2,864
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Move or rearange Partitions?

    Is the space you want to combine on the same HD?
    Open Gparted and take a screen of the partitions and add some explanation of what you want
    Ubuntu Member Always something different. Promoting Ubuntu and System 76 at TUXPC

  3. #3
    Join Date
    Jan 2013
    Beans
    48
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Move or rearange Partitions?

    Agreed - gparted is the tool you want. You'll find it on the LiveDVD, and you'll need to boot the LiveDVD to use it, as the disk you're modifying must be unmounted at the time. Gparted's built-in documentation should explain the process clearly. (I just got done resizing partitions on a 1TB drive; it was reasonably simple but took a long time.)

    Good luck.

  4. #4
    Join Date
    May 2012
    Beans
    35

    Re: Move or rearange Partitions?

    Assuming that
    - the new drive is the boot drive, sda
    - your original system was the boot drive, originally sda, but now has become sdb
    - you've "cloned" the original system, which was boot drive, sda, to the new drive (boot drive, sda)

    Quote Originally Posted by daldude View Post
    Is there a way to move a linux system partition without breaking the Linux install?
    Yep. You cloned it. It should just work. (assuming that "cloning" includes the boot loader and the BIOS selects the new drive)

    If you update grub you will see that it will find your original install that is now on sdb. If you select it at the updated grub menu, you may see that your original system still works (uncertain how well).

    That's all pretty straight forward, so maybe my assumptions are off.

    It appears that your other question is buried in that excellent sentence with no commas! Is it something like this?...

    "How can I combine the "old drives data partition" with the "extra 500gb of un used space" on the new drive, so I "don't have 2 seprate partitions"?

    If that is your question, then it's over my head. Certainly there are people here who can figure out how to do almost anything if they have a clear understanding of the question.

    I'm stealing this line from gogalthorp in another forum...

    "LVM does not merge partitions it does merge file systems on multiple partitions. But you have to create LVM partitions to use it. Does not work on any old partition. "

    Yep, way over my head and may involve lots of effort, but LVM is a way to create one file system that spans partitions on different hard drives.

    https://wiki.ubuntu.com/Lvm

    You've been around here for years but just in case you forgot... be certain that your data backup is current.

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

    Re: Move or rearange Partitions?

    If you cloned drive and have both drives still plugged in you will have issues. You cannot have duplicate UUIDs and a full clone copies UUIDS. I normally suggest a new install and copy /home. And prefer /home be in a new partition so system partition is small.

    If you want to keep old drive plugged in, you will have to change UUIDs, edit fstab and grub with new UUIDs on one system or the other.

    Post this using liveCD or flash drive:
    # To clear cache and get new view:
    sudo blkid -c /dev/null -o list
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    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
    Oct 2009
    Beans
    170

    Re: Move or rearange Partitions?

    What I want to do is merge 2 partitions into 1 partition so the 1 partition has the combined space of both partitions but the problem is the 2 partitions are seprated by my Linux System Partition and Swap Partition. I cloned a 500gb hard drive to a 1tb hard drive so half the drive is unused and I want to use that extra space and add it to my exsisting partition I use for data storage. If I could somehow move the Linux System partition and Swap partition to the end of the free space on the 1tb drive and then merge the remaining space with my exsisting that might work but I don't know how to do that but I don't know if that will break the Linux Install because grub loader will be looking for the Linux Partition in the orginal place where it no longer existsts plus all the programs might have the same problem and there for will not run.
    There is a program called Partition magic but that costs money.
    I think the only way to do what I want is to delete my Linux System and Swap partitions plus my old Data Partition (that I've backed up all the data on) and then creat a data partition using Windows 7 leaving 150 GB for Linux and then reinstall Linux.

  7. #7
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    2,864
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Move or rearange Partitions?

    Quote Originally Posted by carl4926 View Post
    Is the space you want to combine on the same HD?
    Open Gparted and take a screen of the partitions and add some explanation of what you want

    Like I said
    A picture so we can see what you have....
    Ubuntu Member Always something different. Promoting Ubuntu and System 76 at TUXPC

  8. #8
    Join Date
    Oct 2009
    Beans
    170

    Re: Move or rearange Partitions?

    I want to combine the NTFS DATA-MP3 and NTFS DATA-MP3b partitions to make one larger partition but as you can see my Linux System and Swap Partitions are in between them.
    Attached Images Attached Images
    Last edited by daldude; March 5th, 2013 at 08:32 AM.

  9. #9
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    2,864
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Move or rearange Partitions?

    It's possible tricky and very time consuming
    sda7 is in the extended space and sda3 is a primary

    So you would need to shrink sda7 so as to be able to shrink the extended
    But you need to free the space on the correct side, that is next to sda3

    Whatever you do Backup
    Ubuntu Member Always something different. Promoting Ubuntu and System 76 at TUXPC

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
  •