Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Nov 2017, 13:37
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to create a swap partition and/or swap file?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
JFB

Joined: 17 Oct 2017
Posts: 21

PostPosted: Mon 30 Oct 2017, 23:16    Post subject:  How to create a swap partition and/or swap file?  

When I installed Tahrpup 6.0.5 as Frugal, I deleted the old partition with GParted and created a single new bootable partition. A few days later I realized that I did not create a swap partition or swap file. How can I now do that? I'm not apposed to doing a complete re-install if need be... This is another topic that I really know nothing about...
Back to top
View user's profile Send private message 
Gordie

Joined: 23 Aug 2016
Posts: 84

PostPosted: Mon 30 Oct 2017, 23:23    Post subject:  

The simplest solution is to just start over and install again. This time do it differently. It is good practice
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2187
Location: Cradle of Humankind

PostPosted: Mon 30 Oct 2017, 23:51    Post subject:  

http://www.murga-linux.com/puppy/viewtopic.php?t=111117
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 1492
Location: Italy

PostPosted: Mon 30 Oct 2017, 23:53    Post subject:  

From a live session in RAM you can resize the one bootable partition with gparted and create a swap partition. Before proceeding I suggest a backup of the savefile.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2612

PostPosted: Tue 31 Oct 2017, 04:47    Post subject:  

I would much sooner create and use a swap file, rather than risking a partition re-size. Using a swap file also has the advantage that you can easily re-size it any time you like without problems.
Back to top
View user's profile Send private message 
JFB

Joined: 17 Oct 2017
Posts: 21

PostPosted: Tue 31 Oct 2017, 12:08    Post subject:  

Before I start messing around with this: I'm wondering what, if anything, it takes to make Puppy recognize and use the swap file. Also, what do most people do? Do they create another partition and place a swap file on that partition, or do they create a swap file on the main partition?

I'm running Tahrpup 6.0.5...

Edit: I'm at work at the moment (so I can't now), but I will be looking at MakeSwap.pet
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1285

PostPosted: Tue 31 Oct 2017, 12:22    Post subject:  

If you boot a puppy from a USB stick or CD (or run live in RAM with pfix=ram as mentioned) you can shrink your tahrpup partition with GParted, then add a "linux-swap" partition for the new unallocated space after it, and puppy will load the "linux-swap partition" on next boot (or you can then hit "swap on" in GParted for puppy to use it too).

I am using a 2GB swap partition this way currently and it helps when browsing a lot of heavy sites as my laptop only has 1GB RAM.
http://murga-linux.com/puppy/viewtopic.php?p=916151#916151
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12699
Location: Arizona USA

PostPosted: Tue 31 Oct 2017, 12:31    Post subject:  

If you have plenty of RAM you don't need virtual memory (swap) at all. I run Puppy from CD without a hard disk drive, so no swap and everything is in RAM. 4 GB of RAM is much more memory than my Puppy ever needs. The only time I ever needed more was when I tried to do something with the video from a DVD. That was many years ago and I've forgotten what I was trying to do.
Back to top
View user's profile Send private message 
Gordie

Joined: 23 Aug 2016
Posts: 84

PostPosted: Tue 31 Oct 2017, 14:22    Post subject:  

With swapfiles I am not familiar but when you make a partition and delegate it to swap your puppy or any other Linux OS will automagically find it and use it
Back to top
View user's profile Send private message 
JFB

Joined: 17 Oct 2017
Posts: 21

PostPosted: Tue 31 Oct 2017, 16:08    Post subject:  

@nic007 (and/or anyone who has used "Make Swapfile"), I have the Make Swapfile utility installed. I have not used it yet. It tells me that a swapfile will be created in /mnt/home of my storage drive. Sounds quite simple. Is this adequate? Is this what I need? Or should I keep pursuing a swapfile partition? (I'm hoping Make Swapfile is what I need...) Thanks...

Edit: @Flash (official dog handler) I only have one GB of Ram on a 2008, 32 bit, Acer Aspire 1 Netbook... To tell you the truth, Tahrpup 6.0.5 is running great on it, but, somehow, I have the idea that I need a swapfile...
Back to top
View user's profile Send private message 
Galbi


Joined: 21 Sep 2011
Posts: 944
Location: Bs.As. - Argentina.

PostPosted: Tue 31 Oct 2017, 16:36    Post subject:  

As Flash said, perhaps you don't need either, which is the amount of RAM of your machine?
Try with the swap file and if everything works fine, forget about it...

_________________
Remember: "pecunia pecuniam parere non potest"
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2187
Location: Cradle of Humankind

PostPosted: Tue 31 Oct 2017, 20:25    Post subject:  

JFB wrote:
@nic007 (and/or anyone who has used "Make Swapfile"), I have the Make Swapfile utility installed. I have not used it yet. It tells , utility me that a swapfile will be created in /mnt/home of my storage drive. Sounds quite simple. Is this adequate? Is this what I need? Or should I keep pursuing a swapfile partition? (I'm hoping Make Swapfile is what I need...) Thanks...

Edit: @Flash (official dog handler) I only have one GB of Ram on a 2008, 32 bit, Acer Aspire 1 Netbook... To tell you the truth, Tahrpup 6.0.5 is running great on it, but, somehow, I have the idea that I need a swapfile...


If you are not running any extraordinary big applications, you may not need a swap partition or swap file. With 1GB RAM and using Tahr, this may be a touch and go situation whether you are going to need it or not. Personally, I would run without either if I don't encounter problems. However, if you do end up having to use swap (you will know this if you run out of memory and the system freeze), the utility you downloaded will set up a working swap file automatically (you can start with selecting a small one first). It's less intrusive to use a swap file instead of a swap partition (the latter needs a dedicated swap partition to be set up).

BTW - you can check your free memory at anytime by running the command "freemem" in terminal.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0453s ][ Queries: 12 (0.0043s) ][ GZIP on ]