How to mount swap partition auto when starting

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
Guest

How to mount swap partition auto when starting

#1 Post by Guest »

Dear all
I have been installed Puppy in my hardisk. I have a swap partition and Could you tell me how to make Puppy auto mount it booting.
Thanks for your help
Regards

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#2 Post by Nathan F »

The swap partition can be used with the command swapon, for instance if my swap partition was /dev/hda4 then the command would be

Code: Select all

swapon /dev/hda4
You can add this command to /etc/rc.d/rc.local and it will execute automatically at bootup.
If you have multiple swap partitions/devices then you can use this command instead

Code: Select all

swapon -a
That will activate all of them at once. In fact, it can be safely used if you only have one swap partition and aren't sure which one it is.

Nathan

noip
Posts: 93
Joined: Fri 07 Oct 2005, 00:45
Location: Sydney

#3 Post by noip »

Hi,

Basically, you add the swap partition to your fstab file in /etc .

This previous discussion may help ..

http://www.murga.org/%7Epuppy/viewtopic ... light=swap

Rds

GS

ftgs

Post Reply