/root folder wiped

Kernel, Main, Utilities & Apps, Misc Devices.
Airbag
Posts: 9
Joined: Wed Jun 10, 2020 2:46 pm
Has thanked: 1 time
Been thanked: 2 times

/root folder wiped

Unread post by Airbag »

Hello,
I have just seen that I cannot ssh using keys into my MiSTer. In fact my /root folder has been wiped (and that includes /root/.ssh/authorized_keys )
Fortunately it's easy to restore.
Is it related to the "Linux update" from 2 days ago ?
Do you know which other important folders will get wiped after every Linux update ?
Thanks.
User avatar
Mellified
Posts: 144
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 43 times

Re: /root folder wiped

Unread post by Mellified »

Everything in /root is reset to defaults after every Linux update.
Stupid Dufus
Posts: 33
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 8 times
Been thanked: 4 times

Re: /root folder wiped

Unread post by Stupid Dufus »

Not sure if it's /root related or not, but I noticed the last time I updated linux on MiSTer none of my cifs connections were auto-mounting. Running the cifs_mount script again got them working.
jca
Posts: 528
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 29 times
Been thanked: 96 times

Re: /root folder wiped

Unread post by jca »

This is normal, I had a quick look at the script and it does various things in different places of the Linux part of the file system. A new installation wipes not only /root but also other directories like /etc which I noticed on my MISTer as I have scripts in /etc/init.d, have to create /etc/connman and place a file in there.
elvis
Posts: 34
Joined: Sun May 24, 2020 9:25 pm
Has thanked: 26 times
Been thanked: 19 times

Re: /root folder wiped

Unread post by elvis »

I back up all my customisations (SSH keys and a few other things) to a separate folder under the sdcard mount, and then have a small rsync script to put them all back whenever a system update clobbers the root volume.
Post Reply