LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 11-02-2003, 05:55 AM   #1
JIV
Member
 
Registered: Feb 2003
Location: India
Distribution: RedHat 9.0
Posts: 90

Rep: Reputation: 15
Swap space


I have installed Windows XP and Redhat Linux on my system. I alloted a whopping 1 GB as swap space for the Linux OS. But I found out that the Linux OS is using a max 200-300 MB of the swap space.

Is there any method or software thru which I can allow the Windows OS to use the same 1 GB as its swap space... so that the swap space is shared betwwn the two OSes?

Thank you....
 
Old 11-02-2003, 06:44 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Much to my surprise, it seems like it is possible...

http://www.tldp.org/HOWTO/Swap-Space.html
 
Old 11-11-2003, 08:16 AM   #3
JIV
Member
 
Registered: Feb 2003
Location: India
Distribution: RedHat 9.0
Posts: 90

Original Poster
Rep: Reputation: 15
Hey,
What if the swap partition is FAT32? I also have the similar problem... IS it true that Linux doesnt use more than 128 MB as swap space?
 
Old 11-11-2003, 10:32 AM   #4
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The swap space used depends on the ram you have. You have a lot of ram, so may not need much swap. It also depends on whether you use stuff that will take up alot of ram. You probably won't be able to use regular Linux swap partitions for sharing between the two os's, so the partition will probably have to be FAT32.
 
Old 11-11-2003, 08:14 PM   #5
CuteBug
LQ Newbie
 
Registered: Apr 2003
Posts: 20

Rep: Reputation: 0
But how wud I make a FAT32 partition shareable between the two OSes?
 
Old 11-12-2003, 07:02 AM   #6
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Make a FAT32 partition, and prepare it in Windows for swap. Linux can read/write to FAT32, so that isn't a problem for Linux. Prepare the partition for swap by formatting it in Windows and telling it to put the swap file there. Then look at this for how to use this file in Linux:
http://www.slackware.com/faq/do_faq.php?faq=distro#11
 
Old 11-12-2003, 10:37 AM   #7
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
Quote:
Originally posted by JIV
IS it true that Linux doesnt use more than 128 MB as swap space?
Not anymore. That used to be the maximum with 2.0 kernels. Nowadays the kernel can handle up to 2GB swap partitions (and you can assign up to 32 separate swap partitions). In practice Linux usually doesn't need that much. If you have 256MB or more RAM you would have enough using 256MB swap for most uses. Read man mkswap for more information.
 
Old 11-13-2003, 08:52 AM   #8
CuteBug
LQ Newbie
 
Registered: Apr 2003
Posts: 20

Rep: Reputation: 0
Thanx aaa but I dont know what UMSDOS is... I have a system WinXP Pro and RedHat Linux 9. How shud I go on abt it?
 
Old 11-13-2003, 10:07 AM   #9
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
UMSDOS is the msdos (FAT16) filesystem expanded for Linux support. The instructions are for using the Windows swap file in the windows folder. I'm suggesting that you create a FAT filesystem, tell Windows to create a permanent swapfile on it, then let Linux use that file too. You 'format' the file for swap & use it, and you need a script to do this automatically. The same commands used in Slack should work in RH, it's where you put them that's different. Take a look at the previously mentioned howto ( http://www.tldp.org/HOWTO/Swap-Space-6.html#ss6.4 ) for info on how to get RH to do the needed stuff on startup.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space alphisb0t Linux - Software 1 07-05-2004 03:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
swap space not being used bishal Linux - Software 16 05-07-2004 12:28 AM
Swap Space bawbag Slackware 6 07-16-2003 10:59 PM


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

Main Menu
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