How to make a swapfile for Puppy 2.14? Solved

Booting, installing, newbie
Post Reply
Message
Author
MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

How to make a swapfile for Puppy 2.14? Solved

#1 Post by MikeMT »

"How to create a Swap File

These instructions may only be current for Puppy 1.x so revisions to the instructions need to be updated for Puppy 2.x to make sure it works and also be very careful when using dd if=/dev/zero!"

This is the caution at the head of the instructions.

After much searching I cannot find any info on making a swapfile for Puppy 2.14. Can someone give a link or instructions?

Thanks
Last edited by MikeMT on Sat 10 Mar 2007, 15:03, edited 1 time in total.

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#2 Post by trapster »

See Here

Also, the new swap file for 214 should be named pupswap.swp
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#3 Post by MikeMT »

Thanks for the link.

Two things make the solution cloudy: One the link was from 2005 which predates Puppy 2.14, and the solution contains the same code as the caution quoted in my first post.

"dd if=/dev/zero of=/mnt/home/pup.swp bs=1M count=512"

Why should one be careful?

User avatar
J_Rey
Posts: 273
Joined: Wed 04 May 2005, 20:08
Location: Northwest Florida, U.S.A.
Contact:

#4 Post by J_Rey »

Well, I can see that you are obviously referring to http://puppylinux.org/wikka/SwapFile although you never mentioned that in this topic yet.... I'm the one who added that warning to the wiki page because the instructions need updated period. Using "dd if=/dev/zero" together zeros replaces things with zeros, which is good for this case just don't make typos or change the dd command parameters unless you're confident in what you're doing. Using "dd if=/dev/zero of=/mnt/home/pup.swp bs=1M count=512" will create an empty 512MB file next to your pup_save file. The only thing to change would be the 512 to how many MB you want the file. Just don't bother creating a swap file on a NTFS partition cuz it won't be used.

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#5 Post by MikeMT »

I understand the caution.

I found a workable solution. I had a remnant knoppix.swp from DSL. I had read about how Puppy 2.14 can use other swap files. I entered the following: "swapon /initrd/mnt/dev_ro1/knoppix.swp". free showed it worked. I then put that command in rc.local.

Was that a good workaround? or have I missed something?

Thanks for the help.

Bruce B

#6 Post by Bruce B »

Maybe you aren't missing something. Maybe I am.

I run the mkswap command on the file after I make it. Is this not necessary?

MikeMT
Posts: 87
Joined: Sat 01 Apr 2006, 17:28

#7 Post by MikeMT »

Bruce,

As I understand it, the mkswap command makes a swap file or partition. The "swapon /initrd/mnt/dev_ro1/knoppix.swp" activates the swap. I activated a swap file which was already created on my hard drive. Then the mkswap command is not necessary, because the mkswap command had been done when running DSL (Damn Small Linux).

Post Reply