xfs
[Top] [All Lists]

Re: swap file

To: Andrew Ho <andrewho@xxxxxxx>
Subject: Re: swap file
From: Andi Kleen <ak@xxxxxxx>
Date: Mon, 25 Dec 2000 03:54:45 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3A46AC5A.F876D7@xxxxxxx>; from andrewho@xxxxxxx on Sun, Dec 24, 2000 at 09:09:30PM -0500
References: <3A46AC5A.F876D7@xxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Sun, Dec 24, 2000 at 09:09:30PM -0500, Andrew Ho wrote:
> Merry Christmas
> 
> I create a swap file with xfs_mkfile.
> 
>      xfs_mkfile -v 500m /swap/swap1
> 
>     "/swap/swap1          swap        swap    defaults      0 0" is in
> /etc/fstab.
> 
> I try to mount the swap file.
> 
>     /sbin/swapon -a /swap/swap1
>     swapon: /swap/swap1: Invalid argument
> 
> How can I solve this problem.

You have to use mkswap on the file first.

-Andi

<Prev in Thread] Current Thread [Next in Thread>
  • swap file, Andrew Ho
    • Re: swap file, Andi Kleen <=