THANK YOU EVERYONE who recommended PHOTOREC! This community is fantastic.
You might be able to rebuild your partitions with testdisk, too. Work from a backup.
Neat. I will try that once photorec finishes its search in like a month from now.
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:
- Don't do this sort of thing in the middle of the night, when you're tired and should be sleeping.
dd
is nicknamed 'disk destroyer' for good reason.
- Disconnect all other drives
When using dd, check the command before pressing enter, then check it again for good measure.
Oh, am I talking to myself? Hah.
Yeah, I wish I had all the stuff I torrented in high school. Lost treasure.
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.
... no use in dd to write an image to disk. Just use cat/cp/pv...
dd is a scalpell, not a shovel.
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
I guess I can try it, since I did not like, wipe everything.
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.
That is is a special kind grieving.
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.
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.
Yeah, we definitely had fun at his expense for a while after that.
I would be mortified. He seems shameless though, hah.
He was in community theater. What shame?
Ah. I was in theater tech. No shame to find anywhere.
Make a donation to the testdisk author!
I will! These programs are amazing.
I accidentally formatted a drive with a Bitcoin wallet on it. Back a number of years ago. Fun times.
Installing GNOME on Kubuntu I think, hahaaha.
DEs get so wonky if you try to change them. I wish it was easier to compartmentalize an envirionment.
Its possible using homedir backup etc. Or on Fedora Atomic simply switching desktops. But yeah Desktops are all over the place, having a ~/.kde folder where EVERYTHING is stored would be great.
I got started in Linux about 15 years ago. I'm not skilled nor a techie but knowledgeable enough to make things work. After running endless cracked windows machines I switched to Linux and started distro hopping. But I didn't have enough money at the time to afford a lot of hard drive space.
I remember going from one distro to another while trying to transfer a couple of GBs worth of work on the same drive. Two GB of data was a big deal to me at the time. At one point late one night after about the tenth distro attempt, I wiped an entire drive worth of my unbacked up work. Worst moment of digital loss I ever had.
I've kept double triple and quadruple backups since then .... and I still worry about losing data.
It sounds like you need to learn about disk forensics before you go any further. Check out FTK
Hah, I don't think I illustrated how dumb I am. I deleted the partitions already.
Unless it was encrypted, it prob doesn’t matter. The partition table is just the road map that points to the houses (files). A tool like FTK or PhotoRec goes byte by byte to find the files and figure out what they are. You won’t have file names, but the data might still be there.
I got it running now! I did not have that much to recovery, so everything will fit in home. Mostly word files, PDFs, and pictures. Few movies and music.
Oh, I’ve nuked partitions in the past before, and was able to recover using photorec, when doing it, just make sure you don’t save the files to the drive you’re running recovery on
I’m concerned at the number of people who boot new OS’s without backing up their computer.
Thank you for your concern, hah!
Yeah, I admit the mistake happened long before last night.
Appreciate the good humor on your part! I’m just being a bit tongue in cheek but PSA: everyone should follow 3-2-1 backup protocol! You’ll never lose your data again!
3 backups
2 formats
1 off-site
So I recommend everyone get 2 decent HDD’s (2nd is clone of 1st) and 1TB of cloud storage. Most services are under $100/yr and let me tell you, you’ll want to spend 5x that to save half of what you lose without it. It’s easier and cheaper than ever to follow this system.
I put my home directory on another partition, because I heard very early on that it can better facilitate distro hopping. That is not the stupid part, that's actually good advice.
The stupid part was assuming that Linux users are identified by name, and that as long as I create a user with the same name as the one on my previous install, things would Just Work.
Im reality, Linux users are integer IDs under the hood. And in my original system, my current user at the time was not the first user I had created on that system. Thus, when I set up my new OS, mounted the home partition, and set the first user to have the same name, I was immediately unable to log in. The name match meant I was trying to read my home dir, but the UID mismatch was telling me I had no permission to read it. I was feeling ballsy with the install and elected to not enable the root user, so I had an effectively bricked OS right out of the box.
I'm sure there was some voodoo I could have done to recover it on that attempt, but I just said screw it and reinstalled.
There is a way to recover it. You can use a root shell aka recovery shell (usually available through your GRUB menu) to change the permissions on your home directory. But just reinstalling was probably easier anyway.
All you really would've need to do is update the ownership via root user, which you can actually do from the installer. Kinda funny cause you already went through the process of mounting and running the installer, so you were already there.
I wiped my drive with a lot of non-backed-up data on it intentionally because the Fedora installer was too confusing. Lost among other things my Celeste and Minecraft saves, a lot of images, and other stuff with sentimental value.
I've done rm -rf /
twice on Fedora installs.
I think I have done that a couple of times intentionally. Seems like one of those cognitive dangers that is harmful because you know it.
Correct. We are used to look at computers like if they're tools. Actually they're environments.
I look at mine like they're toys lol
I once nuked a 6TB drive full of Steam games. Started a full format of the drive. Didn't realize until it was too late.
Reading this thread makes me appreciate Macrium Reflect and my 64TB worth of redundant backup drives even more.
Linux
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