IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

Linux Swap Space Mini-HOWTO

Search Howtos :Match :
Next Previous Contents

8. What are we exactly doing ?

  • Both Windows and Linux use swap space. When an OS is shut down, the contents of the swap space are just garbage, the OS doesn't bother about what is in it. Now what is the point in devoting a 60MB partition for swap space to Linux and about 32MB of disk space separately to Windows when only one of them is going to run at a time (It is possible to run both Linux and Windows at the same time, thanks to VMWare. For more information, see VMWare website). So we want Linux and Windows to share the same hard disk space as swap space.

  • The problem is that Linux uses a partition as a swap space and Windows uses a file as a swap space. ( Although it is possible to create a swap file for Linux, it is not recommended. See "Linux Installation and Getting Started" by Matt Welsh). Now if Linux uses the same partition on which Windows stores it's swap file, it will overwrite the boot sector, FAT and other data tables that Windows assumes to exist on every drive. Thus, Windows will not be in a position to find the swap file on startup and will create the win386.swp file in the windows directory. Thus, even if by chance, your Linux crashes, Windows will be in a position to start. In such a case ( with Windows swap file in the Windows directory), just restore the DOS/Windows swap info by restarting Linux and the start Windows. Now Windows will be using the swap file on drive X: so you can safely delete the win386.swp file in the windows directory.

  • The remedy is to store those critical data tables once on the Linux partition in some file. Then every time Linux starts, check whether the swap space was last used by Linux or Windows (using the label you gave to your partition). If it was Linux, just enable swapping else first make a swap partition on the X: drive using "mkswap /dev/winswap" and then enable swapping.

  • When you shut down Linux, it is important to restore the swap partition to the DOS format, so that Windows can start properly. For that purpose we add the

     
    /bin/zcat /etc/winswap.gz > /dev/winswap 
    

    command to the halt file.


Next Previous Contents
Search Howtos :Match :
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
JEdit 4.3pre16
Programmers text editor
Gdm 2.24.1
Reimplementation of the well known xdm program.
Damn Small Linux 4.4.10
Damn Small Linux, 50MB bootable Linux desktop LiveCD
PhpMyAdmin 3.1.0 rc1
Php front-end to MySQL administration
ImageMagick 6.4.5.8
ImageMagick image processing studio
SystemRescueCd 1.1.2
Bootable CDRom with Linux and all the important system utilities
Linux Kernel 2.6 2.6.28-rc5
Linux Kernel
LimeWire 4.18.8
Gnutella Client
Trac 0.11.2.1
Integrates SCM, Wiki and Issue Tracker
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info