On Mon, Sep 17, 2001 at 06:09:17PM +0530, USM Bish wrote:
> On Sun, Sep 16, 2001 at 09:32:23PM +0000, Nasirudheen K wrote:
> > 
> > After entering the login name and password the system  got hung 
> > up. In the boot message everything was OK except with the 
> > following line
> >      
> > "Activating swap: swap on: /SWAP has insecure permission 0755; 
> > 066 suggested "
> > 
> > Pleaz let me know your analysis of the problem as early as 
> > possible. 
> > 
> 
> Your swap permissions are incorrect. Swap partitions normally
> have a permission of 600,  (at best 660, not  more).  Swap is
> turned on and off by the boot/ shutdown sequence by root. 
> 
> a) Boot from a rescue floppy (not boot floppy). If you do not
>    have a boot floppy tomsrtbt, or alfalinux will do.
> 
> b) Do NOT mount the swap partition of the HDD.
> 
> c) As root do:
> 
>    chmod 600 /dev/hdxN  (where x is a, b etc & N is 1,2 etc)
> 
> d) In your /etc/fstab the entry should have nothing beyond:
> 
>    /dev/hdxN    swap     swap    defaults   1   2
> 
> e) Log out of the emergency boot disk session.
> 
> f) Boot into the system through your hard disk as normal, and
>    this should work, (do not give an access more than 660).  
> 
> Bish.
> 
> 
-- 

Sorry for replying to my own posting. The above is applicable
if the device in your /dev  is not set properly.  Please do a
ls -al /dev/hdxN for your swap partition if it reads as:

"brw-r-----" then there is no errata in your device entry. 

In which case, the swap signature and permissions are not set
correctly. In which case, from your rescue disk do:

mkswap -c -v1 /dev/hdxN

This should set up the parameters correctly. The -c  option is
for device check, and v1 for new type swaps for kernels beyond
2.1.x. man mkswap for other options.

Sorry for the part info given above. MY BAD !

Bish

:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : Multi boot : Installation order                LOST #081

For multiboot machine, the OS install order is "dumbest first"
dos -> Win9x -> Win NT/W2k -> Linux
This will ensure a proper LILO boot. lilo.conf needs amendment
 
####<[EMAIL PROTECTED]>#######################
:



_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to