Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-12-2011, 05:44 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
Question Possibility to create swap partition if extended partition is out of space?

I have a few questions:

1. Can we create a swap partition if no space is left in the extended partition?

2. How does the kernel priortize and decide about which files to swap? especially to cache or to swap?

Old 09-12-2011, 06:39 AM   #2
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,052

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
You can create a swap partition as long as you have free space AND you have less than four primary partitions.

If not, you can still create an empty sparse file, format it with mkswap and swapon it or add it to your fstab and reboot.

About the policies the kernel follow, it's all in the source code. I didn't ever bothered to check but it surely changes with kernel versions.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a partition for swap from existing partition g4ur4v Linux - Newbie 3 08-16-2011 04:06 PM
[SOLVED] Adding Unallocated space to extended partition kdelover Linux - Newbie 9 08-13-2011 11:03 AM
Cannot Create Extended Partition for Ubuntu/Swap-area after OSX/Win7 Dualboot Setup JPsHwayZe Linux - Newbie 15 01-27-2011 07:09 PM
Swap partition...primary or extended|logical? mr.v. Linux - Newbie 1 07-06-2006 03:30 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 08:29 AM

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration