Mengatasi Read-only file system Linux

Panduan cara mengatasi Read-only file system Linux. Pernah mengalami VPS anda di Google Cloud Platform (GCP) seperti ini?. Service web server tidak bisa distart, Nginx, MariaDB dan lain-lain error “Unable to .. Read-only file system”

Solusinya dimount. Lalu Bagaimana cara mounting filesystem di Linux?

Pertama lihat dulu struktur disk (filesystem)

df -h

Hasilnya

Filesystem	Type	Size	Used	Avail	Use%	Mounted on
/dev/sda1	xfs	10G	3.7G	6.4G	37%	/
devtmpfs	devtmpfs	841M	0	841M	0%	/dev
tmpfs	tmpfs	848M	0	848M	0%	/dev/shm
tmpfs	tmpfs	848M	8.4M	840M	1%	/run
tmpfs	tmpfs	848M	0	848M	0%	/sys/fs/cgroup
tmpfs	tmpfs	170M	0	170M	0%	/run/user/0

Keterangan di atas /dev/sda1 dimount ke /

Jadi perintahnya adalah

mount -o remount,rw /dev/sda1 /

Sekarang, coba restart web server.

Leave a Reply

Your email address will not be published. Required fields are marked *