December 11, 20241 yr Whenever I copy files to any folder on the flash drive, it's gone on the next reboot. For example, I put a text file in /root, rebooted, and now it's gone. Same thing for other folders, like /usr/sbin. Is the flash drive cleared or something on every reboot? Is there a way to prevent that? Edited December 11, 20241 yr by BigErn77
December 11, 20241 yr Community Expert Unless your description is incomplete then those locations are in RAM - not on the flash drive (which is why it does not survive a reboot).
December 11, 20241 yr Solution flash is under /boot. You may need to store files there and copy them to where they need to be on reboot using the /boot/config/go file. For example: #Copy bash profile cp /boot/config/bash_profile /root/.bash_profile
December 11, 20241 yr Author 11 minutes ago, foo_fighter said: flash is under /boot. You may need to store files there and copy them to where they need to be on reboot using the /boot/config/go file. For example: #Copy bash profile cp /boot/config/bash_profile /root/.bash_profile Aha, that explains it!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.