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 Fri 01 Aug 2014, 22:34
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to create SWAP on USB key?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
klasu777

Joined: 09 Apr 2009
Posts: 17

PostPosted: Thu 09 Apr 2009, 01:18    Post subject:  How to create SWAP on USB key?  

Hi Folks,

I'm trying to make Puppy use some swap. But it seems i'm not doing it properly and would appreciate your help.

My Puppy version is 2.14. It appears that the complete OS is running in RAM (Size 124MB); it can also create the pup_save.2fs file (Size 500 MB) saved on a USB key.

Now, whenever i create some swap, everything is create in RAM instead of being created on the USB key. To create the swap here is what i do:

$ dd if=/dev/zero of=/myswap bs=1024 count=1024
$ mkswap /myswap 1024
$ swapon -a

So, what am i missing?

Thanks,

Klaus.
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Fri 10 Apr 2009, 17:46    Post subject: Re: How to create SWAP on USB key?  

klasu777 wrote:
Hi Folks,

I'm trying to make Puppy use some swap. But it seems i'm not doing it properly and would appreciate your help.

My Puppy version is 2.14. It appears that the complete OS is running in RAM (Size 124MB); it can also create the pup_save.2fs file (Size 500 MB) saved on a USB key.

Now, whenever i create some swap, everything is create in RAM instead of being created on the USB key. To create the swap here is what i do:

$ dd if=/dev/zero of=/myswap bs=1024 count=1024
$ mkswap /myswap 1024
$ swapon -a

So, what am i missing?

Thanks,

Klaus.


If $ is root, the only thing not done properly is the swapon command which needs to specify the full name of the swapfile.

# swapon /foo/bar/swapfile.swp

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
potchan


Joined: 05 Apr 2008
Posts: 102
Location: Pilots' Height צוות_פותחן_לינוקס

PostPosted: Wed 03 Jun 2009, 16:02    Post subject: Don't, please don't do swap on USB key
Subject description: I made a swap USB key for myself (Gparted), but only for testings
 

Hi,

It is not recommended to make swap on flash media, because if swap writes itself a lot (in some opposite ratio to RAM amount) it can be ruined fast and it's not healthy for media U count-on for OS and DATA. If you make swap on /root you probably avoid some writings, but enlarging ISO/boot time. If you need swap - do it please as a partition or a swapfile onHD. See also:

http://www.murga-linux.com/puppy/viewtopic.php?t=37660

See also a link to another topic and search there for "Max and Moritz HORROR fly show" for a fresh thought. Evil or Very Mad

http://www.murga-linux.com/puppy/viewtopic.php?p=277888

Cheers ! Wink

_________________
Timmothie (Timmo') Baker, the Potchan (=opener) Simplify Team at - http://potchan.org
P' developed on various LimpWare: DELL INSPIRON 2600 -> .. -> HP Pavilion dv6-2130ej
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0574s ][ Queries: 11 (0.0086s) ][ GZIP on ]