Need Partition Help <SOLVED>

Forum rules
Before you post please read this
Post Reply
rbeltz48
Level 4
Level 4
Posts: 228
Joined: Mon Jan 16, 2012 3:08 pm
Location: Florida, USA

Need Partition Help <SOLVED>

Post by rbeltz48 » Thu Aug 16, 2018 11:11 am

How do I merge the sda1 partition with the unallocated space as shown below? I have tried the Live CD and a Gparted CD with no success. Thanks.
Screenshot at 2018-08-16.jpg
Last edited by rbeltz48 on Thu Aug 16, 2018 4:17 pm, edited 1 time in total.

srq2625
Level 4
Level 4
Posts: 292
Joined: Tue Jan 08, 2013 11:35 am
Location: State: Constant Confusion, Country: D'oh

Re: Need Partition Help

Post by srq2625 » Thu Aug 16, 2018 11:41 am

The key is that the partition you want to manipulate can't be mounted. So, unmounts it, give it a go and see if that doesn't get you moving.

User avatar
Flemur
Level 16
Level 16
Posts: 6053
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Need Partition Help

Post by Flemur » Thu Aug 16, 2018 12:35 pm

rbeltz48 wrote:
Thu Aug 16, 2018 11:11 am
How do I merge the sda1 partition with the unallocated space as shown below? I have tried the Live CD and a Gparted CD with no success. Thanks.
From LiveMedia, using gparted I would delete all the partitions except sda1; then you can just extend it into the free space you just created, but leave room for swap.

Then re-create your swap partition and make sure the UUID matches the one in /etc/fstab (if it doesn't match...it's not the end of the world, but it'll wait 1.5 minutes during boot if it can't find the swap partition - but then it'll boot and you can fix it from your running system).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

rbeltz48
Level 4
Level 4
Posts: 228
Joined: Mon Jan 16, 2012 3:08 pm
Location: Florida, USA

Re: Need Partition Help

Post by rbeltz48 » Thu Aug 16, 2018 1:03 pm

OK. I have 4 GB of memory on my test box. Should I make the Swap file 8 GB, twice the memory?

User avatar
JerryF
Level 9
Level 9
Posts: 2890
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Need Partition Help

Post by JerryF » Thu Aug 16, 2018 1:27 pm

rbeltz48 wrote:
Thu Aug 16, 2018 11:11 am
How do I merge the sda1 partition with the unallocated space as shown below? I have tried the Live CD and a Gparted CD with no success. Thanks.
Unfortunately, you can't the way it is right now. sda1 is a primary partition, and sda5 is a logical partition that is within the extended partition sda2.

You'll need to delete sda5 and then delete sda2. You can then expand sda1 to whatever size you want.

Extended and logical partitions are great for their purpose, but this is one of the drawbacks.

If you don't need more than 4 partitions on that disk, make sure that when you create a new partition, it's set as a primary partition, not logical.
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

rbeltz48
Level 4
Level 4
Posts: 228
Joined: Mon Jan 16, 2012 3:08 pm
Location: Florida, USA

Re: Need Partition Help

Post by rbeltz48 » Thu Aug 16, 2018 4:16 pm

Thanks Flemur and JerryF. Followed your advice and it worked like a charm. But had to edit the /etc/fstab file for the new Swap on sda2 instead of sda5. Good to know there are knowledgeable people here on the forums. Even after 12 yrs. with Linux off and on (started with Ubuntu 5.04 and have been F.T. with Linux since 2012) there is still so MUCH to learn. Thanks again.

Post Reply

Return to “Mounting Partitions”