Skip to content
Advertisement

mkswap fails to create a file

I was attempting to create a swap file:

JavaScript

I get “/var/swap No such file or directory”

Am I supposed to create the file first? The documentation I found does not say that, so I am concerned.

Advertisement

Answer

Yes, you’ll need to create the file first. dd is the standard choice:

JavaScript

this’d create a 128meg swap file.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement