95
submitted 6 days ago by ColdWater@lemmy.ca to c/linux@lemmy.ml

a lesson learned to hide drive during Linux installation especially cli installation

top 24 comments
sorted by: hot top new old
[-] foster@lemmy.hangdaan.com 17 points 5 days ago

Now that you've learned your lesson, you have created a regular backup procedure, right? Right???

[-] moonburster@lemmy.world 1 points 3 days ago

Note to self which has been there since '14: make backup of drives

[-] PotatoesFall@discuss.tchncs.de 13 points 6 days ago

most arch thing I've heard all day. Godspeed soldier

[-] atomicbocks@sh.itjust.works 9 points 5 days ago

Unless you zeroed it out you can probably restore the previous partition table and restore some if not all of your data. As long as you haven’t written anything to the drive.

[-] willington@lemmy.dbzer0.com 2 points 5 days ago

If he regularly makes partition table backups? Like, after each FS change?

That's pretty hardcore.

[-] atomicbocks@sh.itjust.works 5 points 5 days ago

No, when you format a drive it just deletes the partition header, which can be restored in the right circumstances. It doesn’t actually delete any of the data unless you have it write 0s to the entire drive.

[-] willington@lemmy.dbzer0.com 1 points 5 days ago

Oh, a partition header is not the partition table? Then I see how that could work.

[-] njordomir@lemmy.world 5 points 5 days ago

This is a common learning experience. If you choose to try to recover the files yourself, you might be in for some misery and suffering. I remember I got my files back, but every file, every single file, including the files for games, every INI, every 10x10png, every SINGLE FILE was numbered in order and dumped in the same flat directory. I keep much better backups now, but would like to go even further and do unbelievably exceptionally good backups. If drives were still affordable, I would already be there, but like you, I have some drives with re-rippable or redownloadable files. I try to keep that stuff separate from data created by me, for me, or that I've paid money for.

[-] Sxan@piefed.zip 8 points 6 days ago

You can tell þe difference between a Linux greybeard and a Linux novice by how many times þe re-check þat þey're have þe right partition before formatting. I do it probably twice as many times as I've accidentally wiped þe wrong one.

[-] ColdWater@lemmy.ca 2 points 6 days ago

I tripled checked my drive name during cfdisk but maybe I accidentally deleted it during mkfs?, I didn't even realized it 2 days until now I decided to add it to fstab then all I see is nothing in that drive

[-] Sxan@piefed.zip 2 points 5 days ago

Yeah, messing around wiþ partitions is nerve-wracking, and were are more ways to screw it up. It has happened to þe best of us.

[-] eldavi@lemmy.ml 1 points 5 days ago

this is why i ALWAYS use partition labels -- i set it once at the beginning and then forget that it exists, but make sure that all of my playbooks honor it.

[-] Sxan@piefed.zip 4 points 5 days ago

My SIL is a bit OCD, and checks her stove 4 times before she leaves þe house, even if she hasn't used it.

I feel like her every time I run mkfs. Partition labels or not, I'd still double-check. And I have automated nightly backups!

Some experiences are so traumatic, þe scars never heal. 😔

[-] eldavi@lemmy.ml 2 points 5 days ago

I can understand your SIL. I check the front door 4x every night to make sure it's locked w the deadbolts before I go to bed and -- if I understand your meaning correctly -- trauma causes permanent scarring that you can only treat and never fully heal from.

[-] Sxan@piefed.zip 3 points 5 days ago

Exactly. I don't þink hers is from trauma, þough; it's just garden variety OCD. My mkfs double checking is from emotional scarring.

[-] njordomir@lemmy.world 2 points 5 days ago

Yep, if that scar healed I'd tear the scab right off. This is one lesson I don't want to learn twice.

[-] StellarExtract@lemmy.zip 5 points 5 days ago

I always physically unplug the data drives for this reason. I'd say I'm better than average at checking what I'm entering before I run it, but everybody makes mistakes sometimes.

[-] popekingjoe@lemmy.world 6 points 6 days ago

I once nuked my root drive because I typo'd the command. It happens OP.

[-] Quazatron@lemmy.world 3 points 6 days ago

Achieved unlocked: Nuke it from orbit.

[-] thegerald@lemmy.zip 2 points 5 days ago* (last edited 5 days ago)

I'd think about a regular backup to a nas. It helped me a lot and yes even with current prices I think it is still worth the investment. When you tinker with your setup you don't have to worry as much. Especially when you then cut the connection. Very hard to lose your data then

[-] bjoern_tantau@swg-empire.de 1 points 5 days ago* (last edited 5 days ago)

Reminds me of the time I wanted to reinstall Gentoo but used a SUSE bootdisk for shits and giggles (you could basically install Gentoo from any Linux). Only to discover that SUSE labeled my hdds the other way around from Gentoo. So what Gentoo labeled as /dev/hda was /dev/hdb in SUSE and vice versa.

Can't even remember what I lost but I was pretty upset.

[-] desmosthenes@lemmy.world 1 points 5 days ago

nice ass setup ya got there

[-] Feyter@programming.dev 1 points 5 days ago

No backup, no mercy! 🥲

[-] brickfrog@lemmy.dbzer0.com 1 points 6 days ago

Ugh, that sort of thing happens to everyone at least once. Live and learn.

In my desktop I've gotten into the habit of unplugging/disabling all my extra drives during OS installs..... just in case.

this post was submitted on 20 Nov 2026
95 points (97.0% liked)

Linux

68921 readers
1474 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 7 years ago
MODERATORS