Just made swapfile on ext HD but swapon permission errors.

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Just made swapfile on ext HD but swapon permission errors.

Postby yazyazoo » Tue May 14, 2013 8:39 pm

I created a swapfile.img on my external hard drive. When I go to the swapon /media/movies2/swapfile.img I get a error of insecure permissions. It needs 0777 or 0600.

I tried chmod -R 777 /media/movies2/swapfile.img and it made no difference.

I used these commands to make my swap. Are any of them wrong?

dd if=/dev/zero of=media/movies2/swapfile.img bs=1M count=1024
mkswap /media/movies2/swapfile.img
swapon /media/movies2/swapfile.img
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Just made swapfile on ext HD but swapon permission error

Postby hydro » Tue May 14, 2013 9:36 pm

insecure permissions 0777, 0600 suggested means permissions are set to 777, but should be set to 600.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Just made swapfile on ext HD but swapon permission error

Postby moonman » Tue May 14, 2013 11:20 pm

It's a warning, NOT an error. You can still use swap.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Just made swapfile on ext HD but swapon permission error

Postby yazyazoo » Wed May 15, 2013 4:07 am

So when I use that swapon command even though it gives me that output it is working?
yazyazoo
 
Posts: 78
Joined: Fri Sep 07, 2012 5:19 pm

Re: Just made swapfile on ext HD but swapon permission error

Postby hydro » Wed May 15, 2013 5:43 am

Yes, you can check enabled swap using swapon -s oder cat /proc/swaps. Is there any reason why you don't want to set recommended 600 permissions?
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests