• 0 Posts
  • 36 Comments
Joined 6 months ago
cake
Cake day: April 7th, 2026

help-circle






  • mlfh@lm.mlfh.orgtoLinux@programming.dev•Linux Laptop Advice
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    Your nvme drive has a partition table, but the backup table isn’t at the end of the disk, and none of the partitions are loaded (only the parent disk, nvme0n1, shows up with lsblk, where it should show nvme0n1p1-3 under it). The partition table at the beginning is readable, but the rest might not be. Looks like it might be a failed/failing disk as you suggested, which luckily is a simple fix.

    Run dmesg and look for errors related to the nvme device (dmesg | grep nvme for a quick filter).







  • mlfh@lm.mlfh.orgtoLinux@programming.dev•Instant boot Linux?
    link
    fedilink
    English
    arrow-up
    23
    ·
    edit-2
    2 months ago

    I was really curious about the possibilities here for a re-usable “saved hibernation state”, and did a lot of digging around and testing in exploration of that idea. Please note that the following is wacky as hell and is not a good way to run a server at all, but is possible:

    1. Set up a swap partition that can fit your full system memory.
    2. Enable swap and set up hibernation (https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Hibernation )
    3. Hibernate your system to the swap partition in the state you want to use as your perpetual checkpoint.
    4. Boot from a live usb, NOT your regular system (when the linux kernel boots with the resume=uuid=xxxx parameter which enables hibernation/resume, it checks that partition for a hibernation signature and immediately clears it, preventing multiple boots of the same hibernated state. You need to preserve this signature).
    5. From the live usb system, copy the swap partition that contains your main system’s hibernated state to an .img file on a filesystem mounted from one of your main disks.
    6. Reboot into your main system.
    7. Set up a scheduled job that triggers every time your system resumes (could use a systemd service with After=hibernate.target and WantedBy=hibernate.target) that does the following:
      1. Disables swap on the swap partition you set up (keeping the resume=uuid=xxxxx kernel parameter that points to it).
      2. Writes the .img file to that partition
    8. Use your system as you want, and power it off when done (do not suspend or hibernated again).

    The next time you boot, the kernel will load the saved hibernation state from the partition specified in the resume= parameter, as if it had just been hibernated instead of halted.

    Now for the downsides:

    • It’s very dangerous to resume a system’s memory to one state with storage in a different state (the official kernel docs for this have a giant red warning banner saying “If you touch anything on disk between suspend and resume… …kiss your data goodbye.” https://docs.kernel.org/power/swsusp.html ).
    • Resuming from hibernation isn’t really that much faster than cold booting a lean system, if speed is your primary goal.
    • The scheduled write job will hit you with a bunch of heavy io every time you boot/resume, probably negating any speed benefits of the whole thing anyway.

    Anyway, now that we know it’s possible, if you really can’t suspend/resume in a non-wacky way I recommend instead just booting normally and trying to make the boot process as fast as possible. A good guide here: https://wiki.archlinux.org/title/Improving_performance/Boot_process

    If booting quickly to a static state is the goal, alpine diskless mode might be a good option: https://wiki.alpinelinux.org/wiki/Diskless_Mode



  • This is a week-old repo with a 163,000-line initial commit, and the test repo that init was dumped in from is filled with hundreds of claude/codex co-author commits. Regardless of whether it’s to hide the ai co-authoring, it’s shady to obscure a repo’s initial work like that.

    I could be wrong, of course, but this smells like yet another overambitious ai-slop project that’ll get abandoned in a month.






  • The one recurring unsolveable problem I run into is not being able to kill a process that’s stuck in D state. If something has broken in the layers between that process and hardware (not uncommon when working with old cheap “box of scraps” hardware, as I like to do), it can get stuck forever and you have to kill the whole system, sometimes forcibly. Not the end of the world, but it sucks when it happens.