I want to increase my swap size to be able to have the hibernate option. First, I tried to add some swapfile. I followed
https://bogdancornianu.com/change-swap-size-in-ubuntu/
and typed this in my terminal:
sudo dd if=/dev/zero of=swapfile bs=1G count=16
I get:
16+0 records in
16+0 records out
17179869184 bytes (17 GB, 16 GiB) copied, 206.949 s, 83.0 MB/s
then, I followed the instructions:
sudo mkswap /swapfile
But I get this error:
mkswap: cannot open /swapfile: No such file or directory
Then, I decided to resize my swap partition instead of swapfile. So I want to delete them. (I didn't create any before so I assume I can delete them all?) I followed this:
https://askubuntu.com/questions/904628/default-17-04-swap-file-location
I tried:
$ cat /proc/swaps
$ grep swap /etc/fstab
But I get nothing from the first one. Output from the second one is:
total used free shared buff/cache
available
Mem: 11862 3498 1014 138 7349
7907
Swap: 0 0 0
I also tried (after reboot):
swapon -s
and get
Filename Type Size Used Priority
/dev/sdb3 partition 3905532 0 -2
I wonder that did I successfully create swapfiles? How do I delete them if I did?