Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 18 submissions in the queue.
posted by CoolHand on Tuesday February 09 2016, @02:27AM   Printer-friendly
from the why-oh-why dept.

A number of users have reported that running "rm --no-preserve-root -rf /" not only deletes all their files (as expected), but also permanently bricks their computers (which is not). Tracing the issue revealed that the ultimate cause was that SystemD mounted the EFI pseudo-fs as read-write even when this FS was not listed in fstab, and deleting certain files in this pseudo-fs causes certain buggy, but very common, firmware not to POST anymore. A user reported this bug on SystemD's GitHub issue tracker, asking that the FS be mounted read-only instead of read-write, and said bug was immediately closed as invalid. The comment thread for the bug was locked shortly after. Discuss.

Links:
https://github.com/systemd/systemd/issues/2402
http://thenextweb.com/insider/2016/02/01/running-a-single-delete-command-can-permanently-brick-laptops-from-inside-linux/


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by q.kontinuum on Tuesday February 09 2016, @10:44AM

    by q.kontinuum (532) on Tuesday February 09 2016, @10:44AM (#301323) Journal

    no one in their right minds would willfully issue rm -rf /,

    That is a wrong assumption, I think. (Or maybe I'm just not right in my head and project to much :-))

    First of all, every newbie screws up his system once in a while, and when I need to re-install anyway I would have considered rm -rf a safe way to let out my frustration. Also I might have tried to see how far it gets before it starts missing the underlying system. I usually would actively encourage my son to try any kind of commands on a system, provided the system is not important and can be wiped/reinstalled without substantial losses.

    Second, a script might rely on environment variables to delete subfolders (rm -rf $WORKSPACE/$CCACHE). Such a script without any safeguards (if [ -z $WORKSPACE ]) would be enormously stupid, and anyway disastrous, but should at least not brick the hardware.

    --
    Registered IRC nick on chat.soylentnews.org: qkontinuum
    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2