Trying to enable hibernation on my laptop.
- There is only one single partition
- Swap memory seems to be much lower than the actual need based on RAM.
- Failed to increase swap space.
- ubuntu release 18.04.
What is the way out?
Some queries thatcan help you guys to help me.
$ free -h total used free shared buff/cache available Mem: 15G 2.2G 11G 339M 2.0G 12G Swap: 2.0G 0B 2.0G
The next was
$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 1.8M 1.6G 1% /run /dev/sda1 234G 19G 204G 9% / tmpfs 7.8G 17M 7.8G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/loop0 141M 141M 0 100% /snap/gnome-3-26-1604/59 /dev/loop1 22M 22M 0 100% /snap/gnome-logs/31 /dev/loop2 13M 13M 0 100% /snap/gnome-characters/96 /dev/loop3 1.7M 1.7M 0 100% /snap/gnome-calculator/154 /dev/loop4 87M 87M 0 100% /snap/core/4650 /dev/loop6 21M 21M 0 100% /snap/gnome-logs/25 /dev/loop5 2.4M 2.4M 0 100% /snap/gnome-calculator/167 /dev/loop8 198M 198M 0 100% /snap/polarr/3 /dev/loop7 3.8M 3.8M 0 100% /snap/gnome-system-monitor/41 /dev/loop9 13M 13M 0 100% /snap/gnome-characters/86 /dev/loop10 13M 13M 0 100% /snap/gnome-characters/69 /dev/loop11 140M 140M 0 100% /snap/gnome-3-26-1604/64 /dev/loop12 79M 79M 0 100% /snap/vscode/37 /dev/loop14 15M 15M 0 100% /snap/gnome-logs/34 /dev/loop13 87M 87M 0 100% /snap/core/4486 /dev/loop15 3.4M 3.4M 0 100% /snap/gnome-system-monitor/36 /dev/loop16 2.4M 2.4M 0 100% /snap/gnome-calculator/170 /dev/loop17 3.8M 3.8M 0 100% /snap/gnome-system-monitor/39 tmpfs 1.6G 32K 1.6G 1% /run/user/1000
Now when I run
sudo fallocate -l 1G /swapfile
It given the error like so:
fallocate: fallocate failed: Text file busy
I was able to remove this by adding the command sudo swap-off
now a little more google search has led me to the following issues. 1) I tried to hibernate but the computer goes off and restarts immmediately without shutting down. Its like the monitor blinks off and beeps and comes back to life. 2) I read that SSD drive should not be used for Swap memory. It lowers the life of SSD drives.