LinuxQuestions.org
Help answer threads with 0 replies.
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 07-12-2015, 11:45 AM   #1
Joshmccullough
LQ Newbie
 
Registered: Apr 2015
Location: Michigan
Distribution: Linux Minx 17.1
Posts: 13

Rep: Reputation: Disabled
How to extend a partition - GParted not allowing?


Hi all-

I shrunk down one partition on an external drive and now I want to extend another; I'm in GParted, I've formatted partitions sdb1 and sdb3 to ext4 format, but when I try and extend sdb1 it doesn't give me the ability to do that.

A screenshot's attached; is there anything that anyone can see or think of that'd be obvious to most that I'm clearly missing here? Any assistance is appreciated, thanks!
Attached Thumbnails
Click image for larger version

Name:	snapshot4.png
Views:	56
Size:	54.0 KB
ID:	18930  
 
Old 07-12-2015, 12:36 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
As I can see in the screenshot, it is not possible to extend sdb1, since there is no space left above sdb1.
 
Old 07-12-2015, 12:39 PM   #3
Aia
Member
 
Registered: Jun 2006
Posts: 66

Rep: Reputation: 21
/dev/sdb1 can not be extended because there's no room to extend to.
208.66 + 68.39 + 188.71 = 465.76 That's the total size of the hard drive.
 
Old 07-12-2015, 01:01 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
there still seems to be /dev/sdb2, an NTFS (=Windows) partition, which is also still mounted.
If you are 300 percent sure you don't need that anymore, then you can unmount it and delete it - only after that can you expand one of the other partitions.

But, like gparted is also telling you, this is not a trivial thing to do, there's no guarantee that you don't lose data if there's e.g. a power outage, so you should have a backup, and it takes a long time.

Also it might be advisable to reboot after completing such an operation - and, if one of the altered partitions contains your system boot stuff, there's even a chance that your system won't boot; but that's only a small, solvable annoyance.
 
Old 07-12-2015, 01:27 PM   #5
Joshmccullough
LQ Newbie
 
Registered: Apr 2015
Location: Michigan
Distribution: Linux Minx 17.1
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Aia View Post
/dev/sdb1 can not be extended because there's no room to extend to.
208.66 + 68.39 + 188.71 = 465.76 That's the total size of the hard drive.
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
 
Old 07-12-2015, 01:29 PM   #6
Joshmccullough
LQ Newbie
 
Registered: Apr 2015
Location: Michigan
Distribution: Linux Minx 17.1
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
there still seems to be /dev/sdb2, an NTFS (=Windows) partition, which is also still mounted.
If you are 300 percent sure you don't need that anymore, then you can unmount it and delete it - only after that can you expand one of the other partitions.

But, like gparted is also telling you, this is not a trivial thing to do, there's no guarantee that you don't lose data if there's e.g. a power outage, so you should have a backup, and it takes a long time.

Also it might be advisable to reboot after completing such an operation - and, if one of the altered partitions contains your system boot stuff, there's even a chance that your system won't boot; but that's only a small, solvable annoyance.
This is an external drive, so no worries about the laptop not booting. The NTFS partition has a Win10 build for Virtualbox; i suppose i could move it, format the whole drive, and start again, but i figured I'd see if i could combine the ext4's into one without doing that.
 
Old 07-12-2015, 01:45 PM   #7
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
Combining partitions is near impossible. You could theoretically use software to effectively mount them at the same spot, but that wouldn't be worth it IMHO.
 
Old 07-12-2015, 01:46 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Joshmccullough View Post
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
You can't combine them when there's a third partition splitting them down the middle.

You could delete the second one, move the NTFS partition to the end of the drive, then expand the first one to fill the available space, but it would take a very long time and would be very risky. You'd be better off just backing up and reinstalling/repartitioning from scratch.
 
Old 07-12-2015, 08:33 PM   #9
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by Joshmccullough View Post
I should be more clear; how might i 'combine' the two non-NTFS partitions to become one large partition? That's what i meant by extend, wrong verbiage....
What I would do (by no means the only option):
Copy everything from the NTFS partition to a separate disk.
Mount both ext4 partitions, copy the files from sdb3 to sdb1
Unmount all three, then delete sdb2 and sdb3
Extend sdb1 as big as you want it
Create a new NTFS at the end and copy the files back.
 
Old 07-13-2015, 03:09 AM   #10
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I think it would be better to copy all relevant data to an external disk.
Then delete all partitions on the mentioned disk. Create the new ones.
Copy all data back.
 
Old 07-13-2015, 05:25 AM   #11
Joshmccullough
LQ Newbie
 
Registered: Apr 2015
Location: Michigan
Distribution: Linux Minx 17.1
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keruskerfuerst View Post
I think it would be better to copy all relevant data to an external disk.
Then delete all partitions on the mentioned disk. Create the new ones.
Copy all data back.
Yeah, that's what i ended up doing. It's a fine line between clever and stupid, figured I'd just do the easy thing and learn better for next time
 
Old 07-13-2015, 10:16 AM   #12
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Next time, I think three times before posting anything.
 
  


Reply



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
[SOLVED] gparted: Invalid partition table - recursive partition on /dev/sdb unixunderground Linux - Software 5 04-26-2015 04:26 PM
Nagios Root partition warning - How do I extend partition? fireshooter Linux - Newbie 10 01-04-2013 07:01 AM
Partition trouble: Gparted errors and Slackware says partition overlap Kallaste Linux - Newbie 9 06-28-2012 07:05 AM
Gparted: Joining 2 partition ext3 within one partition (data saved) Davno Linux - Software 1 12-11-2009 04:24 PM
ATI card with 4 pin video out to TV not allowing desktop extend techemically Linux - Hardware 8 10-29-2008 09:54 AM

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

All times are GMT -5. The time now is 01:54 AM.

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