Solved

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

Posted on 2010-09-18
9
690 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
digital ocean web console access ? does it use port 22 4 112
Check for Linux process in script 7 88
Time Sync Best Practice 13 74
regular expression help for sed command 5 62
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

734 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