Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 13-09-2005, 02:44 PM   #1 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default share swap file between linux and windows


i searched for this topic on this forum. but i couldnt find it anywhere. we haf a separate swap partition in linux. my question is whether the same swap partition can be shared wid windows? i mean the windows and linux swap file on the same partition? i'd read about this somewhere i dun remember the link. and ppl were successful in doing that...any linux gurus here can help??????
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is online now  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-09-2005, 04:10 PM   #2 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Although the same swap file cannot be shared by linux and windows, I think it should be easy enough to have the linux swap file on the same partition as the windows one. However, follow these instructions at your own risk.

Make sure that your windows partition is set to auto-mount at start up (check the FC3 FAQ for details), and then create a swap file in the partition (I assume the partition is mounted at /mnt/win/c)

dd if=/dev/zero of=/mnt/win/c/swap_linux bs=1024 count=16000

This will create a file with null data of size about 16MB. Now use mkswap to make this a swap file -

mkswap /mnt/win/c/swap_linux

And now, add a line at the end of the file /etc/rc.d/rc.local

Code:
swapon /mnt/win/c/swap_linux
This automatically uses the file for swap space, every time the system starts. I added the line to rc.local to make sure that it is executed after the windows partitions are mounted.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 13-09-2005, 06:07 PM   #3 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default

I thought windows has a different way of virtual memory not a swap partition.
vignesh is offline  
Old 15-09-2005, 07:50 PM   #4 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default

ok i installed fedora core 4 a couple of days ago and created a separated linux swap partition of about 520mb. now how do i implement this thing? i understand that i haf to format the partition as a fat32 one. how do i go about doing that?
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is online now  
Old 16-09-2005, 09:48 PM   #5 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

You dont need to convert the partition to FAT32, if you already have a FAT partition accessible by windows. Just ensure that this partition is auto mounted by linux at boot, and follow the steps I mentioned earlier.

Do remember that this will not share a swap partition between the OS's, but rather create a swap file on the same partition.

vignesh, linux can use either a swap partition or a file, in this case we are using a file.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 20-09-2005, 05:08 PM   #6 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default

yeah thats wot i wanted. i can save about half a GB space by sharing the swap partition. i'll do as u said there and get back to u if need be. thanks!
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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


 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 02:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2