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?
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.
31 Comments
Successful_Try543@feddit.org · 67 pts · 1y
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 · 38 pts · 1y
Done
LodeMike@lemmy.today · 1 pts · 1y
Can you not just try it with a dummy folder??
wander1236@sh.itjust.works · 9 pts · 1y
- Stack Overflow
sundray@lemmus.org · 8 pts · 1y
Top voted answer
"Why would you want to?"
palordrolap@fedia.io · 58 pts · 1y
"... you don't. You recover it from /dev/random. Eventually."
0x4E4F@sh.itjust.works · 12 pts · 1y
And if really want quality recovery,
/dev/urandom. Might take a bit longer, but it's worth the wait 👌.qjkxbmwvz@startrek.website · 29 pts · 1y
Duh, just read it back from
/dev/randomYou will recover the data, you just need to wait long enough.
0x4E4F@sh.itjust.works · 6 pts · 1y
Patience is key.
BaroqueInMind@lemmy.one · 21 pts · 1y
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.works · 17 pts · 1y
That is true, though it would be pointless to look for it in
/dev/null.stoicmaverick@lemmy.world · 8 pts · 1y
There is nothing in /dev/null, and no man needs nothing.
SmoothLiquidation@lemmy.world · 9 pts · 1y
A hole would be something, this is NOTHING!
0x4E4F@sh.itjust.works · 8 pts · 1y
/dev/void🤔stoicmaverick@lemmy.world · 18 pts · 1y
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.works · 8 pts · 1y
That is... brilliant! I love it!
TimeSquirrel@kbin.melroy.org · 15 pts · 1y
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 · 20 pts · 1y
I was also curious, here's a good answer:
https://unix.stackexchange.com/questions/670199/how-is-dev-null-implemented
The implementation is:
TimeSquirrel@kbin.melroy.org · 16 pts · 1y
So it's basically doing nothing and lying about it. 😆
taldennz@lemmy.nz · 17 pts · 1y
"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.works · 4 pts · 1y
Could've at least say thank you...
taldennz@lemmy.nz · 2 pts · 1y
It's open source. If manners are an important feature to you perhaps look into contributing... :)
0x4E4F@sh.itjust.works · 2 pts · 1y
Yeah, that could actually be fun to be honest, lol 😂. But I just know the PR would be rejected, lol 😂.
Flipper@feddit.org · 17 pts · 1y
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 · 6 pts · 1y
I imagine it's like getting nullified in that olde show ReBoot.
c0smokram3r@midwest.social · 4 pts · 1y
possiblylinux127@lemmy.zip · 2 pts · 1y
Why would you be trying to recover something from a virtual device?
0x4E4F@sh.itjust.works · 4 pts · 1y
Because apparently, he moved it there... and doesn't know what
/dev/nullis...possiblylinux127@lemmy.zip · 2 pts · 1y
It is still on the disk though
Do people not understand how files work? Actually never mind that makes sense.
0x4E4F@sh.itjust.works · 1 pts · 1y
Yes.
possiblylinux127@lemmy.zip · 2 pts · 1y
It is still on the disk though
Do people not understand how files work? Actually never mind that makes sense.
shyguyblue@lemmy.world · 4 pts · 1y
Oh honey, imagine trying to tech-support a family of rednecks. Threaten to charge them for services and they'll stop pretty quick though...