On 13/11/2020 18:18, Sreyan Chakravarty wrote:


On Fri, Nov 13, 2020 at 12:31 PM Samuel Sieb <sam...@sieb.net 
<mailto:sam...@sieb.net>> wrote:

    What do "ls -lh /fedora.swap", "du -h /fedora.swap", and "blkid
    /fedora.swap" show?


This is the requested data:

$ ls -lh /fedora.swap
-rw-------. 1 root root 8.0G Nov 13 15:36 /fedora.swap

$ du -h /fedora.swap
8.1G    /fedora.swap

$ blkid /fedora.swap
(No Output)

    Didn't you have a similar problem a while ago or was that someone else?


I had the same problem with the 5.7 kernel, and my solution was to use the 5.6 
kernel.

    There was some kernel change that might require you to recreate the swap
    file.


 I have created the swap but they still get the same error.

            Nov 13 15:39:33 localhost.HPNotebook kernel: swapon: swapfile has 
holes

Anything else I can do ?

Looking at https://bbs.archlinux.org/viewtopic.php?id=256614 and the URL's 
contained within
it seems doing a

dd if=/dev/zero of=/fedora.swap bs=1M count=2048 status=progress

may cure the w(hole) issue.  :-)

---
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to