[SOLVED] Re: [opensuse-arm] resize the swap partition
Op dinsdag 24 juli 2018 15:01:10 CEST schreef Xavier Primer:
Hi,
I'm newbie in openSUSE ...
I'm running openSUSE on Raspberry Pi 3 machine.
How can I resize the swap partition ?
Thanks, see you.
I use next to the swap partition on the RPi3 a swap file. You create the file using:
fallocate --length ?MiB /var/swapfile
/var/swapfile can be any path to a file, replace ? with the required size. I use 512. Initialize the file using
mkswap /var/swapfile
If you need the swap space occasionally you can can use:
swapon /var/swapfile
otherwise make an entry in /etc/fstab like:
/var/swapfile none swap sw 0 0
mount -a
will mount the swapfile right after creation, otherwise it will be made available in the boot process.
You can inspect the swap space using:
swapon --bytes
-- fr.gr.
member openSUSE Freek de Kruijf
Hi Freek , Your idea work fine. Thanks for your explained answer. See you. -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (1)
-
Xavier Primer