LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab and swap question (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-and-swap-question-493244/)

radiodee1 10-17-2006 01:43 PM

fstab and swap question
 
I'm trying to install swap space, and am editing fstab. I've got everything right (I think) but those last two numbers. My entry for my swap space looks like this:

/dev/hdb2 none swap swap 0 0

Is this right? If I type 'swapon - s' as root I get a table that says:

Filename Type Size Used Priority
/dev/hdb2 partition 522104 0 -1

I look at the 'used' and 'priority' columns and I wonder if I'm doing the right thing. Any help in this matter would be apreciated.

crashsystems 10-17-2006 02:36 PM

try the following:
Code:

/dev/hdb2 none swap defaults 0 0
and see if that works. With this, you'll be selecting the default options for this fs. Tell me how it goes.

crashsystems

syg00 10-17-2006 04:25 PM

Everything is fine.
People complain when they find swap being used, others worry when it's not.

The priority is merely used to determine the order of selection for swapout - where multiple swap extents exist. Not relevant here.
Can be specified in fstab if you really want to.

radiodee1 10-18-2006 06:35 AM

crashsystems, syg00,

Thanks. I'll try the change in fstab. Thanks again.


All times are GMT -5. The time now is 12:23 PM.