Can't remove swap file....

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Can't remove swap file....

Postby huntrm » Thu Aug 15, 2013 3:06 am

Have a swapfile at:

/media/usb/swampfile.img

Using following commands, and cannot delete it:

As root:
# swapoff -a

Remove swapfile:
# rm -f swapfile.img

I set it up without setting the proper read only permissions up front. When I attempt to start the swap up with the command:
#swapon /media/usb/swapfile.img
swapon: /media/usb/swapfile.img: insecure permissions 0644, 0600 suggested.
swapon: /media/usb/swapfile.img: read swap header failed: Input/output error

Any ideas on how to delete it?

Thanks.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm

Re: Can't remove swap file....

Postby WarheadsSE » Thu Aug 15, 2013 5:32 pm

1) actual errors in removing it might help
2) just chmod the damned file like suggested.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't remove swap file....

Postby huntrm » Thu Aug 15, 2013 5:48 pm

Yeah, chmod isn't 'taking - believe me, I tried multiple ways to force it. I was in midst of a reinstall with arch, so just restarted the process begrudgingly.
huntrm
 
Posts: 32
Joined: Wed Aug 29, 2012 2:45 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 6 guests