Solved

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

Posted on 2010-09-18
9
683 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
 

Author Comment

by:srikanthrad
ID: 33708062
And also, Partition Magic looks like an operating system. Thanks for the link. Is it an OS?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now