【Linux】問題解決:fallocate: fallocate failed: Text file busy

前言

這篇文章主要說明當我碰到「fallocate: fallocate failed: text file busy」時,我是如何解決的。

問題成因

出現此訊息時,表示目前的 swap 記憶體正在使用中,我們需要先關閉swap記憶體即可。

解決方式

執行以下指令:

swapoff -a

Reference

https://askubuntu.com/questions/920595/fallocate-fallocate-failed-text-file-busy-in-ubuntu-17-04