Coder Social home page Coder Social logo

sudo rm /var/swap ERROR about raspibolt HOT 5 CLOSED

raspibolt avatar raspibolt commented on June 6, 2024
sudo rm /var/swap ERROR

from raspibolt.

Comments (5)

Argonalyst avatar Argonalyst commented on June 6, 2024

Maybe related to #37. I'm also having some trouble regarding permission when creating the swap.

from raspibolt.

UnholyLizard avatar UnholyLizard commented on June 6, 2024

Well I played with dphys-swapfile a bit and noticed if just change sudo nano /etc/dphys-swapfile with new param CONF_SWAPFILE and do sudo dphys-swapfile setup this new swap may be "added" to the old one that you can't delete. May be reboot will help, but my weird (I think something is wrong there) solution was:
$ sudo nano /etc/dphys-swapfile
Chage CONF_SWAPFILE=/var/swap save, exit
$ sudo dphys-swapfile uninstall
$ sudo nano /etc/dphys-swapfile
Chage CONF_SWAPFILE=/mnt/hdd/swapfile save, exit
$ sudo dphys-swapfile setup
$ sudo dphys-swapfile swapon
Now try $ sudo rm /var/swap If I remember correctly that file was already deleted in my case.

from raspibolt.

Stadicus avatar Stadicus commented on June 6, 2024

I think that the sudo dphys-swapfile swapon command was missing before deleting the old swap file.

Commit 47fa9da

from raspibolt.

 avatar commented on June 6, 2024

Thanks @Stadicus this seems to have worked! Onwards with the guide! :)

from raspibolt.

elkimek avatar elkimek commented on June 6, 2024

Hey, I'm having similar issue but just with another permission.

when I do:

sudo dphys-swapfile swapon

I get:

swapon: /mnt/hdd/swapfile: insecure permissions 0775, 0600 suggested.
swapon: /mnt/hdd/swapfile: read swap header failed

I tried all abovem mentioned incl.

sudo chmod 0600 /mnt/hdd/swapfile

and didn't help.

I didn't have this problem when I was following
Option 1 (recommended): Format hard disk with Ext4

But problem appeared first when I went with opt. 2:
Option 2: Use existing hard disk with NTFS

from raspibolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.