LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2014, 01:56 PM   #1
fuhldrrf
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
GParted - No unallocated space?


Hi. Brand new to Linux here, running Ubuntu 14.04. Seriously, brand spanking new. I don't know what half this jargon is.

I am trying to create an additional partition on my HDD. It's a brand new machine and in hindsight I should probably have gone for Windows as the first install.

So the HDD is 500GB capacity, I can see it has a 243mb boot part in /dev/sda1 and then a 465GB part, dev/sda2 with a nested dev/sda5? I would assume I would want to resize this part to create some unallocated space, in order to create a new partition?

I can only create a new partition with 1MB space. I can't create a partition table, either, as there are two active partitions already! Obviously I can't unmount them either.

I have a screenshot but it appears you don't do images on this board.
 
Old 09-12-2014, 05:37 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Besides the fact that the numbers don't add up (243 + 465 > 500), you're right about resizing /dev/sda5.

The slightly odd numbering (1, 2 and 5) and the "nested" partition is due to the way the old MBR partitioning scheme works. Using MBR (which is still by far the most common partitioning system), you could originally have a maximum of 4 partitions. To get around this limitation, the extended partitioning scheme was created, which allows you to create new partitions inside a special "extended" partition.

The "primary" partitions are always given the numbers 1-4, while partitions inside an "extended" partition starts from 5. So on your drive you have 2 "primary" partitions, /dev/sda1 and /dev/sda2, one of which is an extended partition containing /dev/sda5.

To resize /dev/sda5 you'll have to first shrink the file system on that partition, or you could delete and recreate it if it doesn't contain any data.
 
Old 09-12-2014, 07:37 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,395

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
Quote:
Besides the fact that the numbers don't add up (243 + 465 > 500)
It's 243MB and 465GB which does work. Use the Ubuntu DVD/flash drive to shrink sda5 to create space for additional partitions.
 
Old 09-13-2014, 06:06 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by fuhldrrf View Post
I am trying to create an additional partition on my HDD.
What is the new partition for? That may inform the decision of whether you want the new partition to be primary or logical.

If it is for a Windows install, it needs to be primary and you may be better off just creating the unallocated space and letting the Windows installer create the partition.

Quote:
I would assume I would want to resize this part to create some unallocated space, in order to create a new partition?
To create unallocated space for a logical partition, you might shrink just sda5.

To create unallocated space for a primiary partition, you must shrink either sda1 or sda2 (to shrink sda2, you must first shrink/move sda5).

Quote:
Obviously I can't unmount them either.
You can boot any Linux LiveCD in order to run a partitioning program while sda1 and sda5 are not mounted. The install media you used to install Ubuntu can be used as a liveCD.
 
Old 09-13-2014, 07:24 AM   #5
fuhldrrf
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the replies so far.

I am indeed looking to put Windows on here. I tried using GParted via the Live USB that I used to install Ubuntu but I found the same problem. The parts seemed to be locked and could still only be reduced in size by a mere 48MB.

I then did a bit of googling and some tutorials pointed to using GParted live, i.e. making a bootable USB drive of just GParted, which I did. Same issue, I couldn't resize by more than 48MB!

I am thinking I might just start all over (seeing as I've only really installed firefox and steam so far) and run a bootable Windows USB and format the disk. Then, go for Ubuntu, as most of the online sources recommend going the Windows route first.

Of course, I am open to learning! How can I shrink a partition? Is it the move/resize option in GParted? Because that's what I've been doing
 
Old 09-13-2014, 08:00 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,395

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
If you are planning to have both windows and Ubuntu on the machine, putting windows on first is usually much simpler. You neglected to indicate which windows version you are planning to use. If it is windows 8, you need to do some reading on GPT/EFI partitioning. If you do an EFI install of windows then you must do an EFI install of Ubuntu.

You haven't posted much for details about what you did so this is all guessing. You are right to use GParted from an external medium as the partition you want to resize must be first unmounted and if you were running it from the installed Ubuntu, that could not be done. Did you unmount the partition in GParted before trying to resize it? Without more details, it's hard to guess what might have happened. Your first partition appears to be a separate /boot partition, sda2 is obviously the Extended partition which does not contain any data but holds sda5, the logical partition on which you have Ubuntu.

From reading posts over at the Ubuntu forums, I would suggest that you either avoid using a separate /boot partition or making it at least 1GB. Many users get their machines in an unbootable state by doing every kernel update available and after just a few months, have filled their boot partition with different kernels. Simply deleting additional kernels to make space often just adds to the problem if not done in the recommended way.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Gparted merging unallocated to linux patition bengalman211 Linux - Newbie 10 09-02-2013 06:46 PM
Only Gparted wrongly shows my harddisk space as unallocated Pedy Linux - General 1 07-26-2010 12:28 PM
unallocated partition in gparted sourabh.sinha Linux - Newbie 1 06-27-2010 04:13 PM
Unallocated Space in Gparted? magic8ball88 Linux - Newbie 11 05-22-2010 01:53 AM
Array unallocated space in c Cyhaxor Programming 14 12-02-2009 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 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