[SOLVED] Extending root partition

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
Jeffex
Level 2
Level 2
Posts: 65
Joined: Fri Jun 13, 2014 1:08 am
Location: Gisborne, New Zealand

[SOLVED] Extending root partition

Post by Jeffex » Mon Jul 16, 2018 7:32 pm

Hi there,
I have looked around the Internet for answers to this query but I am still not entirely confident about what I think I should do here.
As you can see the space on root is getting low and I wish to increase it.
Is it simply a matter of booting to the live disk, opening Gparted, and dragging the left edge on the home partition to the right, then dragging the swap to the right, and last of all, dragging the right edge of the root partition to the right also?
Any guidance would be appreciated thank you.
I am running Mint 19 Cinnamon.

Image
Last edited by Jeffex on Tue Jul 17, 2018 3:54 pm, edited 1 time in total.
Linux Mint 19 Tara, Cinnamon: 3.8.9, Kernel: 4.15.0-36

OunceofCommonSense
Level 2
Level 2
Posts: 93
Joined: Mon Oct 01, 2012 3:52 pm

Re: Extending root partitian

Post by OunceofCommonSense » Mon Jul 16, 2018 7:49 pm

You might want to see what is using up so much space. You could open Disk Usage Analyzer under Administration (if using cinnamon). and see.
I don't think you can expand your root partition very much because your home partition to the right is in the way. You could delete the swap partition and move the boundary of Root to the right that much though.
Note: I don't think you can move the left hand boundary of a partition to the right.
MB: Asrock Extreme4-M CPU: Intel(R) Core(TM) i7-3770K CPU @3.50GHz Memory: Corsair Low Profile Vengeance 16.00 GB. GC On CPU HD4000 Platform: x86_64 Distribution: Linux Mint 19 Tara

User avatar
Pierre
Level 17
Level 17
Posts: 7411
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Extending root partition

Post by Pierre » Mon Jul 16, 2018 10:03 pm

Yes - - you can move the LHS of SDd 3 to the right, and then allow some time for the data to be shifted across,
& then move SDd 2 to the right as well, and allow a bit of time for that Data to be moved,
then finally, extend the RHS of SDd 1 to the right & then allow some time for the data to be shifted across,

Yep - you Do Have to perform all of this from Gparted, whilst using the Live Environment,
of your Booted Live Media.

- - do allow a fair bit of Time for all of this to happen, as it is a fairly slow procedure.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

User avatar
Jeffex
Level 2
Level 2
Posts: 65
Joined: Fri Jun 13, 2014 1:08 am
Location: Gisborne, New Zealand

Re: Extending root partitian

Post by Jeffex » Tue Jul 17, 2018 2:21 am

Thank you OunceofCommonSense and Pierre.
Pierre, what do you mean by 'a fair bit of time', is that 15 minutes, 1 hour...is there some kind of indication that the process is completed?
Linux Mint 19 Tara, Cinnamon: 3.8.9, Kernel: 4.15.0-36

User avatar
Pierre
Level 17
Level 17
Posts: 7411
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Extending root partitian

Post by Pierre » Tue Jul 17, 2018 2:51 am

well, to move that SDd2 which is the /swap partition, could take, maybe Five Minutes,
but for the other two, as SDd3 is a resize & SDd1 is also a resize - - that could take 40 - 60 Min for each . .

it's depends a little on the speed of your CPU & just how SDD is connected to the machine:
- usb cable or via a Sata cable - - I've done this via a usb cable & it was very, very slow - - but it did work !.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

gm10
Level 10
Level 10
Posts: 3453
Joined: Thu Jun 21, 2018 5:11 pm

Re: Extending root partitian

Post by gm10 » Tue Jul 17, 2018 2:58 am

Let me +1 to simply getting rid of some data in your / root partition, there's no need for it to be that big, in particular with a separate swap partition. Run apt autoremove; apt autoclean and cleaning out old log files from /var/log will probably go a long way, and as OunceofCommonSense suggested, running Disk Usage Analyzer with elevated privileges may help you find other culprits.

Also +1 to his move suggestion should you want to increase / regardless. His way would finish rather quickly compared to the other. You could shrink /home from the RHS and add another swap at the end. Remember you'll need to unmount/swapoff all partitions before you can modify them.
Last edited by gm10 on Tue Jul 17, 2018 3:03 am, edited 1 time in total.

User avatar
Pierre
Level 17
Level 17
Posts: 7411
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Extending root partitian

Post by Pierre » Tue Jul 17, 2018 3:03 am

on this Mate based machine - that is called "mate-disk-usage-analyzer" and is available in System Tools.
8)
that can help, in determining which directory is taking the most disk-space.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

gm10
Level 10
Level 10
Posts: 3453
Joined: Thu Jun 21, 2018 5:11 pm

Re: Extending root partitian

Post by gm10 » Tue Jul 17, 2018 3:07 am

Pierre wrote:
Tue Jul 17, 2018 3:03 am
on this Mate based machine - that is called "mate-disk-usage-analyzer" and is available in System Tools
should be baobab on his Cinnamon.

User avatar
Pierre
Level 17
Level 17
Posts: 7411
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Extending root partitian

Post by Pierre » Tue Jul 17, 2018 3:12 am

and which can be found in Administration section of the Cinnamon Desktop.

( don't like the new version of Baobab, but that's just me )
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

leonette
Level 1
Level 1
Posts: 35
Joined: Mon Jul 02, 2018 5:42 am

Re: Extending root partition

Post by leonette » Tue Jul 17, 2018 10:32 am

I will try to move the LHS of SDd 3 to the right like you said.



__________________________________________________
Bluestacks TextNow Photomath
Last edited by leonette on Thu Jul 19, 2018 2:39 pm, edited 1 time in total.

User avatar
Jeffex
Level 2
Level 2
Posts: 65
Joined: Fri Jun 13, 2014 1:08 am
Location: Gisborne, New Zealand

Re: Extending root partition

Post by Jeffex » Tue Jul 17, 2018 3:53 pm

Thank you gm10, and to all of your replies!
I no longer have to resize things at the moment as I have taken the advice of examining root and removing unneeded files. I have around 3GB space in there now and I am continuing to look for more. When I do decide to extend root I know how to go about it now so thanks again guys!.
Linux Mint 19 Tara, Cinnamon: 3.8.9, Kernel: 4.15.0-36

Post Reply

Return to “Newbie Questions”