I was trying to make a swap partition, but an error message came saying
Primary Partition Not Available I checked the internet and found out there can't be more than 4 partitions because Linux only has room for 4 by default (for some reason). But I can see there's a sda5 in my partition table.
/dev/sda1 229474304 230518783 1044480 510M 27 Hidden NTFS WinRE Free space 230518784 230520831 2048 1M /dev/sda2 230520832 934482553 703961722 335.7G 7 HPFS/NTFS/exFAT /dev/sda3 934483966 976771071 42287106 20.2G 5 Extended └─/dev/sda5 934483968 976771071 42287104 20.2G 83 Linux /dev/sda4 2048 20973567 20971520 10G 83 Linux How is there more than 4 primary partitions? Is sda5 even a primary partition? Why is sda5 looking like a branch of sda3? Please point me towards the right direction.
(I just wanted to make a swap partition, since LFS is recommending, DO I even need a swap partition when I have 8GB RAM?)
sda3on this particular disk is used as a container for an additional partition table elsewhere on the disk, which has enough room for plenty of secondary partitions. All that becomes a non-issue if you use the modern (i.e. not even 30 years old) GPT format instead of MBR.