Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreOS : Read-only file system

When moving file to /usr/local/bin it says:

mv: inter-device move failed: 'kubectl' to '/usr/local/bin/kubectl';
unable to remove target: Read-only file system

I already try chmod

How can the CoreOS directory be made writable?

like image 671
Madhurima Mishra Avatar asked Jun 14 '16 11:06

Madhurima Mishra


1 Answers

In CoreOS the /usr partition is read-only by design, so /usr/local/bin/ will be read-only too (unless you mount another disk there). This allows for the auto-updating CoreOS uses to keep the OS current. You can see the partition layout here.

You can install your binaries, etc. in another partition. I usually use /opt/ for this purpose. You can either mount another disk on /opt/ or rely on the fact that / is read-write, depending on your use case, size of files installed, etc.

like image 129
rwehner Avatar answered Oct 06 '22 17:10

rwehner