LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 09-12-2011, 06:44 AM   #1
bhavisavla
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?

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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
  


Reply


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 05:06 PM
[SOLVED] Adding Unallocated space to extended partition kdelover Linux - Newbie 9 08-13-2011 12:03 PM
Cannot Create Extended Partition for Ubuntu/Swap-area after OSX/Win7 Dualboot Setup JPsHwayZe Linux - Newbie 15 01-27-2011 08:09 PM
Swap partition...primary or extended|logical? mr.v. Linux - Newbie 1 07-06-2006 04:30 PM
I installed linux and forgot to create a swap space partition Starch Linux - Newbie 5 06-22-2005 09:29 AM


All times are GMT -5. The time now is 06:07 AM.

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