Thanks to visit codestin.com
Credit goes to programming.dev

  • LeFantome
    Codestin Search App
    Codestin Search App
    Codestin Search App
    13
    Codestin Search App
    1
    ·
    7 days ago

    Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

    That said, if course the kernel is a program in the sense that it is a set of machine instructions that make the hardware do what you want.

    And the kernel is designed to talk to hardware and other programs—to be the bridge between the two. It is not something an end-user interacts with directly.

    • GlowHuddy@lemmy.world
      Codestin Search App
      Codestin Search App
      Codestin Search App
      4
      ·
      7 days ago

      Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

      Actually

      • LeFantome
        Codestin Search App
        Codestin Search App
        Codestin Search App
        3
        ·
        6 days ago

        Point taken but….

        UML requires:

        1 - extensive support from the host kernel above and beyond what is required to execute for regular programs

        2 - the guest kernel to be specially compiled to be a UML guest

        In other words, even though UML allows a guest Linux kernel to execute as a process on a host Linux kernel, that Linux kernel is not “just a program” like every other user mode application is.

  • davel [he/him]@lemmy.ml
    Codestin Search App
    Codestin Search App
    English
    Codestin Search App
    63
    Codestin Search App
    1
    ·
    7 days ago

    It’s a program certainly, but “just a program” is a bit misleading because it places it on the same footing as Doom or cat or an Arduino project. Linux is a ring 0 program, which processors give unique treatment.

    • arthropod_shift
      Codestin Search App
      Codestin Search App
      Codestin Search App
      6
      ·
      5 days ago

      Reminds me of not long after I started using Linux. I thought the kernel was “just a program” like cat and tried to run the kernel from the terminal, only to be disappointed when a new kernel in fact did not start running inside the terminal window.

    • ReversalHatchery@beehaw.org
      Codestin Search App
      Codestin Search App
      Codestin Search App
      2
      ·
      5 days ago

      an arch user doesn’t know that!!

      so, that further information is the kernel’s version number. it helps to keep some older versions. but you didn’t set it up to include the version in the filename.

      és egyébként bojler eladó. processzorra cserélném.

    • atzanteol@sh.itjust.works
      Codestin Search App
      Codestin Search App
      English
      Codestin Search App
      10
      ·
      7 days ago

      Different distros vary a bit here, and it will differ if you’re on a system using efi.

      Sometimes /boot isn’t mounted by default (it’s not needed unless you’re updating a kernel). You may be seeing a symlink or placeholder there.

      If you’re using efi there will probably be /boot/EFI or something where your kernel is stored.

      • flying_sheep@lemmy.ml
        Codestin Search App
        Codestin Search App
        Codestin Search App
        3
        ·
        6 days ago

        The reason there’s no version in the filename is simply that Arch just doesn’t keep old kernels around.

        The vmlinuz-linux just gets replaced whenever you update the linux package and the old one is deleted immediately.

          • flying_sheep@lemmy.ml
            Codestin Search App
            Codestin Search App
            Codestin Search App
            1
            ·
            Codestin Search App
            5 days ago

            I agree that it’s be useful, and I think you can just install e.g. the LTS kernel next to the regular one.

            But even without , the arch way isn’t insane either: when something kernel-related breaks, boot with a live system on USB and fix it.

            Case in point: I dimensioned the EFI partition too small, so at some point, me using the zen kernel (which comes with a backup kernel image) messed things up and I couldn’t boot a half-written kernel.

            then I

            1. created and booted a live USB stick,
            2. Mounted my / and /boot partitions manually into /mnt/root/ and /mnt/root/boot
            3. Bind-mounted the live system’s /dev and /proc into /mnt/root/{dev,proc}
            4. chrooted into /mnt/root (resulting in an environment using /dev and /proc from the live system and the rest from my system),
            5. Used regular package manager commands to uninstall the zen kernel and install the regular one, and finally
            6. rebooted into the now working system.

            It’s not crazy, it doesn’t take long, you just need to know how the system works. Upside is that nothing ever breaks permanently, everything is fixable (except hardware failure)

            • atzanteol@sh.itjust.works
              Codestin Search App
              Codestin Search App
              English
              Codestin Search App
              1
              ·
              5 days ago

              But even without , the arch way isn’t insane either: when something kernel-related breaks, boot with a live system on USB and fix it.

              That is not a replacement for “arrow-key down during boot to select an older kernel”.

              I have a server with a RAID card and the kernel at some point introduced a bug with the driver that prevented that server from booting. So I select the older kernel at boot, get the system up and running, mark that kernel as the default until the bug is fixed.

              It’s not crazy, it doesn’t take long, you just need to know how the system works.

              I know how the system works very well thankyouverymuch. But that’s an insane option when having multiple older kernels is so easy to do and common.

    • trolololol@lemmy.world
      Codestin Search App
      Codestin Search App
      Codestin Search App
      1
      ·
      7 days ago

      I liked both this and the following article.

      Pretty cool seeing everything it takes to have a minimalist Linux to boot, and I finally saw how to get started with strace that I’ve been postponing for like half a year.