Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Created a partition when installing Fedora. How to create an Extended Partition now?

Posted on 2010-09-18
9
Medium Priority
?
695 Views
Last Modified: 2013-12-16
Created a partition when installing Fedora. How to create an Extended Partition now?

It doesn't list the unallocated space now that is being shown in the Gparted.

[radix@localhost ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              49G  6.5G   40G  15% /
tmpfs                 1.9G  2.1M  1.9G   1% /dev/shm
/dev/sda2             116G  2.0G  108G   2% /home
/dev/sda3              49G  229M   46G   1% /tmp
[radix@localhost ~]$

It looks like I need to create an extended partition to install another Linux distro. Please suggest.

Screenshot--dev-sda--GParted.png
0
Comment
Question by:srikanthrad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 35

Expert Comment

by:torimar
ID: 33707327
You cannot create any more partitions as it is.
There may only be 4 primary partitions, and the extended partition to hold logical drives is a primary too.

So what you will have to do:
- delete Swap
- create an extended partition from all the unallocated space
- inside the extended, recreate a Swap (formatted 'swap')
- also create as many logical partitions as desired

I recommend to use a bootable CD with GParted on it for the purpose. Parted Magic ( www.partedmagic.com ) is ideal.
0
 
LVL 35

Expert Comment

by:torimar
ID: 33707346
ps:

There is a slight chance that there may be a problem with Fedora no longer finding the swap space on sda4 as expected.
If the problem happens during bootup, check the "kernel" line in the Grub bootmanager and edit it (type 'e' while in the boot menu) if it should be pointing sda4 like with "swap=/dev/sda4" or "resume=/dev/sda4". The new swap partition will be sda5, if you create it at the beginning of the extended.
0
 

Author Comment

by:srikanthrad
ID: 33708058
I did the following for turning on swap.

[root@localhost ~]# blkid
/dev/sda1: UUID="ad108272-b7d1-45c9-bc09-e239c9b66ae5" TYPE="ext4"
/dev/sda2: UUID="9ce86906-bc13-43d6-ab82-ff05f3da90cf" TYPE="ext4"
/dev/sda3: UUID="b7cff5bc-4215-4b0a-98b7-3226e26d033a" TYPE="ext4"
/dev/sda5: LABEL="swap" UUID="4b203a3f-ceb2-4d9b-89cb-d23fc684e399" TYPE="swap"
/dev/sda6: LABEL="logical_extended" UUID="368d3024-139c-4392-a8f3-cf6641d0f851" TYPE="ext4"
/dev/sda7: LABEL="logical_extended" UUID="e564d889-7433-427b-8062-3cc24a45314c" TYPE="ext4"
/dev/sda8: LABEL="logical_extended" UUID="2943e3c5-a611-439b-8e26-b098b4867301" TYPE="ext2"
/dev/sda9: LABEL="logical_extended" UUID="494a8abd-d785-48ef-8617-42b5ba73fd7a" TYPE="ext4"
[root@localhost ~]# swapon -s
Filename                        Type            Size      Used      Priority
[root@localhost ~]# man swapon
[root@localhost ~]# swapon -U 4b203a3f-ceb2-4d9b-89cb-d23fc684e399
[root@localhost ~]# swapon -s
Filename                        Type            Size      Used      Priority
/dev/sda5                               partition      6143992      0      -1

I also edited the /etc/fstab for swap, because the UUID listed there was wrong.

Thanks for helping me out.

But, why in the world does swap has to be on extended partition or else we are doomed and can't use the remaining disk space? Please explain.
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 

Author Comment

by:srikanthrad
ID: 33708062
And also, Partition Magic looks like an operating system. Thanks for the link. Is it an OS?
0
 
LVL 35

Expert Comment

by:torimar
ID: 33708141
Parted Magic is a live maintenance CD, running on its own rudimentary Linux OS.

Glad to see you got it all going.
It was a good idea to check the UUIDs, because that is, by my experience, the main cause for problems with Grub. If ever possible, I try to use device notation (/dev/sdXX) instead of UUIDs, but that is because I tend to change my partition setup at times.

>> "But, why in the world does swap has to be on extended partition or else we are doomed and can't use the remaining disk space? Please explain."

I fear you misunderstood. This has got nothing to do with swap, it simply happened to be the 4th primary partition on your setup. Since only 4 are possible, and the extended is a primary as well, swap needed to be deleted in order to make space for an extended primary.

0
 
LVL 35

Accepted Solution

by:
torimar earned 2000 total points
ID: 33708159
Maybe I was not being clear enough:

You already had 4 primary partitions. That's the absolute limit. When 4 primaries are found, you cannot create any more partitions, so in your case the unallocated space was wasted and unusable.
Once you create an extended partition (which counts as primary) you will be able to create as many logical partitions inside it as you please and your OS supports - I remember that several current Linux distros have an overall total limit of 16 or 17 partitions, but I honestly cannot remember why that was; in earlier versions there was no limit
0
 
LVL 35

Expert Comment

by:torimar
ID: 33708225
Thanks, but why did you request a closure of this thread instead of closing it yourself?

Here should be help on how to do it: http://www.experts-exchange.com/help.jsp

The way you did it will require that a moderator comes by in 4 days to close the question for you, whereas the usual method would be to close it yourself right now. If you want to try again, just click the "Object" button: this will cancel your closing request, and give you the chance to close the question anew.
0
 

Author Closing Comment

by:srikanthrad
ID: 33708617
I am really sorry, i thought i hit accept solution. Please respond to my questions next time..... i am really sorry.. human error.
0
 
LVL 35

Expert Comment

by:torimar
ID: 33708642
No problem at all. Thanks for closing.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question