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 (1) Thread Tools Display Modes
Old 19-05-2006, 11:48 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default howto: swap file sharing in windows and linux

a small that tells u howto share swap file between linux and windows. this is something i found out after researching the net for many many dayz. finally i found out that it was a piece of cake while i was getting confused over wot was given in various sites!

1) let windows swapfile reside on a separate partition wid fat32 file system and let it be of a fixed size preferably.
2) boot into linux and ensure that the partition is automounted at boot. note down the partition number.
3) create a suitable mount point for it say, /mnt/swap
4) issue the command: mkswap /mnt/swap/pagefile.sys (assuming pagefile.sys is the windows' swap file)
5) then issue the command: swapon /mnt/swap/pagefile.sys
6) there u haf it, a system that shares the swap file between linux and windows!

u might want to add the last two lines as a startup script. put the scrip in the init.d folder and make sure that the partition is mounted before the script is executed!

i was going crazy looking at complicated steps given at various sources...but somehow i figured out this method...which is something which even a n00b can perform!

cheers!
__________________
"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 offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 20-05-2006, 02:01 PM   #2 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: howto: swap file sharing in windows and linux

Nice tip.....

I don`t think its a good practise to have a swap file on a mounted partition..Have it on /tmp or something..
vignesh is offline  
Old 21-05-2006, 12:24 AM   #3 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: howto: swap file sharing in windows and linux

how do we do it for /tmp? i mean how can windows share the partition then? how do we do that? create a hard link?
__________________
"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 offline  
Old 21-05-2006, 09:26 AM   #4 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: howto: swap file sharing in windows and linux

No windows can`t share the swap file..
vignesh is offline  
Old 21-05-2006, 11:40 PM   #5 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: howto: swap file sharing in windows and linux

ok! but my intention was to share swap file b/w linux and windows to save that half a gb of space...

anyways i did find out other things on the net..but they were like too messy...i find this method quite viable!
__________________
"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 offline  
Old 22-05-2006, 03:46 PM   #6 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: howto: swap file sharing in windows and linux

Thats fine... Nice tip though.If you have time paste those findings here...
vignesh is offline  
Old 22-05-2006, 08:10 PM   #7 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: howto: swap file sharing in windows and linux

these are some of those:

http://tldp.org/HOWTO/Swap-Space-6.html
http://www.ibiblio.org/pub/linux/doc...Swap-space-FAQ
http://www.ibiblio.org/pub/Linux/doc...ned/Swap-Space
__________________
"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 offline  
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


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/open-source/28574-howto-swap-file-sharing-windows-linux.html
Posted By For Type Date
The 'Your swap should not be three times your RAM' thread. - Page 4 - Ubuntu Forums This thread Refback 23-07-2010 08:10 AM


All times are GMT +5.5. The time now is 01:18 AM.


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

Search Engine Optimization by vBSEO 3.3.2