this post was submitted on 20 Apr 2021
16 points (100.0% liked)

Linux

49469 readers
629 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'm getting into single board computers, and I've overwritten my external hard drive twice now trying to flash OS images to SD cards (good thing my important data is backed up). To be fair, it's totally my fault, but I'm curious if anyone else has done this.

all 9 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 3 years ago

Yeah, it's very easy to mix up /dev/sdb and /dev/sdc. Did it once and have PTSD from it, I triple-check every time now and still feel uneasy every time.

[–] [email protected] 4 points 3 years ago

Use "lsblk -o UUID,LABEL,NAME" and "/dev/disk/by-uuid/" next time.

[–] [email protected] 4 points 3 years ago

Super paranoid about it, so it never happened to me ;)

[–] [email protected] 4 points 3 years ago

there's /Dev/disk-by/

look into that directory

[–] [email protected] 3 points 3 years ago

Not yet, but I live in fear.

I did make the mistake of mounting a drive while I was in the middle of formatting another one. It just halted the operation so it wasn’t too bad, but I try to be more careful now.

[–] [email protected] 2 points 3 years ago

I just always do an fdisk -l beforehand and doublecheck witch partition/drive I'm writing to

[–] [email protected] 2 points 3 years ago

It never happened to me thankfully, I always check with lsblk first. Otherwise if you usually write distros to USB or SD cards, you should probably use safer tools, some have nice GUI.

[–] [email protected] 1 points 3 years ago

No but when configuring dual-boot, I've deleted the Windows root or boot partition several times. Took me a bit to learn how to boot Windows with systemd-boot. I don't write any ISO's from my PC anymore. I use an app on my Android called EtchDroid. It'll write any Linux ISO I've put through it. You just have to format the SD card in device care first.

I started doing this because I've rendered my system unbootable in the past. I bought an external USB-C to SD card adapter and it's saved me a few times. Now that I built my system and configured it, I don't have this issue. I used to keep multiple ISO's on my Android I could write within seconds and then boot on my PC. dd is great if you have a system you keep ISO's on