It was also actually pretty fun!

  • aMockTie@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    1 month ago

    What happens if the SSH session closes before dd finishes? Sounds pretty badass but I don’t think I would trust this approach in prod lol

    • cm0002@lemmy.worldOP
      link
      fedilink
      arrow-up
      32
      ·
      1 month ago

      Well the 1 SSH session bit was for dramatic meme-effect lol, you can actually connect back without issue (at least it did for me) so worst case if you weren’t working in tmux you’d just have to start dd again

      Worst worst case, you’d just end up back where you were probably heading before anyways, KVM/IPMI

      • aMockTie@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 month ago

        Sure, I suppose as long as sshd is up and running in the ramdisk environment (which you mentioned in another comment, along with all other services) you could always reconnect. Very neat and clever!

      • aMockTie@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        1 month ago

        True, but I was more thinking about the issue of reconnecting in general when you just nuked sshd.

    • InnerScientist@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      As long as you only copy off the disk, you can just reboot and the whole system in RAM vanishes and the normal system boots again for the second try.