this post was submitted on 02 Aug 2024
596 points (98.4% liked)

linuxmemes

21341 readers
1288 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     

    It was also actually pretty fun!

    you are viewing a single comment's thread
    view the rest of the comments
    [–] aMockTie 28 points 3 months ago (4 children)

    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 32 points 3 months ago (1 children)

    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 6 points 3 months 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!

    [–] [email protected] 10 points 3 months ago (1 children)

    You could use screen or tmux for a persistent terminal session.

    [–] aMockTie 11 points 3 months ago

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

    [–] InnerScientist 2 points 3 months 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.

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

    Maybe run ssh on 2 different ports?