What is better: to configure linux-swap partition as Primary or Extended?
Please let me know the reason behind your answer.
Question on linux-swap
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Question on linux-swap
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Question on linux-swap
It makes no difference in terms of performance.
Remember you can only have 4 primary or extended partitions, if you are concerned about adding more operating systems, or needing more partitions for whatever use, you could create an extended partition, with your separate logical partitions inside for Linux, SWAP, /home, etc. You typically wouldn't create an extended partition for just SWAP as it defeats the purpose.
For example, you could have Windows on a primary partition (1), Linux system, /home/ and SWAP on an extended partition (2). Now you still have the option of creating 2 more independent partitions. If you had all primary partitions, then you would have Windows (1), Linux [/] (2), /home (3), and SWAP (4) - now you cannot create anymore partitions.
Hopefully that made some sense
Remember you can only have 4 primary or extended partitions, if you are concerned about adding more operating systems, or needing more partitions for whatever use, you could create an extended partition, with your separate logical partitions inside for Linux, SWAP, /home, etc. You typically wouldn't create an extended partition for just SWAP as it defeats the purpose.
For example, you could have Windows on a primary partition (1), Linux system, /home/ and SWAP on an extended partition (2). Now you still have the option of creating 2 more independent partitions. If you had all primary partitions, then you would have Windows (1), Linux [/] (2), /home (3), and SWAP (4) - now you cannot create anymore partitions.
Hopefully that made some sense
Re: Question on linux-swap
If you think you will need more than 4 partitions, including the swap partition, then put it on an extended partition. Otherwise it's not worth the trouble. If the installer uses an extended partition, then don't worry about it. It's really not that important.
Re: Question on linux-swap [SOLVED]
Thanks for all answers.
It's clear for me that I will create a primary linux-swap partition at the beginning of the drive.
On that drive I will only have Linux on ext4, all the other OS (if needed for testing) can go inside a virtual machine, no need to create that many partitions.
It's clear for me that I will create a primary linux-swap partition at the beginning of the drive.
On that drive I will only have Linux on ext4, all the other OS (if needed for testing) can go inside a virtual machine, no need to create that many partitions.
Re: Question on linux-swap
If I set up a dual boot having Windows pre-installed , I always create an Extended, and make logical partitions for ALL my Linux. This way it does NOT matter what order you have the Swap , Home , and Root partitions.
https://dl.dropbox.com/u/6501752/gparted.jpeg
https://dl.dropbox.com/u/6501752/gparted.jpeg