View Single Post
Old 19-05-2006, 11:48 PM   #1 (permalink)
infra_red_dude
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
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