[CentOS] CENTOS4.2 swapon -s result ?

Mon Dec 5 17:47:24 UTC 2005
Alex White <ethericalzen at gmail.com>

Castello, Jean-pierre (TS/Linux-HPC) wrote:
> Hello
> 
> It is my first question here and I would like to thanks all of you to
> keep alive this stream
> and to give answers (I regulary read). Thanks for the good job. 
> After installing CENTOS4.2 and "play with" I type the command swapon -s
> to verify everythings
> is ok but the command does nor return info as it should do.
> Is it something known ?
> Thanks
> 
> Jean-Pierre Castello
> HP France
> mobile : + 33 (0) 6 72 99 37 40 
> E-MAIL : Jean-Pierre.Castello at hp.com 

Jean-Pierre,

I don't have an answer per se, but this command does work for me as
root. Are you attempting to do this as root or by using sudo? I am
running Centos4 U2 as well.

If you are doing this with sudo you will need to specify the entire
path to get swapon to run /sbin/swapon -s

If you are doing this as root, do you get an error of some sort?

HTH

Alex White