I just discovered something I did so idiotic I need a stronger adjective that what is in my name.

For one of my installs, I accidentally overwrote my 1TB HDD. A few minutes ago I wanted to put back some files… and all I saw was a distro.

It confused me because I was not sure if I was on my solid state drive or the HDD.

So, those files are gone. A lot is gone. Nothing too precious, I think… It might be a tremendous fuck up.

See kids, this is why you back up. Off the computer. Oh well.

EDIT: Recovering files using Photorec. Everyone who recommended this to me is a hero. Also a hero is the person who recommended FTK, but I was too eager to use something now than to sign up to download. I still should though…

58 points

THANK YOU EVERYONE who recommended PHOTOREC! This community is fantastic.

permalink
report
reply
10 points
*

You might be able to rebuild your partitions with testdisk, too. Work from a backup.

permalink
report
parent
reply
5 points

Neat. I will try that once photorec finishes its search in like a month from now.

permalink
report
parent
reply
52 points
*

Accidentally flashed a live image (PCBSD, IIRC) onto my 1TB external HDD instead of the thumb drive. Lost years of collected music and movies that night. I learned two things:

  1. Don’t do this sort of thing in the middle of the night, when you’re tired and should be sleeping.
  2. dd is nicknamed ‘disk destroyer’ for good reason.
permalink
report
reply
25 points

😵‍💫 the 3am tinkering, it calls to me 😵‍💫

permalink
report
parent
reply
30 points

Never dd at 3am, kids.

permalink
report
parent
reply
3 points

Not done it at 3am but have dd’d to the wrong disk late in the evening, possibly after a few vinos

permalink
report
parent
reply
1 point

Fortunately my laptop only has nvmes built in, so 99% of the time all 3am me has to do is not type nvme and I’m good

permalink
report
parent
reply
9 points
  1. Disconnect all other drives
permalink
report
parent
reply
8 points

When using dd, check the command before pressing enter, then check it again for good measure.

permalink
report
parent
reply
2 points

then replace dd with cat or cp.

permalink
report
parent
reply
4 points
*

… no use in dd to write an image to disk. Just use cat/cp/pv…

dd is a scalpell, not a shovel.

Useless use of dd

permalink
report
parent
reply
4 points
*

Late to the party but this why I like Ventoy. It only looks for removable drives and then all you do is drag and drop your live images onto the removable drive. Pretty hard to mess anything up.

permalink
report
parent
reply
4 points

Oh, am I talking to myself? Hah.

Yeah, I wish I had all the stuff I torrented in high school. Lost treasure.

permalink
report
parent
reply
43 points
*

Before you perform another task on that hard drive, try photorec. You might be able to get a majority of your files back if they’re important

permalink
report
reply
8 points

I guess I can try it, since I did not like, wipe everything.

permalink
report
parent
reply
32 points

I remember shortly after college I was living with a couple of people and one day we all heard “NOOOOOOOOOO!” and went running to see what tragedy happened. He had started formatting the one porn drive he had been collecting on over the last few years.

permalink
report
reply
14 points

That is is a special kind grieving.

permalink
report
parent
reply
10 points

I’ll never forget that scream, I thought a sound like that was reserved for when the cat ran behind the couch and stepped on the surge protector button, corrupting the hard drive as you were almost finished writing your graduate thesis, which wasn’t backed up yet.

permalink
report
parent
reply
13 points

Honestly a thesis is way higher stakes and value. Yeah, imagine thinking there was an emergency only to find out your roommate will need to spend the rest of the semester using their imagination.

permalink
report
parent
reply
14 points

Make a donation to the testdisk author!

permalink
report
reply
8 points

I will! These programs are amazing.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

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

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

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments