LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 05: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, 06:39 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:01 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
Open Source Consulting | Domain Registration