Re: swapoff weird

From: Rik van Riel (riel@conectiva.com.br)
Date: Sat Dec 09 2000 - 16:41:54 EST


On Sat, 9 Dec 2000, Pavel Machek wrote:

> It is possible to remove swapfile in use. Great, but how do you
> swap off then? Who is to blame?

As usual, root is to blame ;)

> root@bug:~# swapoff /tmp/swap
> swapoff: /tmp/swap: No such file or directory
> root@bug:~# > /tmp/swap
> root@bug:~# swapoff /tmp/swap
> swapoff: /tmp/swap: Invalid argument
> root@bug:~#

Don't let your automatic /tmp cleaners remove the swap
file ;)

> How do I get out of this bad situation?

Reboot.

cheers,

Rik

--
Hollywood goes for world dumbination,
	Trailer at 11.

http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com.br/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:18 EST