I am dual booting my system with Ubuntu 12.04 and Windows 7. I have created the special swap partition for Ubuntu while installing (as recommended).
Can Windows use this swap area/partition--as its own swap/page file--when I boot from Windows?
I am dual booting my system with Ubuntu 12.04 and Windows 7. I have created the special swap partition for Ubuntu while installing (as recommended).
Can Windows use this swap area/partition--as its own swap/page file--when I boot from Windows?
Note: This is a what-if answer and is not recommended, especially if you are using hibernate from Ubuntu!
In theory, yes, Windows should be able to use your swap partition for its page (swap) file with some clever scripting on the Linux side.
I'm not going to do a step-by-step because I haven't tried it and if you can't figure out how to implement this you shouldn't be trying it either :)
Format the partition as NTFS from within Windows and set up Windows to use that drive exclusively for its swap file (nothing on C:)
Have a startup/upstart script to format the partition as Linux swap on Ubuntu startup and enable swap (swapon
).
Have a shutdown script to swapoff and reformat the partition as ntfs.
Alternative (still not recommended) option:
You can create a swap file by following this guide on the NTFS partition, provided the NTFS partition is large enough for both swap files.
However this alternative is not recommended because: