Finally adding that swap file

Robert Nichols rnicholsNOSPAM at comcast.net
Sun Oct 30 00:46:52 UTC 2005


Dotan Cohen wrote:
> On 10/29/05, Bruno Wolff III <bruno at wolff.to> wrote:
> 
>>I think it is probably better to add the entry to /etc/fstab and use swapon -a
>>so that you can just make changes to /etc/fstab and not have to muck with
>>rc.local after every swapfile change.
>>
> 
> 
> Thanks. I dont intend to change swapfiles ever again! So in that sense
> I will add the line to /etc/fstab, and add "swapon -a" to the end of
> rc.local. I just want to hear someone say "You wont break anything"
> before I do that.

"swapon -a" uses /etc/fstab to find swap files and partitions.  If you
don't want to put an entry in /etc/fstab, then you have to give swapon
an argument that explicitly identifies the swap file or partition.

-- 
Bob Nichols         Yes, "NOSPAM" is really part of my email address.




More information about the fedora-list mailing list