Skip to content

cautionary tale: wiped wrong disk because of swapped device names. #1124

@midgethoen

Description

@midgethoen

Not sure where to share this, but im hoping i can prevent some future idiot like myself from having a headache...

the story:

  • messing around with nixos because i want to learn
  • lets use disko. why not
  • immediatly set up using luks
  • some reboots later: cant unlock luks
  • cleverly decides to reformat and reinstall using same disk-config.nix
  • random luks ulocking problems persist
  • ...fastforward to now...
  • discovers ive likely formatted other (windows) nvme, because /dev/nvme0 /dev/nvme1 are non-deterministic....

blargh!

I dont expect any sympathy, its clasic fafo, but maybe a small mention would be helpfull to someone else. im willing to make PR but im currently still trying to reproduce wether or not the initial luks unlocking problem was because systemd-boot was looking at the wrong drive, causing me to attempt reinstall. but this is new to me, so any quick pointers are welcome.

cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions