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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With