D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 8 个月前

Theoretical physicists: Actually...

sh.itjust.works

message-square
31
link
fedilink
354

Theoretical physicists: Actually...

sh.itjust.works

0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 8 个月前
message-square
31
link
fedilink
alert-triangle
You must log in or register to comment.
  • Successful_Try543@feddit.org
    link
    fedilink
    arrow-up
    67
    ·
    edit-2
    8 个月前

    The query actually shows a lack of confidence. He should have googled “How to recover a file from /dev/null?” instead.

    • brbposting@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      38
      ·
      8 个月前

      Done

      • Kairos@lemmy.today
        link
        fedilink
        arrow-up
        1
        ·
        8 个月前

        Can you not just try it with a dummy folder??

    • wander1236@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      8 个月前

      - Stack Overflow

      • Sundray@lemmus.org
        link
        fedilink
        English
        arrow-up
        8
        ·
        8 个月前

        Top voted answer

        “Why would you want to?”

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    59
    arrow-down
    1
    ·
    8 个月前

    “… you don’t. You recover it from /dev/random. Eventually.”

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      8 个月前

      And if really want quality recovery, /dev/urandom. Might take a bit longer, but it’s worth the wait 👌.

  • qjkxbmwvz@startrek.website
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    8 个月前

    Duh, just read it back from /dev/random

    You will recover the data, you just need to wait long enough.

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 个月前

      Patience is key.

  • BaroqueInMind@lemmy.one
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    8 个月前

    I mean, if the data was written to a HDD, then any forensic tool can read the magnetic residual patterns on the metal platters instead of looking for file headers?

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      17
      ·
      8 个月前

      That is true, though it would be pointless to look for it in /dev/null.

      • stoicmaverick@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        8 个月前

        There is nothing in /dev/null, and no man needs nothing.

        • SmoothLiquidation@lemmy.world
          link
          fedilink
          English
          arrow-up
          9
          ·
          8 个月前

          A hole would be something, this is NOTHING!

          • 0x4E4F@sh.itjust.worksOP
            link
            fedilink
            English
            arrow-up
            8
            ·
            8 个月前

            /dev/void 🤔

  • stoicmaverick@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    8 个月前

    That hack Torvalds keeps denying my pull request to implement /dev/aether which would immediately begin overwriting the entire disk and all other mounted storage with the repeating content of whatever is moved there.

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      8 个月前

      That is… brilliant! I love it!

  • TimeSquirrel@kbin.melroy.org
    link
    fedilink
    arrow-up
    15
    ·
    8 个月前

    Programmatically, what does the kernel actually do with data sent to /dev/null? Put it in a temp buffer and just delete it?

    • m_f@midwest.social
      link
      fedilink
      arrow-up
      20
      ·
      8 个月前

      I was also curious, here’s a good answer:

      https://unix.stackexchange.com/questions/670199/how-is-dev-null-implemented

      The implementation is:

      static ssize_t write_null(struct file *file, const char __user *buf,
                    size_t count, loff_t *ppos)
      {
          return count;
      }
      
      • TimeSquirrel@kbin.melroy.org
        link
        fedilink
        arrow-up
        16
        ·
        8 个月前

        So it’s basically doing nothing and lying about it. 😆

        • TaldenNZ@lemmy.nz
          link
          fedilink
          English
          arrow-up
          17
          ·
          8 个月前

          “I accepted all of the bytes you gave me. I didn’t do anything with them, but I accept you gave them to me”.

          • 0x4E4F@sh.itjust.worksOP
            link
            fedilink
            English
            arrow-up
            4
            ·
            8 个月前

            Could’ve at least say thank you…

            • TaldenNZ@lemmy.nz
              link
              fedilink
              English
              arrow-up
              2
              ·
              8 个月前

              It’s open source. If manners are an important feature to you perhaps look into contributing… :)

              • 0x4E4F@sh.itjust.worksOP
                link
                fedilink
                English
                arrow-up
                2
                ·
                8 个月前

                Yeah, that could actually be fun to be honest, lol 😂. But I just know the PR would be rejected, lol 😂.

    • Flipper@feddit.org
      link
      fedilink
      arrow-up
      17
      ·
      8 个月前

      The syscall to write passes a buffer and length. If it is Dev null the call just returns without doing anything more.

    • Boxscape@lemmy.sdf.org
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      8 个月前

      Programmatically, what does the kernel actually do with data sent to /dev/null?

      I imagine it’s like getting nullified in that olde show ReBoot.

  • c0smokram3r@midwest.social
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    edit-2
    7 个月前

    deleted by creator

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 个月前

    Why would you be trying to recover something from a virtual device?

    • 0x4E4F@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      8 个月前

      Because apparently, he moved it there… and doesn’t know what /dev/null is…

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 个月前

        It is still on the disk though

        Do people not understand how files work? Actually never mind that makes sense.

        • 0x4E4F@sh.itjust.worksOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 个月前

          Yes.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 个月前

        It is still on the disk though

        Do people not understand how files work? Actually never mind that makes sense.

        • shyguyblue@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          8 个月前

          Do people not understand how files work?

          Oh honey, imagine trying to tech-support a family of rednecks. Threaten to charge them for services and they’ll stop pretty quick though…

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 752 users / day
  • 3.41K users / week
  • 9.54K users / month
  • 19.7K users / 6 months
  • 12 local subscribers
  • 25.7K subscribers
  • 1.45K Posts
  • 53.6K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org