Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1308  / 3 Years ago, wed, august 11, 2021, 3:16:45

I have a single 160 GB physical hard drive. I have Windows 8.1 installed on 100 GB (Local Disk C:). I left the remaining 60 GB as unallocated space for Ubuntu installation.



Now, the problem is that when I have to assign Root, Home, Swap space on that unallocated 60 GB, I can only assign Root and Home. The remaining 20 GB is shown as unknown space.
It says there can only be maximum of 4 partitions on a single drive and I have used all of them (Windows has apparently used up 2 partitions).



So, what should I do? Should I forgo the Swap space or is there any other way to get around this problem?



Please explain in layman terms if you can.



P.S : I don't want to remove Windows 8.1 from my computer but I want to dual-boot Ubuntu alongside Windows.


More From » dual-boot

 Answers
5

One of those max. 4 primary partitions can be an extended partition which in turn can hold up to 16 logical partitions. So in total you can create up to 19 usable partitions on a drive with an MBR partition table.



If you choose “something else“ as installation type, the partition manager of the Ubuntu installer lets you choose between creating primary or logical partitions:



partition creation dialogue



The partition manager will automatically create an extended partition if necessary to accommodate a newly created logical partition. It hides the complexity of dealing with this technical detail.



You should not forgo swap space:




  • If your computer runs out of physical main memory and has no swap space to fall back on, it will




    • start to kill user space processes¹ (and it's hard to predict which ones) to accommodate memory needs of the kernel and

    • behave erratically, because memory allocation for user space processes¹ will fail, which most applications aren't programmed to anticipate; this usually leads to crashes because these applications then try to access invalid memory addresses.


  • While it's possible to have a swap file inside a file system, suspension to a swap file isn't implemented in the kernel. You pretty much need a swap partition for that.


  • As I described above it's easy enough to create a swap partition if you can have up to 19 partitions on one drive – a big deal easier than dealing with the aforementioned two problems.




See also https://help.ubuntu.com/community/DualBoot/Partitions



¹ A “user space process“ is what a layman may call an “application”, but the former also encompass other things like server applications and system services.


[#22679] Friday, August 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anoalk

Total Points: 271
Total Questions: 90
Total Answers: 112

Location: Zambia
Member since Wed, Dec 16, 2020
3 Years ago
anoalk questions
Wed, Mar 15, 23, 04:06, 1 Year ago
Fri, Sep 24, 21, 02:59, 3 Years ago
Sat, Mar 5, 22, 02:33, 2 Years ago
Tue, Mar 22, 22, 07:19, 2 Years ago
;