Technical > General Support

[SOLVED] Ubermix wipes out all mounted media on boot!

(1/1)

lionel.ta:
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:

--- Code: ---rm -rf /media/*
--- End code ---
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.

jnetman1:
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


--- Code: ---sudo apt update && sudo apt dist-upgrade
--- End code ---

in generic mode and the ubermix-settings package update will fix it. Alternatively, you can replace the

--- Code: ---rm -rf /media/*
--- End code ---

with


--- Code: ---for dir in `find /media -maxdepth 2`; do
[ -z "`find $dir -type f`" ] && rm -rf $dir
done
--- End code ---

lionel.ta:
Thank you. I'll try the upgrade to 3.22 soon.

Navigation

[0] Message Index

Go to full version