Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Extend SWAP area to eMMC

Featured Replies

Hi Guys,
My current system has 128MB of SWAP area for RAM. I think it's located on SD card by default, however I have eMMC (8GB) on board. Is there any way to extend SWAP area to use this 8GB or less of eMMC which can be faster than SD card. 
Is there any way to extend SWAP area even on SD card on working system?

Of course !

dd if=/dev/zero of=/emmc-mount-point/newswap bs=1024 count=<what_ever_size_you_wish>
mkswap /emmc-mount-point/newswap
nano /etc/fstab
swapon -a

The "nano /etc/fstab" above is to add new entry for the second swap file.

 

To extend existing swapfile, you first need to turn off swap using "swapoff -a", then do same kind of "dd"/"mkswap" and "swapon -a" on the existing /var/swap, but with larger block count.

 

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.