LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-16-2006, 09:05 PM   #1
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Unpartitioned Free Space


Hi,
I have a 200GB SATA harddrive, and the following is my partition table, from fdisk:
Code:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2432    19535008+  83  Linux
/dev/sda2           14591       14894     2441880    5  Extended
/dev/sda3            2433       14590    97659135   83  Linux
/dev/sda4           14895       17444    20482875   83  Linux
/dev/sda5           14591       14772     1461883+  82  Linux swap / Solaris
/dev/sda6           14773       14894      979933+  83  Linux

Partition table entries are not in disk order
sda1 is a 20GB partition for Kubuntu, sda4 is a 20GB partition for Fedora and sda3 is a data partition, all in ext3.

My intention when I installed these was to leave some free space on the disk, so that I can try out different distros from time to time without overwriting previously installed ones. In theory, this should work (and it did when I installed Fedora after installing Kubuntu - I simply partitioned some of the 80GB of free space for Fedora's /)

I want to create a 20GB partition for Slackware 10.2, however it says there is no free space. This is odd, because my calculatons based on the above are that I have about 60GB of free space. Why am I unable to allocate this free space?

Thanks in advance
--Ian
 
Old 04-16-2006, 09:09 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Even though you have unallocated space you can not create additional partitions because:
1. You have 4 primary partitions and can not create anymore.
2. No free space exists in the extended partiton.

Resize the extended partition to include the rest of the unallocated space and then you will be able to create additional logical partitions.
 
Old 04-16-2006, 09:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No I wouldn't do that. The unallocated space is beyond sda4 (a primary).
Attempting to simply resize the extended will overlap sda4 - that could (would) get severely ugly.

For a quick work-around, try using cfdisk to allocate a logical. I'm pretty sure I've used it in the past to allocate dis-contiguous logicals. I suspect it builds "indirect" partition table entries, but I didn't actually go look at the time, and I don't have such a configuration anywhere at present that I can check.
 
Old 04-17-2006, 04:37 AM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Original Poster
Rep: Reputation: 62
Thanks Guys. I should have known about the 4 primary partitions

What I ended up doing is using cfdisk to shuffle around my partitions, so instead of getting 60GB of unusable space, I now have only 1GB which I can afford to lose to save reinstalling everything to get a better partition layout.

Thanks Again
--Ian
 
  


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
Is it ok to leave space unpartitioned? Penguin of Wonder Linux - General 2 03-22-2006 08:30 PM
Using unpartitioned space ChriZathens Linux - General 4 11-25-2005 05:38 AM
Do i have unpartitioned space? p0rt Linux - General 5 08-17-2004 05:00 PM
My /home partition shows up as unpartitioned space! purplecow Linux - Hardware 2 07-06-2004 05:20 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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