Solved

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

Posted on 2010-09-18
9
686 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 73
Can't ping New Linux Servers 40 90
bash file 10 51
Internal CA server 6 51
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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

820 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