28.03.2024, 14:34 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Installing a Swapfile (standard)


boot into textmode with "2 noswap"
After this, type the following into a console (in this example we have free space on hda5?)
# mount /dev/hda5 /mnt/hda5
# dd if=/dev/zero of=/mnt/hda5/knoppix.swp bs=1M count=256
# mkswap /mnt/hda5/knoppix.swp
# swapon /mnt/hda5/knoppix.swp
You only have to do this once, after that existing swapfiles will be detected automatically.

Re-use existing (Windows) Swapfiles

Some of you might use a permanent swapfile in Windows (win386?.swp). This can be easily used as a swapsfile for any kind of knoppix-derivates. Why waste space unnecessarily? Windows will work fine after the next reboot.

You can achieve this in a terminal session perhaps when the xsession has exited because of not enough RAM (e.g., 64MB), then restart it.

# mount /dev/hda1
# mkswap /mnt/hda1/win386.swp
# echo >>/etc/fstab "#add new swapfiles"
# echo >>/etc/fstab "/mnt/hda1/win386.swp swap swap noauto 0 0"
# swapon -a   


Check swaps

To check if there is any or enough swapspace you can do the following:
# cat /proc/swaps


:de: SwapFile
XML Revisions of $tag
Seiten-History :: Letzter Editor : Richard :: Eigentümer : EumeL ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.