Raspberry Pi - Expanding RAM with USB External Swap File

Subscribers:
1,330
Published on ● Video Link: https://www.youtube.com/watch?v=tVfMNI3w6Dw



Duration: 14:03
8,568 views
0


Save lives, stop wearing masks, stop social distancing, stop hiding from a virus which is less deadly than the stupid people telling you it is. You're killing yourselves, you're killing future generations by following snowflakes. Get educated.

Fight the enemy. Words don't work, fight back.

Slowly migrating over to BitChute: https://www.bitchute.com/channel/EcD5VVAOKtOw/



This is a learning video, not something you should really consider setting up. Especially a 32GB swap file on a USB memory stick.

However, it can be done. A page file and a swap file are the same thing, I found 'swap file' easier to read. This method WILL DESTROY ALL DATA ON THE SWAP FILE DISK - yeah, it needed caps.

I'm using a PI3B+ with a 32GB internal SD card. Then assigning the swap file to an external 32GB USB memory stick.

If you really need more RAM, don't use a Pi. If you really need to use a Pi, consider using ZRAM. It compresses memory and almost everyone chooses it over external storage. Although you'll be very limited with space gained, the speed should be faster than an external card.

If you don't want to watch the video, here are some commands.
- umount (unmount USB drive)
- mkswap /dev/sda1 (make swap on the external disk)
- swapon /dev/sda1

...it's pretty much that simple. Sort of.







Tags:
pi
raspberry pi
pi3b+
swap file
page file
external swap file
external page file
usb swap file
usb apge file