From: Erik Mouw <erik@harddisk-recovery.com>
To: Jacky Malcles <Jacky.Malcles@bull.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: can't cleanup /proc/swaps without rebooting ?
Date: Thu, 11 Jan 2007 16:15:08 +0100 [thread overview]
Message-ID: <20070111151508.GR13675@harddisk-recovery.com> (raw)
In-Reply-To: <45A650D2.90901@bull.net>
On Thu, Jan 11, 2007 at 03:59:30PM +0100, Jacky Malcles wrote:
> is there a way, other than rebooting, to clean up /proc/swaps ?
>
> I'm in this situation (due to testing errors),
> # cat /proc/swaps
> Filename Type Size Used
> Priority
> /dev/sdc1 partition 2040064 0 -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file 48960 0 -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file 49088 0 -118
> #
> # swapon -s
> Filename Type Size Used
> Priority
> /dev/sdc1 partition 2040064 0 -1
> /tmp/swaH4mvTI/swapfilenext\040(deleted) file 48960 0 -31
> /tmp/swa5TlBva/swapfilenext\040(deleted) file 49088 0 -118
> #
"swapoff /dev/sdc1" or "swapoff /tmp/swa5TlBva/swapfilenext". Don't
know if the latter works when the file is unlinked, just try.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
next prev parent reply other threads:[~2007-01-11 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 14:59 can't cleanup /proc/swaps without rebooting ? Jacky Malcles
2007-01-11 15:15 ` Erik Mouw [this message]
2007-01-11 16:09 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070111151508.GR13675@harddisk-recovery.com \
--to=erik@harddisk-recovery.com \
--cc=Jacky.Malcles@bull.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.