You are Here:
Download Linux Lite 5.4 RC1 today - See Release Announcements



Is it possible to resize root partition?

Author (Read 2360 times)

0 Members and 1 Guest are viewing this topic.

Is it possible to resize root partition?
« on: February 16, 2019, 06:35:48 PM »
 

Nyto

  • Occasional Poster
  • **
  • 63
    Posts
  • Country: mx
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Intel Core i7-9700T

  • MEMORY: 16Gb

  • VIDEO CARD: Intel UHD Graphics 630

  • Kernel: 4.x
[size=78%].[/size]
Hello.
My system is working properly, it is a LL 4.2 installation, and the partitioning is:



Device          Description
-------------     --------------------------
/dev/sda1     Boot, Ext4
/dev/sda2     Root, Ext4
/dev/sda3     Home, Ext4
/dev/sda4     Misc_storage, NTFS


I need to resize my root partition, but I guess it can't be done on a running system.
I know it could be resized by booting from a Live USB drive, but won't this mess up my installation, preventing it from boot?


I don't want to change the partitioning, I just need to allocate more space for said partition. Additional space is available on the same drive.


Can you guys recommend what to do?


Thanks!

Pathological tweaker.
 


Re: Is it possible to resize root partition?
« Reply #1 on: February 16, 2019, 07:09:16 PM »
 

torreydale

  • PayPal Supporter
  • Platinum Level Poster
  • *****
  • 1564
    Posts
  • Country: us
  • Reputation: 254
  • * Forum Moderator *

  • Linux Lite: 4.8 64bit

  • CPU: Intel Core i5-5300U (-HT-MCP-)

  • MEMORY: 8Gb

  • VIDEO CARD: Intel Broadwell-U Integrated Graphics

  • Kernel: 4.x
@Nyto ,


I have not tried resizing the root (/) partition, but there appears to be a plethora of approaches online when you ask the worldwide web the same question.  I would think this extra space you have might need to be contiguous with the root partition, but that might not be true.

Want to thank me?  Click my [Thank] link.
 

Re: Is it possible to resize root partition?
« Reply #2 on: February 16, 2019, 07:54:16 PM »
 

m654321

  • Gold Level Poster
  • *******
  • 891
    Posts
  • Country: gb
  • Reputation: 86
  • Linux Lite Member, 'Advocate' & Donator

  • Linux Lite: 4.6 64bit

  • CPU: Intel Pentium [email protected] (2cores) on an Asus X71Q

  • MEMORY: 4Gb

  • VIDEO CARD: Intel GM45 Express Chipset

  • Kernel: 4.x
Resizing the root partition ( / ) is pretty straightforward using gparted in the live environment - I've done this myself for freeing up space for the installation of a second (or more) distro.

Just run LL in the live environment (using your LL installation DVD or USB stick), and use gparted (designated Partition Drives in the Menu). From the gparted window, highlight your root partition to be resized, click on the Partition tab in the toolbar at the top of the gparted window, and in its drop-down box click on Resize/Move option. Then enter the new size you want. Reboot, and everything should be fine. Shrinking the root partition will create unallocated space - you can leave this as it is, or add it to another partition, using gparted.

I've found that gparted can be used in the LL live environment to not only resize LL's root partition, but also to resize a Windows OS partition, though you may prefer to do this within the Windows OS itself, under the disk manager.

I haven't checked, but I think you may find further details on resizing partitions in LL's Help Manual - installed by default on your Desktop  ;)

Hope this helps
Cheers
Mike
Last Edit: February 17, 2019, 11:56:59 AM by m654321
64bit OS (32-bit on Samsung netbook) installed in Legacy mode on MBR-formatted SSDs (except pi which uses a micro SDHC card):
2017 - Raspberry pi 3B (4cores) ~ [email protected] - LibreElec, used for upgrading our Samsung TV (excellent for the task)  
2012 - Lenovo G580 2689 (2cores; 4threads] ~ [email protected] - LL3.8/Win8.1 dual-boot (LL working smoothly)
2011 - Samsung NP-N145 Plus (1core; 2threads) ~ Intel Atom [email protected] - LL 3.8 32-bit (64-bit too 'laggy')
2008 - Asus X71Q (2cores) ~ Intel [email protected] - LL4.6/Win8.1 dual-boot, LL works fine with kernel 4.15
2007 - Dell Latitude D630 (2cores) ~ Intel [email protected] - LL4.6, works well with kernel 4.4; 4.15 doesn't work
 

Re: Is it possible to resize root partition?
« Reply #3 on: February 21, 2019, 04:42:56 PM »
 

Nyto

  • Occasional Poster
  • **
  • 63
    Posts
  • Country: mx
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Intel Core i7-9700T

  • MEMORY: 16Gb

  • VIDEO CARD: Intel UHD Graphics 630

  • Kernel: 4.x
Thank you, torreydale and m654321.
I am taking the dive right away (I'll do a backup first, just in case).

Then I'll come back to tell the story. Cheers!
Pathological tweaker.
 

Re: Is it possible to resize root partition?
« Reply #4 on: February 21, 2019, 09:05:46 PM »
 

Nyto

  • Occasional Poster
  • **
  • 63
    Posts
  • Country: mx
  • Reputation: 1
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: Intel Core i7-9700T

  • MEMORY: 16Gb

  • VIDEO CARD: Intel UHD Graphics 630

  • Kernel: 4.x
OK. Just to report everything went smooth.

I booted up from a live PartedMagic drive (the last FREE version ;-). Then, I used the handy-dandy app named FSArchiver to make individual backup images of my ext4 partitions (boot, root, home), and then used Gparted to move-resize-check as needed.

Reboot and ta-daa, everything is working normally (I was fearing this would alter the MBR sector or something, but noo!).

Again, thank you guys. In this web site the support is always there.


PS: Of course, backup images are needed for the newly-resized partitions, but I'll do that tomorrow, I feel lazy already XD
Last Edit: February 21, 2019, 09:07:29 PM by Nyto
Pathological tweaker.
 


 


Download Linux Lite 5.4 RC1 today - See Release Announcements