linux mint pesistent

4 Comments

  1. Is it possible to assign “poweroff -f” to Power Button?
    Did it with Rufus and only problems are GRUB – you have to hit Enter
    and ” The Shutdown Bug” .

    1. Yes, you can assign shutdown to the power button by editing:

      sudo nano /etc/systemd/logind.conf

      Find or add this line:

      HandlePowerKey=poweroff

      Save, then restart the service:

      sudo systemctl restart systemd-logind

      Avoid using poweroff -f unless absolutely necessary, because it forces shutdown and may cause filesystem problems.

      For the GRUB issue (waiting for Enter), edit:

      sudo nano /etc/default/grub

      Set for example:

      GRUB_TIMEOUT_STYLE=hidden
      GRUB_TIMEOUT=3

      Then run:

      sudo update-grub

      If the PC still doesn’t shut down correctly, it could be an ACPI or hardware driver issue rather than a poweroff problem.

      1. Hi Mike,

        Thank you for your advice.
        Already did that but it seems that it doesn’t work on Linux Mint
        Live USB with persistance made with Rufus 🙁
        At the startup on a PC with BIOS, it starts after 10 seconds or so,
        but on a PC with UEFI i have to hit the Enter button.
        Without taking out the USB and only pressing Enter, PC shuts down
        after some “access beyond end of device” errors…

        Erasmus

        1. Hi Erasmus,

          thank you for the detailed explanation now it’s much clearer.

          What you’re describing is not related to HandlePowerKey, but very likely to how Rufus creates the persistent partition in UEFI mode.

          The message:

          “access beyond end of device”

          usually indicates a persistence overlay or partition size mismatch issue.
          This happens more often with Live USB created via Rufus in UEFI, especially on some firmware implementations.

          A few things you can try:
          1. Recreate the USB using DD mode in Rufus instead of ISO mode.
          2. Or better: create the persistent USB directly from Linux using:
          mkusb (recommended for Mint/Ubuntu persistence)
          3. Make sure Secure Boot is disabled in UEFI.
          4. Check if the USB works correctly in pure UEFI (no CSM/Legacy mixed mode).

          Regarding the GRUB behavior:
          On UEFI systems, GRUB sometimes waits for input if it detects previous boot inconsistencies or persistence filesystem errors. That could explain why pressing Enter triggers the shutdown with errors.

          If possible, I would test the same ISO with:
          • Ventoy
          • or mkusb

          Just to rule out a Rufus persistence issue.

          Let me know what firmware mode you are using (pure UEFI or mixed CSM), and we can narrow it down further.

          Mike

Leave a Reply

Your email address will not be published. Required fields are marked *