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

Thread: partitions

  1. #1
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    partitions

    I am trying to repartition from the live usb and have an issue. I've done this a lot and never an issue before. See attached screenshot. I want to have 35GB as /, 4Gb as swap, and the rest as /Home. But it won't let me move /home to right 12 GB so I can add 12GB to /. I think the issue is somehow /sda2 is an extended partition which wasn't what I wanted. I need to preserve the files in /home which is backed up but still don't want to reinstall it.Please advise.
    Attached Images Attached Images
    Last edited by cmcanulty; December 2nd, 2015 at 10:16 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: partitions

    I am trying to repartition from the live usb and have an issue. I've done this a lot and never an issue before. See attached screenshot. I want to have 35GB as /, 4Gb as swap, and the rest as /Home. But it won't let me move /home to right 12 GB so I can add 12GB to /. I think the issue is somehow /sda2 is an extended partition which wasn't what I wanted. I need to preserve the files in /home which is backed up but still don't want to reinstall it.Please advise.

    gparted.jpg

  3. #3
    Join Date
    Jun 2014
    Beans
    7,376

    Re: partitions

    But it won't let me move /home to right 12 GB so I can add 12GB to /
    Well, what exactly happens when you try to do this? Any error messages. You have very little data on it but if you want to do this, you first unmount sda5 and when you go to the resize option you should see an option asking how much space you want before the partition. Indicate 12GB which will need to move all the data in the partition so it will take a while. You would need to do the same with the Extended partition. This should give you 112GB of unallocated space before the Extended partition which you an use to expand sda1. Since you are moving data and any time you are modifying partitions, it is pretty risky so you may lose some data. Having a backup is great but you never know what will happen. Also, I've never done this myself but it seems logical from my understanding of partitioning.

    Have you reviewed the GParted Manual on resizing?

    http://gparted.org/display-doc.php%3...tition-actions

  4. #4
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: partitions

    The partitions sda1, sda2 & sda5 all have a key icon against them. They are locked and in that state cannot be resized. Have these partitions been mounted? If gparted is run from a live session then only swap should have the key icon. If swap was in the extended partition (which it is not) then the extended partition would also have the key icon and set swap to swap off would remove the key icons. Which is not the solution in your case.

    You need to remove the key icons from sd1, sda2 & sda5.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  5. #5
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: partitions

    the partitions were in use in the screenhot but when I was using the live usb they weren't mounted. The issue is how to deal with the extended partition to make it smaller.It doesn't behave like an ordinary partition where I could slide the left arrow to the right to make /home 12GB smller, the drag / to to the right to ake up the extra 12GB. Is there a way to convert the extended partition to a normal partition?

  6. #6
    Join Date
    Jun 2014
    Beans
    7,376

    Re: partitions

    The Extended partition can't be changed until you change the logical partition within it. Did you do that? You might try a google to see about changing a logical to a primary which you could do as you have only three primaries. Then you won't need the Extended. Never done it myself so won't offer any advice.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: partitions

    Make sure you have good backups. Any partition change has risk. Biggest is user gets impatient and stops system in the middle and then system is totally corrupted. Or power failure in middle of a partition move. Then recovery from backup is only recourse.

    You have to resize the logical partitions inside the extended first. Then move logical right to make unallocated at start of extended. Then you can move start of extended to in effect move unallocated out of extended partition. Think of it as the old slide puzzle where you have to move pieces around to get what you want.

    You can relatively easily convert /home to a primary partition, but still have to resize and move right with gparted. Use fixparts and it can let you select partition type changes.
    http://www.rodsbooks.com/fixparts/
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: partitions

    OK thanks I will try that

  9. #9
    Join Date
    Aug 2005
    Location
    Northern Michigan USA
    Beans
    2,384
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: partitions

    OK I installed fixparts and am trying the l option to change the extended sda2 to logical and I get this error, the tutorial says "To use FixParts, you must launch it and pass it a device filename, as in:
    # fixparts /dev/sdc" see the screenshot in previous post for my partitions. What am I doing wrong?The tutorial doesn't say it must be run from live usb maybe it does have to?


    Code:
    librarian@dell:~$ sudo fixparts /dev/sda2 -l
    [sudo] password for librarian: 
    FixParts 0.8.8
    Usage: fixparts device_filename
    librarian@dell:~$
    Last edited by cmcanulty; December 3rd, 2015 at 06:00 PM.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: partitions

    I would expect you have to run from live installer, so partitions are unmounted. But do not know for sure as it is just editing partition table. Changes to partition table could cause issues with running system depending on changes.

    But instructions to not show a -l parameter.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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
  •