#Resizing partitions

72 messages · Page 1 of 1 (latest)

queen ember
#

I would like to expand Linux partition (sda5) and shrink Windows sda2 partition. For that to happen i would need to move grub2 core somehow and i wanna know can I do this safely. And I'd like to get rid of that 500MB unallocated space so I should move efi partition to the right and expand sda5. Is it safe?

spark stratus
#

Whatever operations you're planning, it does seem to be quite safe.

#

As far as I know however, there's no need to mess with the grub2 core.

#

That's the bootloader and is very crucial for your system, thus I dissuade you from ever doing operations on that partition.

queen ember
spark stratus
#

Please let me delve on this a bit....

#

I don't understand why there is no free space being recognized somehow, wait a minute.

#

Oh by the way, if you plan to manage your partitions, I suggest using live media.

#

These partitions are system-related so I wouldn't really suggest modifying them from within.

#

Regarding the free space following and preceding, I can't identify what may be the reason for such

queen ember
#

plus i will reboot into live version

spark stratus
spark stratus
#

Either way, I don't suggest doing so either anyways 😆

spark stratus
spark stratus
# queen ember why not?

Most of those partitions were system-related, especially the one with Mint. If they are currently in use by the system, it's generally not suggested to modify them.

queen ember
spark stratus
#

Excuse me too, I'm quite a bit confused as well 😆

queen ember
queen ember
spark stratus
#

I'll try sharing these with the others if they can find anything for you

cosmic valley
# queen ember ok, thanks

strange to see why that 1 MB grub2 thing is even there. All boot files for both operating systems are supposed to only live in the Fat32 EFI partition..

#

I would copy out whatever is in that 1 MB partition to some other storage space. (all operations done from a live usb session). The best live ISO for this would be Linux Mint (any variety). It has both gparted AND the valuable Boot Repair tool.

#
  • from live MINT USB, mount the strange grub2 partition (you can use the Disks program for that, just click the play button)
  • in terminal type sudo nemo this opens up the file manager in root admin mode.
  • go into the root file manager, navigate to the 'device' of 1 MB with the grub2 thing.
  • press Ctrl-H to show any hidden files.
  • press Ctrl-A to select all.
  • press Ctrl-X to cut them all out
#

go into either your Windows or Linux partition, make a new folder called "tempgrub". go into it, and do Ctrl-V to paste all that stuff from before.

#

then close the file managers, open gparted, deleted the grub2 partition.

  • after that right-click and resize (shrink) the Windows partition by how much you want extra for Linux
#
  • next, right click the linux one and move it to the left (into all the grey unallocated space you just made.
#
  • next, resize/grow the linux partition to the right to fill it up toward the right with EXT4 space.
#
  • click apply all (green checkmark) and wait a long time (it's gonna shift around 66 Gigs of data)
queen ember
# cosmic valley strange to see why that 1 MB grub2 thing is even there. All boot files for bot...

Oh ok, maybe it's not even a thing of the current system. I already had Mint installed once but I figured out my Windows intallation is legacy, so I deleted old Mint partition, converted Windows from MBR to GPT and installed Mint again. I don't remember partition situation after deleting Mint partition, but maybe it is the remaining of that since I was a playing around it a lot coz I wanted GRUB to detect Windows partition coz i didn't know about MBR/GPT thing yet. That 500MiB unallocated space is for some reason remaining of it

cosmic valley
#

right, I see u have more than 4 partitions, so the disk currently must be GPT.

#

so try what I said (temp-back up that grub2 thing) then delete it from gparted and shift stuff.

#

if stuff doesn't boot, run Boot Repair tool from Mint live stick

queen ember
#

ok, thanks, im gonna try this out

#

@cosmic valley ok, i can't mount that partition

cosmic valley
#

um.. open Disks app, click it there, and show

queen ember
#

no play button here...probably because it recognizes it as a bios boot partition

#

i also tried mounting it in gparted and that option is greyed out

cosmic valley
#

ok leave it. see if u can move the linux partition somehow.

#

now that I see you've made space.

#

if in gparted it doesn't work, then close it, and try in DISKS. It has a feature in the cog icon to clone or copy a partition.

#

(also if u have any critical Linux files (or even windows critical ones) you should have them backed up externally.

queen ember
#

wait, so I should move Linux partition to the other side? So I can't delete that grub partition?

#

@cosmic valley

cosmic valley
#

yeah try n move it to the left. Into that new space i see there beside the Windows one.

#

if not, try the clone method mentioned

#

but backup ur s*#^

queen ember
#

in gparted

cosmic valley
#

great

#

just be aware it will take time as there is ~66 GiB of data to move

#

make sure pc is on reliable power.

queen ember
#

and then i delete that original partition?

cosmic valley
#

i g2g a while

#

yes delete orig.

queen ember
#

what about that grub one?

cosmic valley
#

after u CHECK (from within the live system, that everything copied over good.) .. the grub one, either try to move it.. or leave it.

#

or take a gamble and delete it. it wont affect Windows Boot Manager... and Linux has the boot repair tool.

queen ember
#

@cosmic valley oh ok, thanks

queen ember
#

ok, i managed to copy that partition and delete original one, i risked and deleted that grub partition, moved EFI to the right and extended Linux partition all over unallocated space. Both operating systems now work just fine. So it is solved, thanks for help.

spark stratus
#

Congratulations, is that it?

queen ember
spark stratus
#

@cosmic valley in behalf of Schwarzi, thank you for this one!