Adding SWAP in fstab?
Sorry for the n00bish question, but I noticed that the swap partition created during the installation wasn't defined in /etc/fstab. Now, am I supposed to add it myself or is it necessarily at all? (wd0b) -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
Re: Adding SWAP in fstab?
On Fri, Feb 23, 2007 at 03:14:54PM +1100, Sunnz wrote: > Sorry for the n00bish question, but I noticed that the swap partition > created during the installation wasn't defined in /etc/fstab. > > Now, am I supposed to add it myself or is it necessarily at all? (wd0b) It's not needed. If you add *additional* swap partitions you will need to add those to fstab for them to be used automatically. -- Darrin Chandler | Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/darrin/ |
Re: Adding SWAP in fstab?
On Thu, Feb 22, 2007 at 09:34:00PM -0700, Darrin Chandler wrote: > On Fri, Feb 23, 2007 at 03:14:54PM +1100, Sunnz wrote: > > Sorry for the n00bish question, but I noticed that the swap partition > > created during the installation wasn't defined in /etc/fstab. > > > > Now, am I supposed to add it myself or is it necessarily at all? (wd0b) > > It's not needed. If you add *additional* swap partitions you will need > to add those to fstab for them to be used automatically. Forgot to mention... check with swapctl(8) to see for yourself that you do have your swap in use. 'swapctl -l' will show you. -- Darrin Chandler | Phoenix BSD Users Group [EMAIL PROTECTED] | http://bsd.phoenix.az.us/ http://www.stilyagin.com/darrin/ |
Re: Adding SWAP in fstab?
On 2/22/07, Sunnz <[EMAIL PROTECTED]> wrote: Sorry for the n00bish question, but I noticed that the swap partition created during the installation wasn't defined in /etc/fstab. Now, am I supposed to add it myself or is it necessarily at all? (wd0b) Nope. Have a gander at swapctl(8), second paragraph. config(8) references how the kernel knows. DS
Re: Adding SWAP in fstab?
Ohh ok I see the the kernel knows about partition B. Thanks very much for your answers. 2007/2/23, Darren Spruell <[EMAIL PROTECTED]>: On 2/22/07, Sunnz <[EMAIL PROTECTED]> wrote: > Sorry for the n00bish question, but I noticed that the swap partition > created during the installation wasn't defined in /etc/fstab. > > Now, am I supposed to add it myself or is it necessarily at all? (wd0b) Nope. Have a gander at swapctl(8), second paragraph. config(8) references how the kernel knows. DS -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
Re: Adding SWAP in fstab?
Sunnz wrote on Fri, Feb 23, 2007 at 03:14:54PM +1100: > Sorry for the n00bish question, but I noticed that the swap partition > created during the installation wasn't defined in /etc/fstab. > Now, am I supposed to add it myself or is it necessarily at all? (wd0b) See swapctl(8): Note: The initial swap device (root disk, partition b) is handled auto- matically by the kernel and does not need to be added to /etc/fstab or added via swapctl. It will show up as "swap_device" in the output dis- played with the -l flag. To find that piece of information yourself in the documentation, you would start from fstab(5), reading If fs_type is ``sw'' then the special file is made available as a piece of swap space by the swapon(8) command at the end of the system reboot pro- cedure. This redirects you just to the point where your question is answered.