this post was submitted on 02 Aug 2024
25 points (100.0% liked)

linuxmemes

24211 readers
1381 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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.
  • 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, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    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 remove France.

    founded 2 years ago
    MODERATORS
     

    It was also actually pretty fun!

    top 18 comments
    sorted by: hot top controversial new old
    [–] [email protected] 5 points 8 months ago (2 children)

    Give me more of this and less of the politics. This is what I come to Lemmy for.

    [–] [email protected] 2 points 8 months ago

    subscribe to the linux comms and not to the politics comms

    [–] [email protected] 0 points 8 months ago (1 children)
    [–] [email protected] 1 points 8 months ago
    [–] [email protected] 4 points 8 months ago* (last edited 8 months ago)

    i had experimented with kexec and takeover.sh to install a distro that was not available by my provider.

    it resulted in some scripts i now (triggered by this thread) have published (in a nonready state):

    http://github.com/tobinq/goaround

    the scripts may be in bad shape but i successfully changed one preinstalled ubuntu to a devuan with what is in these scripts. however i didn't work on them for month now and am not sure about that last state.. so its experimental only.

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

    I also vote for a writeup. This sounds awesome!

    [–] [email protected] 1 points 8 months ago* (last edited 8 months ago) (2 children)

    Impressive, sounds like magic, tbh! You know any tutorials?

    [–] [email protected] 4 points 8 months ago (2 children)

    Not really, I pulled it together from a bunch of random posts lol

    Maybe I should write one, but in essence you:

    • Stop all non-OS essential services

    • Create a filesystem in a chunk of RAM

    • Pull essential OS files from the installed OS into it recreating needed directories (Though you could probably just use a tiny pre-built distro but meh)

    • Pivot root into it

    • Reload services (when they restart they'll be restarted in the context of where you pivot rooted, prior they're still running under the context of the installed OS)

    • Unmount the boot drive

    • Then do what ever you need to do

    • ???

    • Profit

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

    Imagining this process, despite having never done 50% of the steps on the list, makes my brain imagine this: Turning a sphere outside in

    [–] [email protected] 2 points 8 months ago (1 children)

    How exactly so you pivot root? Simply chroot or something more involved?

    [–] [email protected] 3 points 8 months ago (2 children)

    chroot isn't enough, you need "real" pivot_root

    chroot just changes the shells root point, pivot_root actually changes the root mount point and enables this trick to work

    [–] [email protected] 2 points 8 months ago

    This is god-tier technique, kudos

    [–] [email protected] 1 points 8 months ago
    [–] [email protected] 0 points 8 months ago (1 children)

    Yeah, I'd love to see a write up on this to follow.Sounds like useful practice in the lab if nothing else.

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

    i experimented with this some time ago, see my post here: https://lemmy.ml/post/18706002/12772832

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

    @cm0002
    I need that!

    Is there a tutorial for that? I have an Old outdated Synology nas that I wish to replace the system with an Open Media Vault.

    [–] [email protected] 0 points 8 months ago (1 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

    [–] [email protected] 1 points 8 months 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