Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Disk/partition issue. How can I extend the volume where Linux is?

  1. #1
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Disk/partition issue. How can I extend the volume where Linux is?

    Here's a screenshot of the problem:



    See all that free space? I want to extend the volume where Linux is sitting so that the free space is part of it but there are 2 partitions in the way, one is "extended" and the other is "swap". What is the easiest way to do this??

    Just an FYI on how it got this way:
    I made a disk image of everthing on an older laptop who HDD is 160GB in size. I restored that image to this bigger HDD (500GB in size) so for some reason it has made that extra space "unallocated".
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    Maybe 4 choices?
    You can probably expand extended partition to include all the unallocated, then move swap all the way to the end of the drive inside the extended and then shrink extended? That then moves unallocated before extended.

    You can just delete swap (& extended) and recreate at end of drive. You will have to manually edit fstab with new UUID of swap. You probably can still boot but it will complain about a partition not found as the old UUID is no more.

    You can create a new partition and move /home into it.
    To move /home uses rsync- Be sure to use parameters to preserve ownership & permissions
    https://help.ubuntu.com/community/Pa...ng/Home/Moving


    You can just create a new partition in the unallocated. I would first expand extended partition so new partition is inside the extended. That gives a bit more flexiblity in the future as you can only have one extended which can hold many logicals.
    With the new partition you mount it as /mnt/data and can link all the folders inside it back into /home so it looks like it is part of your install. A bit more advanced as you have to edit fstab to add partition and set ownership & permissions to use it.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?



    Now here's what it looks like. I used Clonezilla and told it to ignore the partitions on the image I restored.

    My question now is:
    It shows there are 2 partitions of 5.9GB each, one labeled "Extended" and the other labeled "Unknown". There is no "swap". So, is it ok to not have "swap" or should I make the "Unknown" one swap?? Is swap really necessary?
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  4. #4
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    Oh, my bad. The "Unknown" labeled partition is already swap it just doesnt have a name so it labeled it "Unknown". Haha.
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  5. #5
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    So, using Clonezilla as I did worked. And I didnt even have to do anything else. Cool.

    I'll mark thread as solved then.

    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  6. #6
    Join Date
    Apr 2006
    Location
    Ubuntuland
    Beans
    2,124
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    Just an FYI. If you're system really does use swap, it's best to have that partition at the beginning of the disk instead of the end.

    If you machine does use swap much, then it really doesn't make much difference.
    24 beers in a case, 24 hours in a day. Coincidence? I think not!

    Trusty Tahr 64 bit, AMD Phenom II 955 Quad Core 3.2GHz, GeForce 9600 GT
    16G PC2-6400 RAM, 128 GB SSD, Twin 1TB SATA 7200 RPM RAID0

  7. #7
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    I have, or may have, a new problem. Take a look at this message its giving me:



    What does that mean?
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    If you have a new 4K drive or SSD, then partition alignment is important. Normally gparted now aligns on correct boundries. Not sure how you created new partition.
    If you have an older drive it really does not matter.

    If you have encrypted /home then partition tools do not see swap.
    https://help.ubuntu.com/community/SwapFaq

    If you have lots of RAM you probably can live without swap. I have 4GB of RAM and almost never use swap. But it is better to have at least some swap.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    Quote Originally Posted by oldfred View Post
    If you have a new 4K drive or SSD, then partition alignment is important. Normally gparted now aligns on correct boundries. Not sure how you created new partition.
    If you have an older drive it really does not matter.

    If you have encrypted /home then partition tools do not see swap.
    https://help.ubuntu.com/community/SwapFaq

    If you have lots of RAM you probably can live without swap. I have 4GB of RAM and almost never use swap. But it is better to have at least some swap.
    I too have 4 GB of ram. I wonder if I can just delete it.....

    Anyone know?
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


  10. #10
    Join Date
    Jan 2011
    Location
    Linux heaven
    Beans
    993
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Disk/partition issue. How can I extend the volume where Linux is?

    Can anyone tell me what that warning message means in post 7 above? It's the one that says the partition is misaligned.
    ???????
    Be inspired by phreaking.
    http://tinyurl.com/about-phreaking
    And don't touch the Linux hat!
    Linux user #572109


Page 1 of 2 12 LastLast

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
  •