/root folder wiped

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
Airbag
Posts: 22
Joined: Wed Jun 10, 2020 2:46 pm
Has thanked: 5 times
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: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: /root folder wiped

Unread post by Mellified »

Everything in /root is reset to defaults after every Linux update.
Stupid Dufus
Posts: 152
Joined: Sun Aug 30, 2020 12:04 am
Has thanked: 87 times
Been thanked: 46 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
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 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: 62
Joined: Sun May 24, 2020 9:25 pm
Has thanked: 41 times
Been thanked: 35 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