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?
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.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/bin
. By default /opt/
and /opt/bin
don't exist. Do mkdir -p /opt/bin; mv ./kubectl /opt/bin/kubectl
–
Grill © 2022 - 2024 — McMap. All rights reserved.
chmod
? – Sofia