Bruce Newland wrote:
> 
> Hi all,
> 
> I am having a problem with my swap file and I believe it is the /etc/fstab
> entry.
> 
> Here is the line of fstab:
> /dev/hda3       swap    swap    defaults        0       0
> 
> Here is what happens when I try to set swap to /dev/hda3:
> [root@pepper /]# swapon /dev/hda3
> swapon: warning: /dev/hda3 has insecure permissions 0660, 0600 suggested
> swapon: /dev/hda3: Invalid argument
> [root@pepper /]#
> 
> I have hunted high and low for more docs on fstab, but to no avail.
> Any Ideas?


Check the permissions on /dev/hda3.  They're probably "brw-rw----".  Use
this:

        chmod 600 /dev/hda3

to change them.

It's rather odd that you're getting a problem with this.  Checking my
swap partition in /dev shows that the permissions are 660 also, but I
haven't seen any errors.

If changing the permissions doesn't work, check the partition type
(fdisk -l /dev/hda) to ensure it's set to Linux swap.  Also, did you run
'mkswap /dev/hda3' before attempting the 'swapon'?


-- 
Steve Philp
[EMAIL PROTECTED]

Reply via email to