S
S
Sergey Nizhny Novgorod2016-02-09 04:10:36
CentOS
Sergey Nizhny Novgorod, 2016-02-09 04:10:36

Why is Swap Cento OS 7 not working?

Good afternoon.
I put on a clean Swap server through the command:
sudo fallocate -l 4G /swapfile
An error appears that the machine does not know the command: / swapfile. What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kolu4iy, 2016-02-18
@kolu4iy

This, of course, is not an answer... But why a file and not a partition? A partition is minus the file system overhead...
Well, you can use an alternative: sudo dd if=/dev/zero of=/swapfile bs=1024 count=4194304
PS And what does "does not know the /swapfile command" mean? It's just a filename...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question