Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    43

    How to clear swap?


    Hello,

    I closed all the applications that ate the RAM and swap still apear to be around 200MB.
    Is there a way to clear the swap file?

    Probably it doesn't matter but the system is running SuSE 10.

    Many thanks

  2. #2
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    I don't think you want to clear your swap file. If you do, though, let us know what happens (but I know it won't be good.)
    /IMHO
    //got nothin'
    ///this use to look better

  3. #3
    Just Joined!
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    43
    Anyone with an answer if there is a way to clear the swap?

    drakebasher, I cannot see the point of your post. You didn't answer any of my questions.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    Quote Originally Posted by asmar
    Anyone with an answer if there is a way to clear the swap?

    drakebasher, I cannot see the point of your post. You didn't answer any of my questions.
    I would think that re-formatting the swap space would clear it as well as possible. Try 'mkswap /dev/hdxx'. You may need to unmount it first. Try 'umount /dev/hdxx'. If it complains, do 'umount -l /dev/hdxx' and if it still doesn't work, do 'umount -f /dev/hdxx'

    I look forward to hearing of your success.
    /IMHO
    //got nothin'
    ///this use to look better

  6. #5
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    instead of unmount do

    swapoff /dev/hdxx
    Operating System: GNU Emacs

  7. #6
    Just Joined!
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    43
    Quote Originally Posted by genesus
    instead of unmount do

    swapoff /dev/hdxx
    Thanks a lot genesus, that worked great. No problems at all.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •