Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had Fed 17 installed, but it was not working well. I installed Ubuntu 12.04, using 'replace existing Linux'. Ubuntu asked me to create a swap, and I clicked after the partition. That left me with the situation you can see in the screenshot. I didn't have time to do anything about it then. Apparently, you can only have 4 partitions, so I have 140GB unallocated. I would like to put Fedora on there now that I have time. It may have improved with time.
How can I best rearrange things? If I have to, I can reinstall Ubuntu, but I'd rather not.
Luckily this is not a big problem.
"you can only have 4 partitions," yes, but that is primary partitions.
What you can do is create an extended partition which acts as a container for lots of partitions (more exactly "logical volumes" but you can treat them as partitions).
So do this:
1. Delete /dev/sda4
2. Use all unallocated space, ~142GB, for extended partition.
3. Create new swap, then all partitions you want as logical volumes.
And finally, check that Ubuntu picks up the new swap, maybe you have to do it manually.
What you can do is create an extended partition which acts as a container for lots of partitions (more exactly "logical volumes" but you can treat them as partitions).
Nope, they are logical partitions within an extended. Logical volumes are are somethings else again, for LVM.
Other than that good advice that should help the OP. Fedora will find the (logical) swap o.k. but may reformat it, which will change its UUID. This will make Ubuntu unbootable, so keep an eye on the Ubuntu fstab before rebooting.
Sorry, but if things go pear shaped on rearranging the partitions and installing Fed, I should:
1) Look in /etc/fstab for the UUID of the swap partition
2) Make sure that is the entry in Ubuntu's /etc/fstab (at the mo this is UUID=779573f9-b046-4017-ae6b-6f550994634c none swap sw 0 0) and if necessary insert the new UUID
Post scriptum: I did the deed, worked fine. Fedora did reformat the swap partition, without informing or asking me. Afterwards it had a different UUID
But Ubuntu didn't falter: it took a bit longer booting, I suppose it noticed that the disk had been altered, and came back ok.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.