LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2021, 10:55 PM   #1
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Rep: Reputation: 11
Help with partitioning - shrink an Extended Partition


Hello all. Just wondering if the assembled wisdom could assist me with this problem.

I have previously mucked around (successfully) with re-sizing & moving partitions, but that was with primary partitions when there was spare space to do it - and not dealing with an Extended partition.

I have a drive containing several partitions, one being /var. /var is now full, I can't print or install updates. I could expand /var by 1.6Gb that is free to the right of it (not enough for what I want), but I want to double the size of /var but I am hampered by the fact that the partition to the right (see screen shot) is an Extended partition containing a Logical partition which takes up the rest of the room to the end of the drive.

My question is, to create the required space to expand /var, do I first have to shrink the Logical partition /dev/sdc5, then shrink and move the Extended partition (/dev/sdc4) to the right thus creating some spare space that I can expand /var into?

I found another problem on here similar to this from a few years ago, but the person had an extended partition containing swap in the middle of other primary partitions, so not quite the same.

I don't have any experience with re-sizing Extended partitions and I just don't want to be mucking around with this, not knowing and not being comfortable with what I'm doing, and completely mucking the drive up.

Any help greatly appreciated.
Attached Thumbnails
Click image for larger version

Name:	Drive containing partitions including var - 2 SMALLER.jpg
Views:	10
Size:	44.2 KB
ID:	37797  
 
Old 12-03-2021, 11:16 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
The extended is just a container - it's always the least of your worries. Just grab sda5 and drag it all the way to the right. Apply that. Then just drag the left boundary of the extended to free up as much space as you want. Can be done again (just the extended) anytime.

Easy.
 
Old 12-04-2021, 04:11 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
GParted should be able to handle this without problem but first unmount the logical (sdc5) partition before trying to resize. This would need to be done from a system not in use so use a GParted live CD/USB or another live Linux system. THe /var directory often fills up with log files so you might also check that to see if you can free space. THe link below is to the GParted manual on resizing.

https://gparted.org/display-doc.php%...tition-actions

Last edited by yancek; 12-04-2021 at 04:14 AM.
 
Old 12-06-2021, 08:07 PM   #4
Milo4t
Member
 
Registered: Sep 2003
Location: Canberra, Australia
Distribution: Mageia #4.1
Posts: 45

Original Poster
Rep: Reputation: 11
Thanks

Thanks for the help, greatly appreciated. I finally got it sorted yesterday, much easier than I thought.
 
  


Reply

Tags
partitioning, shrink



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 20 - Expand /home partition and shrink Win8 partition lolzies Linux - Hardware 1 07-12-2014 10:40 AM
Partitioning.HD 290GB | Free:68GB Max Shrink: ONLY 8,5GB Why? esgol Linux - Newbie 6 08-03-2012 03:53 PM
[SOLVED] I need help converting a vfat extended partition into a ext4 partition zorro70 Linux - General 6 02-15-2011 08:55 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 06:08 PM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration