this post was submitted on 11 Nov 2023
121 points (96.9% liked)

Linux

47342 readers
1459 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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

top 50 comments
sorted by: hot top controversial new old
[–] DidacticDumbass@lemmy.one 49 points 10 months ago (1 children)

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

[–] Synthead@lemmy.world 8 points 10 months ago* (last edited 10 months ago) (1 children)

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

[–] DidacticDumbass@lemmy.one 3 points 10 months ago

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

[–] Chais@sh.itjust.works 48 points 10 months ago* (last edited 10 months ago) (6 children)

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.
[–] CaptDust@sh.itjust.works 24 points 10 months ago (1 children)

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

load more comments (1 replies)
[–] cmnybo@discuss.tchncs.de 7 points 10 months ago (1 children)

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

load more comments (1 replies)
[–] DidacticDumbass@lemmy.one 4 points 10 months ago

Oh, am I talking to myself? Hah.

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

[–] techwithjake@lemm.ee 3 points 10 months ago* (last edited 10 months ago)

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.

[–] MonkderZweite@feddit.ch 3 points 10 months ago* (last edited 10 months ago)

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

load more comments (1 replies)
[–] mateomaui@reddthat.com 28 points 10 months ago (1 children)

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.

[–] DidacticDumbass@lemmy.one 14 points 10 months ago (1 children)

That is is a special kind grieving.

[–] mateomaui@reddthat.com 10 points 10 months ago (1 children)

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.

[–] DidacticDumbass@lemmy.one 12 points 10 months ago (1 children)

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.

[–] mateomaui@reddthat.com 5 points 10 months ago (1 children)

Yeah, we definitely had fun at his expense for a while after that.

[–] DidacticDumbass@lemmy.one 4 points 10 months ago (1 children)

I would be mortified. He seems shameless though, hah.

[–] mateomaui@reddthat.com 5 points 10 months ago (1 children)

He was in community theater. What shame?

[–] DidacticDumbass@lemmy.one 5 points 10 months ago

Ah. I was in theater tech. No shame to find anywhere.

[–] Synthead@lemmy.world 11 points 10 months ago (1 children)

Make a donation to the testdisk author!

[–] DidacticDumbass@lemmy.one 8 points 10 months ago

I will! These programs are amazing.

[–] mesamunefire@lemmy.world 7 points 10 months ago (1 children)

I accidentally formatted a drive with a Bitcoin wallet on it. Back a number of years ago. Fun times.

[–] DidacticDumbass@lemmy.one 3 points 10 months ago

Oof. I mean... yes. Oof.

[–] Pantherina@feddit.de 7 points 10 months ago (2 children)

Installing GNOME on Kubuntu I think, hahaaha.

[–] DidacticDumbass@lemmy.one 3 points 10 months ago (1 children)

DEs get so wonky if you try to change them. I wish it was easier to compartmentalize an envirionment.

[–] Pantherina@feddit.de 3 points 10 months ago (8 children)

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.

[–] bitwolf@lemmy.one 3 points 10 months ago (1 children)
load more comments (1 replies)
load more comments (7 replies)
load more comments (1 replies)
[–] Starbuck@lemmy.world 7 points 10 months ago (1 children)

It sounds like you need to learn about disk forensics before you go any further. Check out FTK

[–] DidacticDumbass@lemmy.one 6 points 10 months ago (5 children)

Hah, I don't think I illustrated how dumb I am. I deleted the partitions already.

[–] Starbuck@lemmy.world 8 points 10 months ago (1 children)

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.

[–] DidacticDumbass@lemmy.one 6 points 10 months ago

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.

[–] static_dragon@lemmy.zip 4 points 10 months ago (1 children)

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

[–] DidacticDumbass@lemmy.one 3 points 10 months ago

Good tip! I... would maybe have realized that would worsen the situation.

[–] Starbuck@lemmy.world 3 points 10 months ago (1 children)

Also, all of us have done things because we didn’t know better. The only dumb thing to do here is to not learn how to fix this. Try and fail, so next time you know how it works and can do better.

load more comments (1 replies)
load more comments (2 replies)
[–] ininewcrow@lemmy.ca 7 points 10 months ago (1 children)

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.

load more comments (1 replies)
[–] Auli@lemmy.ca 7 points 10 months ago (1 children)

Expecting things to be different.

load more comments (1 replies)
[–] pixelscript@lemmy.ml 6 points 10 months ago (2 children)

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.

[–] hperrin@lemmy.world 6 points 10 months ago

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.

[–] jcg@halubilo.social 4 points 10 months ago* (last edited 10 months ago)

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.

[–] BolexForSoup@kbin.social 6 points 10 months ago (3 children)

I’m concerned at the number of people who boot new OS’s without backing up their computer.

load more comments (3 replies)
[–] backhdlp@lemmy.blahaj.zone 5 points 10 months ago (4 children)

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.

[–] xkforce@lemmy.world 3 points 10 months ago (3 children)

Unless you meant to destroy all of that data, that was unintentional not intentional.

load more comments (3 replies)
load more comments (3 replies)
[–] mateomaui@reddthat.com 4 points 10 months ago (5 children)

Reading this thread makes me appreciate Macrium Reflect and my 64TB worth of redundant backup drives even more.

load more comments (5 replies)
[–] popekingjoe@lemmy.world 4 points 10 months ago (1 children)

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.

[–] DidacticDumbass@lemmy.one 3 points 10 months ago

Wow. If I could teleport you some cake I would invite you to take it. That is a lot. I cannot imagine how long it took to redownload.

[–] poissonDistribution@lemmy.world 4 points 10 months ago (1 children)

Correct. We are used to look at computers like if they're tools. Actually they're environments.

[–] flashgnash@lemm.ee 7 points 10 months ago

I look at mine like they're toys lol

[–] mex@sopuli.xyz 3 points 10 months ago (1 children)

dd'ed an ISO onto the system drive instead of a USB stick. Luckily, the first partition was the Windows one, so not too important; and the rest I recovered from the GPT backup table.

[–] DidacticDumbass@lemmy.one 3 points 10 months ago

Nice! I need to learn recovery methods. I am so used to scorch earthing an install when it goes wrong, which is not useful.

load more comments
view more: next ›