Jump to content

Extend SWAP area to eMMC


Robert LabTeam

Recommended Posts

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?

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines