Solved

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

Posted on 2010-09-18
9
685 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
  • 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 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