ubermix Forums
Technical => General Support => Topic started by: lionel.ta on December 27, 2016, 03:28:17 PM
-
Yes. On system boot, Ubermix wipes all data in usb keys and external hard drives.
It took me some work to figure out what was happening after I lost data in some usb keys.
The /etc/rc.local script, which is run on boot, contains this dangerous command:
rm -rf /media/*
Which is run when the connected keys or drives are already mounted...
I was lucky to lose only a few Ubermix and Clonezilla keys, but it could have been all my personal and work data.
It wouldn't surprise me it already happened to other people...
Eveything else in Ubermix is lovely but I really think this needs a fix. Seriously, it's too dangerous.
-
Interesting. This shouldn't happen since rc.local should finish before automount, which means the disk shouldn't be there yet. In any event, version 3.22 fixes this, or you can just run
sudo apt update && sudo apt dist-upgrade
in generic mode and the ubermix-settings package update will fix it. Alternatively, you can replace the
rm -rf /media/*
with
for dir in `find /media -maxdepth 2`; do
[ -z "`find $dir -type f`" ] && rm -rf $dir
done
-
Thank you. I'll try the upgrade to 3.22 soon.