#Gparted partition help

169 messages · Page 1 of 1 (latest)

grand cradle
#

I want to extend the linux /home partition that I have and shrink the windows one as shown but i dont know how to move the free space when i will shrink it from the windows partition

worthy quartz
#

is the mint and windows partition in the same drive?

covert osprey
#

@grand cradle you can't do it from a running Linux system. See those key icons in the pic above? The keys are in the car, the car is running.

#

Boot Mint Live USB, then run gparted, right-click sda4 and choose resize, and drag just the RIGHT EDGE of the sizer toward left to shrink.

#

then resize sda5, dragging just the left edge

#

also I think you mean to extend the linux root partition, not the home one. home has tons of space already

grand cradle
#

Ok but I am not that dumb bro to give me an example for the mounted partitions😭

covert osprey
#

you're not that dumb?

#

didnt imply that anyway. Just giving example of what the keys mean

grand cradle
worthy quartz
#

did it worked?

grand cradle
# worthy quartz did it worked?

i am currently doing a timeshift back up on the USB just in case. also the first time i tried to shrink the partition and then move the free space to sda7 i wasn't able to do it because of other partitions getting in the way

covert osprey
#

I don't get it. Your root partition is stupid small. That's where all your programs go; yet instead you're trying to enlarge the ALREADY BIG home partition?

#

@ripe mortar look at this

ripe mortar
#

@grand cradle remember to have a backup of your important data on an OFFLINE device. otherwise you WILL lose it.

covert osprey
#

should SHRINK sda7 by 5.59 or 6 GiB and then move swap to very end

#

of course to do that, original swap must be deleted. then recreated at end. AND fstab of install must be updated with new UUID for new swap partition

grand cradle
grand cradle
#

One option is to shrink 50 GB from windows and give 10GB to root and 40 to home

grand cradle
#

The only problem is that I don't know how to move the free space

#

In front of the partition

covert osprey
#

first thing to do then:
Boot to Windows. Use Disk Management there to shrink first partition by 50 GiB.

#

Third thing to do:
Boot to Linux Mint install.
type in terminal, sudo xed /etc/fstab

#

maximize the text editor window. Find the line about "SWAP" and put a # in beginning of that line, then save file, and close terminal.

#

Then boot the linux mint LIVE USB and message me when in live mode.

grand cradle
#

@covert osprey

#

It seems that I can only shrink the partition from GParted

covert osprey
#

you have 51 GiB free space

grand cradle
covert osprey
#

make sure u do chkdsk /f from windows ADMINISTRATOR command prompt first to scan the drive for errors before attempting any resizing

grand cradle
#

Don't mind the USB I have 4 different

covert osprey
grand cradle
#

Then

covert osprey
#

then boot live

grand cradle
#

I am currently doing the back up

grand cradle
covert osprey
#

ok

#

so follow what i said above with gparted

#

wait, did u comment out the fstab?

covert osprey
#

that u can do from live too but u must find the real root

grand cradle
covert osprey
#

not live root

#

click ur linux hdd partition then do lsblk -f

#

and show pic

grand cradle
#

Let me restart

covert osprey
#

ie - click the hdd of linux in the Devices section of file manager

#

if ur gonna restart, then edit fstab from real linux

grand cradle
#

I am in

#

What's hdd

covert osprey
#

ok u in real Mint?

grand cradle
#

Ye

covert osprey
#

not live

grand cradle
covert osprey
#

DISABLE

#

and yes

grand cradle
#

Oh I think it already is but I am going to check just in case because I don't remember if I have actually changed something

#

What should I uncheck

grand cradle
covert osprey
#

no no

#

open ADMIN prompt

#

and do powercfg /a and show

#

does it say fast startup is disabled?

grand cradle
covert osprey
#

good. reboot to Mint installation and do the fstab thing

grand cradle
#

On what partition again because u mentioned something about hdd

covert osprey
#

Second thing to do:
⁠Mint Support-Dual Booting and F… and make sure this is OFF
Third thing to do:
Boot to Linux Mint install.
type in terminal, sudo xed /etc/fstab
maximize the text editor window. Find the line about "SWAP" and put a # in beginning of that line, then save file, and close terminal.
Then boot the linux mint LIVE USB and message me when in live mode. (shrink first partition by 50 GiB)

grand cradle
#

A # like this

#

(there was not a # in the last line)

covert osprey
grand cradle
#

I reopen the xed to check if it was saved

covert osprey
#

ok so , open gparted, and shrink the big NTFS partition by 50x1024 MiB

grand cradle
#

Oh

covert osprey
#

no

#

it shows in MiB

#

so r-click> resize> and put in the Free Space Following : 51200 MiB then press Tab key

#

then the resize button, and show

grand cradle
grand cradle
covert osprey
#

yes , now click green Checkmark above, and wait many minutes

#

tag me when it's done fully. make sure electricity doesnt disappear.

grand cradle
#

@covert osprey nah man don't do me like dat anyway it's done

covert osprey
#

yayyy

#

nice nice

grand cradle
#

..... ..... .....

covert osprey
#

ok... now, right click on sda5 (the 28 GiB partition) and choose move/resize

#

then grab the sizer BOX in the center and drag it to the left

grand cradle
#

Moved all the way there

covert osprey
#

you said you wanted to grow it by 10 GiB? i would recommend at least 20 more, really

grand cradle
#

Ok whatever you say

covert osprey
#

for it to become 50 GiB, put in the new size field: 51200 MiB

#

then press tab

#

or for 48 GiB, put 49152 MiB in new size

grand cradle
#

Done

covert osprey
#

show pic before checkmark

grand cradle
grand cradle
covert osprey
#

ok hit checkmark

#

when it's finished, right click on sda6, and do 'swap off'

grand cradle
#

Ya then move again checkmark and then move the free space to the end

#

If j am correct

covert osprey
#

no, then u have to delete the swap partition

grand cradle
#

Oh ...

covert osprey
#

then move the home partition left.

#

then make new swap partition. maybe bit smaller

#

usually 2 GiB is plenty if u have 4 GiB RAM or more

#

how much RAM in ur system?

grand cradle
#

Ya the cou I have can't even run 3d games properly there's no need for that 6 extra

grand cradle
covert osprey
#

pardon, "the cou I have" ?

#

if u want to go 2.5 GiB or 3 GiB swap , that's reasonable, and it should be at very far right of partition table

covert osprey
#

u want to be 3.5 GiB?

grand cradle
#

Meh don't know

covert osprey
#

put 3

grand cradle
#

Just in case

covert osprey
#

3 x 1024

#

or leave it as is if u want

#

and put for label " SWAP " no quotes

grand cradle
#

Any changes to partition name or label

covert osprey
#

label

grand cradle
covert osprey
#

once it is made, close the gparted app, and open DISKS app

grand cradle
#

I think I am done

#

Lemme checkmark it first

covert osprey
#

then select sda7 in same app, and gear> edit filesystem: put HOME

#

and same for sda2 and put EFI < very important partition

#

got it, @grand cradle ?

grand cradle
#

On edit filesystem theres only label if I am correct

covert osprey
#

once u boot back to real Mint, u have to edit fstab and replace the UUID number of old swap with UUID of new swap

#

and take the # away... then save n reboot it.

#

lsblk -f will show all info

#

or sudo blkid if you prefer

grand cradle
#

These are the changes so far in the disks app

grand cradle
covert osprey
#

one sec

#

yes boot to the Mint install

#

you will see with cat /proc/swaps you have no active swap yet.

grand cradle
covert osprey
#

yep

#

now fix ur fstab in editor

#

with new UUID

grand cradle
#

I copy pasted the new UUID but the command cat doesn't show the partition

covert osprey
#

do lsblk -f like i said

#

and show the fstab file in editor, maximized

#

swap won't load til reboot.

grand cradle
#

is this good

covert osprey
#

yep good. just close those and reboot

covert osprey
grand cradle
#

Everything is working. Thanks

covert osprey
#

or cat /proc/swaps

#

@ripe mortar

ripe mortar
covert osprey
ripe mortar
covert osprey
#

was fun

ripe mortar
#

tho I would use btrfs with a root and home subvolumes, so that they never run out of space on one partition.