Spyke
feddit.org

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

67
fedia.io

"... you don't. You recover it from /dev/random. Eventually."

58

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

12

Duh, just read it back from /dev/random

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

29
lemmy.one

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?

21
0x4E4Freply
sh.itjust.works

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

17
lemmy.world

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.

18

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

15
TaldenNZreply
lemmy.nz

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

17
TaldenNZreply
lemmy.nz

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

2

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

2

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

17

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.

6
0x4E4Freply
sh.itjust.works

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

4
lemmy.zip

It is still on the disk though

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

2

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...

4
lemmy.zip

It is still on the disk though

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

2

You reached the end

Theoretical physicists: Actually... | Spyke