Jump to content

How can I create a swap file on USB drive?


Guest PavelP
 Share

Recommended Posts

it IS possible, ive just never found it needed.

 

boot from your stick, go to mcc and partition is as you would any other disk, you may lose everything on your LAST partiton, i did this once and my setup was this:

 

MCNL - DATA

700MB 1300MB

 

I then added a 200MB swap and it looked like this:

 

MCNL - SWAP - DATA

700MB 200MB 1100MB

 

but when i did that I was able to keep my MCNL, but I lost my DATA

Link to comment
Share on other sites

and as far as i can remember, using a flash-based space for swap is not recommended since that will expedite the "wear" on the storage system. some flash device manufacturers are working around this by incorporating some leveling algorithm that will spread the writes around the device.

 

like what scarecrow said, use a flash-based swap if the machine has very limited RAM, or use less memory intensive applications if you can.

 

to answer your original question, look at the manpage of the mkswap/swapon/swapoff commands.

 

ciao!

Link to comment
Share on other sites

  • 4 weeks later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...