KittiesAreCute!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zaknenou@lemmy.dbzer0.com to Linux@lemmy.mlEnglish · 1 year ago

Is it possible to erase the UEFI/BIOS using dd or rm -rf on Linux ?

yt3.ggpht.com

external-link
message-square
28
link
fedilink
45
external-link

Is it possible to erase the UEFI/BIOS using dd or rm -rf on Linux ?

yt3.ggpht.com

zaknenou@lemmy.dbzer0.com to Linux@lemmy.mlEnglish · 1 year ago
message-square
28
link
fedilink
alert-triangle
You must log in or register to comment.
  • lemmyng@lemmy.ca
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    1 year ago

    Not sure about erasing all of it, but it is (or was) certainly possible to delete enough of it to brick a motherboard https://www.phoronix.com/news/UEFI-rm-root-directory

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    Pretty sure you can brick your system real quick using efivarfs

    https://docs.kernel.org/filesystems/efivarfs.html

    some systems dont let you write but some do.

    Theres a similar system i was messing with to read and write the firmware code… reading through this may be informative.

    efivars should let your change any bios/uefi settings if thats what youre looking for.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 year ago

      Modern versions of Linux don’t let you erase it so easily

    • zaknenou@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      1 year ago

      thank you! I think this is what needed to explore
      It is not my level to edit these things, I’m just Linux newbie exploring the possibilities.

      But I still can’t wrap my head over dd not being able to wipe a storage device out, despite being described as a “low level tool that can write zeroes to targets” in the discussion I viewed online.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        The bios isn’t like a regular storage device presented to the kernel for mounting.

      • bloodfart@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Dd can’t overwrite a burned cdr either. If the thing you wanna mess with is read only there’s no way to use it as a dd of.

        • zaknenou@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          but CD-R aren’t rewrite_able because of their physical property not because protected

          • bloodfart@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            that’s true, but in both cases the ability to write data simply isn’t there.

  • Kyrgizion@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    4
    ·
    1 year ago

    It resides on the MB itself in a separate chip, so no, although there are probably tools to make it possible.

    • zaknenou@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      what about this answer ? Is it outdated ? According to it, UEFI could be mounted like a flash drive I understand ?

      • Bitrot@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        8 months ago

        deleted by creator

        • zaknenou@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 year ago

          hmm, so this is not a constant thing among BIOSes and UEFIs

  • m4@kbin.social
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    I’m just curious about what software was used to make this image.

    • zaknenou@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I don’t know I got it from this post by the ByteByteGo Youtube Channel:
      https://www.youtube.com/post/UgkxNpwmgzai2O_tUa-b5yeLzLjh_OHs4vDY
      On the description for this video they state:

      Animation tools: Adobe Illustrator and After Effects.

      • PipedLinkBot@feddit.rocksB
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Here is an alternative Piped link(s):

        https://www.piped.video/post/UgkxNpwmgzai2O_tUa-b5yeLzLjh_OHs4vDY

        this

        Piped is a privacy-respecting open-source alternative frontend to YouTube.

        I’m open-source; check me out at GitHub.

        • zaknenou@lemmy.dbzer0.comOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          deleted by creator

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    Only if your device supports software flashing, likely not.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    It used to be

  • VeganCheesecake@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    You can mount the efi partition, but I don’t think you can usually mount the uefi or bios. I’ve only ever edited vbios, and haven’t done so in quite some time, but I remember needing to clamp the vbios chip. Dunno if motherboards make their bios chips more accessible, but I kinda doubt it.

    Some motherboard support starting bios/uefi updates from a booted OS, so there might be a vector to be found there.

  • femboy_bird@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    1 year ago

    Usually not, but some devices can

  • MonkderDritte@feddit.de
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    edit-2
    1 year ago

    No, you need efibootmgr to erase your UEFI.

  • Vitaly@feddit.uk
    link
    fedilink
    arrow-up
    2
    arrow-down
    11
    ·
    1 year ago

    no because bios is read only

    • nyan@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Early true BIOSen were stored on EPROM, which couldn’t be rewritten while on the board, so those were read-only.

      Later BIOSen were often on EEPROM or other chips that could be reflashed while on the board. According to Wikipedia, that started in the mid-1990s. However, you usually needed physical access and/or special software tools to do an overwrite—you couldn’t mount these as a filesystem.

      UEFI is quite different from legacy BIOSen and can be mounted as a filesystem, but how much it can be tampered with varies between implementations and devices.

      So you would have been correct up until about 30 years ago, but not for modern systems.

      • Vitaly@feddit.uk
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        thanks for the explanation

      • Vitaly@feddit.uk
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        that is what they teach us in computing lessons lol

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 524 users / day
  • 3.34K users / week
  • 8.03K users / month
  • 17.5K users / 6 months
  • 2 local subscribers
  • 54.2K subscribers
  • 6.8K Posts
  • 146K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org