I’ve been getting into single board computers, and I’ve overwritten my external hard drive twice now trying to flash OS images to SD cards from my Linux PC using dd (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.

  • Christian
    link
    fedilink
    arrow-up
    6
    ·
    4 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.

  • Anachron
    link
    fedilink
    arrow-up
    4
    ·
    4 years ago

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

  • not_a_cop
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    4 years ago

    there’s /Dev/disk-by/

    look into that directory

  • poVoq
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    2 years ago

    deleted by creator

  • xe8
    link
    fedilink
    arrow-up
    3
    ·
    4 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.

  • wick3dr0se
    link
    fedilink
    arrow-up
    1
    ·
    4 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