Editing Swap on microSD
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 37: | Line 37: | ||
====Script==== | ====Script==== | ||
- | + | This script can be run via [[Terminal]] or using an application like [[Queen BeeCon Widget]]. | |
- | + | ||
- | + | It is for refreshing swap if main swap space is on Micro SD Partition 2. | |
- | + | ||
- | + | ||
- | + | run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Start Swap Refresh" uint32:0 string:"OK"; sudo swapon /dev/mmcblk0p3 ; sudo swapoff /dev/mmcblk1p2 ; run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Swapping Back to Main Swap on SD..." ; sudo swapon /dev/mmcblk1p2 ; sudo swapoff /dev/mmcblk0p3 ; run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"Swap Refresh Complete" uint32:0 string:"OK" | |
+ | |||
+ | This script can be modified to suit different swap locations as required. | ||
====Ereswap==== | ====Ereswap==== | ||
Line 52: | Line 51: | ||
More information is available on the [[Ereswap]] wiki | More information is available on the [[Ereswap]] wiki | ||
- | == | + | ==Configure microSD card for swapping== |
The microSD card must be split into at least 2 partitions. The first one should be FAT32 (vfat) formatted and the second one must be formatted for linux swap (type 82) and about 384 MB in size. You can change the size of it, but this value should be suitable for most people. | The microSD card must be split into at least 2 partitions. The first one should be FAT32 (vfat) formatted and the second one must be formatted for linux swap (type 82) and about 384 MB in size. You can change the size of it, but this value should be suitable for most people. |
Learn more about Contributing to the wiki.