Fedora Linux Support Community & Resources Center
  #1  
Old 19th June 2017, 09:55 PM
shabo Offline
Registered User
 
Join Date: Jun 2017
Location: richardson
Posts: 1
linuxfedorafirefox
Extending (ext4) / partition

My current / partition is almost full and i want to extend it. I have two un-allocated spaces. (gparted image is attached)

I want to know how to increase / partition with those unallocated partitions.

Thanks
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-06-19 15:50:08.png
Views:	53
Size:	127.9 KB
ID:	27108  
Reply With Quote
  #2  
Old 20th June 2017, 06:21 AM
robertdaleweir Offline
Registered User
 
Join Date: Oct 2005
Location: British Columbia, Canada
Posts: 834
linuxfedorafirefox
Re: Extending (ext4) / partition

Quote:
Originally Posted by shabo View Post
My current / partition is almost full and i want to extend it. I have two un-allocated spaces. (gparted image is attached)

I want to know how to increase / partition with those unallocated partitions.

Thanks
Hi shabo
Welcome to the Fedora Forum. Based on your 'gparted screenshot' I would first remove the 'linux-swap' partition from its current location (/dev/sda14) . I would then click on /dev/sda13 and go to the Partition Menu item and choose Resize/Move. This will open up a new window. You can now stretch (grab arrow on right side of the partition and now drag) the partition into the 'unallocated space' as far as you can (or want to). Next I would click on the 'unallocated' space just following /dev/sda12. At this location I would create a 'linux-swap' of 4GB.
Quote:
I would make sure that you have a 'backup' of this drive before making these changes in case something were to go wrong during the changes.
You have to click the Green Check Mark in order to have the above changes take effect. It will ask for your agreement before proceeding.
Good luck...
__________________
Robert :)
Kernel 4.10.17-100.fc24.x86_64 Gnome Software 3.20
CPU AMD FX-6300 Six Core AM3+
MoBo Gigabyte 78LMT-USB3 AMD760G AM3+ MicroATX
Memory 8 Gigs Gskill Ripjaw DDR3-1333 PC-10666
Reply With Quote
  #3  
Old 20th June 2017, 09:36 AM
antikythera Offline
Administrator
 
Join Date: Dec 2013
Location: United Kingdom
Posts: 4,750
linuxchrome
Re: Extending (ext4) / partition

will that work for a mounted partition assigned as root? if not, maybe boot from live media. either way, make a note of the root UUID in case it gets altered and fstab needs updating manually.
__________________
Download, Install and Share Fedora - Official ISO Torrents | Live ISO Respins containing post-release updates
Reply With Quote
  #4  
Old 20th June 2017, 04:05 PM
lsatenstein Online
Registered User
 
Join Date: Jun 2005
Location: Montreal, Que, Canada
Posts: 4,168
linuxfedorafirefox
Re: Extending (ext4) / partition

There is a problem with the above advice. The /etc/fstab has an entry for swap.

This is what I would do.
First of all, using gparted or other tool, shrink the /home partition by 5 gigs. That will create a 5 gig unallocated space. It should take a few minutes to do that.

Then format that vacated space to a swap partition.

Take note of that partition's UUID value

edit /etc/fstab and Revise the UUID= for the swap file
Reboot

The system will pick up the new swap file

Check with gparted that swap is enabled (swapon) for that partition
delete the space occupied by the previous (old) swap partition
Using gparted, extend the space of your / partition.
All done.
__________________
Leslie in Montreal

Interesting web sites list
http://forums.fedoraforum.org/showth...40#post1697840
Reply With Quote
  #5  
Old 8th July 2017, 07:40 PM
amiga Online
Registered User
 
Join Date: Aug 2007
Posts: 101
linuxfirefox
Re: Extending (ext4) / partition

Quote:
First of all, using gparted or other tool, shrink the /home partition by 5 gigs. That will create a 5 gig unallocated space. It should take a few minutes to do that.
There is no need to shrink anything as there is already a 20GiB unallocated space following /home on sda12 as others have noted.
Reply With Quote
  #6  
Old 8th July 2017, 10:12 PM
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 67
Posts: 3,005
linuxfedorafirefox
Re: Extending (ext4) / partition

If you boot from a LiveUSB, you can have gParted grow your / partition right across that 20 GB of unallocated space without worrying about having the UUID change. Getting that last little bit into / would be more difficult, but as it's only a few hundred MB, it's not going to make that much of a difference, unless you really need every last byte.

If you're that tight on space, have gParted move your swap partition so that the free space is right next to / and then increase /.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #7  
Old 10th July 2017, 01:08 AM
amiga Online
Registered User
 
Join Date: Aug 2007
Posts: 101
linuxfirefox
Re: Extending (ext4) / partition

Quote:
If you boot from a LiveUSB, you can have gParted grow your / partition right across that 20 GB of unallocated space without worrying about having the UUID change.
Actually you can't as the 20 GB of unallocated space is before the root partition. You can only grow from the end of a partition, not from the beginning. You would need to move or clone the partition into this space.

If you created a new 20GiB partition in this space and rsynced the contents of root you would have doubled the size of the partition. You would then replace the UUID in fstab for / and reboot. If everything worked well you could eventually delete the original sda13 / partition and expand your new / up to 30 GiB.
Reply With Quote
  #8  
Old 10th July 2017, 01:29 AM
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 67
Posts: 3,005
linuxfedorafirefox
Re: Extending (ext4) / partition

OK, then do it in two stages. First, move / down to the beginning of that 20 GB unallocated space, then grow it to take in the space at the upper end. I don't think that this will change the UUID, but it can't hurt to check and change /etc/fstab if needed before rebooting.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
Reply

Tags
ext4, extending, partition, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending a Partition Feckless Using Fedora 3 6th January 2014 08:30 AM
Extending the partition chandru1 Installation, Upgrades and Live Media 5 1st July 2010 09:11 PM
Extending a partition. NickMullen Using Fedora 11 8th November 2008 11:16 PM
Extending Fedora´s partition?? Linoex Using Fedora 13 28th August 2008 08:10 AM
Extending my linux partition. blueboy4 Using Fedora 2 23rd March 2007 10:54 PM


Current GMT-time: 03:57 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat