Criar swap no Raspberry Pi

fdisk -l

dd if=/dev/zero of=/boot/swap bs=1024 count=1024000
1024000+0 registros de entrada
1024000+0 registros de saída
1048576000 bytes (1,0 GB, 1000 MiB) copiados, 74,2398 s, 14,1 MB/s

ls

chmod 600 swap

mkswap swap

free -m

swapon swap

nano /etc/fstab

/boot/swap swap swap defaults 0 0

reboot

[Voltar]