insert module during bootup

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Few modules are inserted during the startup of the kernel.



systemd-modules-load[367]: Inserted module 'lp'$
systemd-modules-load[367]: Inserted module 'ppdev'$
systemd-modules-load[367]: Inserted module 'parport_pc'$
systemd-modules-load[367]: Inserted module 'coretemp'$


I would like to additionally include the ahci module. How is it possible? This is because I want to test why my hard disk is not being recognised and hence the boot process hangs, unfortunately without an error. This is my related problem -



https://superuser.com/questions/1281652/what-is-smp-and-what-role-does-it-have-while-booting-a-computer



Edit ( was too long for a comment )
The distribution in question is Ubuntu Mate 16.04 ( 64 bit ). However, I tried with Knoppix with no luck.



I only see the the above four modules in the boot log messages. And then few more messages and then the message about freeing SMP alternatives and then it hangs.



In a working boot environment, just after freeing SMP alternative message, I see that the hard disk is recognised. After further digging in internet, I found out that loading the ahci driver in the initramfs might solve the problem.



In all of this, strangely, the process runs fine during the installation of the distribution. Only at the time of rebooting, the distribution hangs.



According to Wikipedia -




Installers for Linux distributions typically run entirely from an
initramfs, as they must be able to host the installer interface and
supporting tools before any persistent storage has been set up.




Maybe thats the reason that the installation works, but the reboot fails?
Would be great, if someone can give some hints, what I should do next.







share|improve this question


























    up vote
    0
    down vote

    favorite












    Few modules are inserted during the startup of the kernel.



    systemd-modules-load[367]: Inserted module 'lp'$
    systemd-modules-load[367]: Inserted module 'ppdev'$
    systemd-modules-load[367]: Inserted module 'parport_pc'$
    systemd-modules-load[367]: Inserted module 'coretemp'$


    I would like to additionally include the ahci module. How is it possible? This is because I want to test why my hard disk is not being recognised and hence the boot process hangs, unfortunately without an error. This is my related problem -



    https://superuser.com/questions/1281652/what-is-smp-and-what-role-does-it-have-while-booting-a-computer



    Edit ( was too long for a comment )
    The distribution in question is Ubuntu Mate 16.04 ( 64 bit ). However, I tried with Knoppix with no luck.



    I only see the the above four modules in the boot log messages. And then few more messages and then the message about freeing SMP alternatives and then it hangs.



    In a working boot environment, just after freeing SMP alternative message, I see that the hard disk is recognised. After further digging in internet, I found out that loading the ahci driver in the initramfs might solve the problem.



    In all of this, strangely, the process runs fine during the installation of the distribution. Only at the time of rebooting, the distribution hangs.



    According to Wikipedia -




    Installers for Linux distributions typically run entirely from an
    initramfs, as they must be able to host the installer interface and
    supporting tools before any persistent storage has been set up.




    Maybe thats the reason that the installation works, but the reboot fails?
    Would be great, if someone can give some hints, what I should do next.







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Few modules are inserted during the startup of the kernel.



      systemd-modules-load[367]: Inserted module 'lp'$
      systemd-modules-load[367]: Inserted module 'ppdev'$
      systemd-modules-load[367]: Inserted module 'parport_pc'$
      systemd-modules-load[367]: Inserted module 'coretemp'$


      I would like to additionally include the ahci module. How is it possible? This is because I want to test why my hard disk is not being recognised and hence the boot process hangs, unfortunately without an error. This is my related problem -



      https://superuser.com/questions/1281652/what-is-smp-and-what-role-does-it-have-while-booting-a-computer



      Edit ( was too long for a comment )
      The distribution in question is Ubuntu Mate 16.04 ( 64 bit ). However, I tried with Knoppix with no luck.



      I only see the the above four modules in the boot log messages. And then few more messages and then the message about freeing SMP alternatives and then it hangs.



      In a working boot environment, just after freeing SMP alternative message, I see that the hard disk is recognised. After further digging in internet, I found out that loading the ahci driver in the initramfs might solve the problem.



      In all of this, strangely, the process runs fine during the installation of the distribution. Only at the time of rebooting, the distribution hangs.



      According to Wikipedia -




      Installers for Linux distributions typically run entirely from an
      initramfs, as they must be able to host the installer interface and
      supporting tools before any persistent storage has been set up.




      Maybe thats the reason that the installation works, but the reboot fails?
      Would be great, if someone can give some hints, what I should do next.







      share|improve this question














      Few modules are inserted during the startup of the kernel.



      systemd-modules-load[367]: Inserted module 'lp'$
      systemd-modules-load[367]: Inserted module 'ppdev'$
      systemd-modules-load[367]: Inserted module 'parport_pc'$
      systemd-modules-load[367]: Inserted module 'coretemp'$


      I would like to additionally include the ahci module. How is it possible? This is because I want to test why my hard disk is not being recognised and hence the boot process hangs, unfortunately without an error. This is my related problem -



      https://superuser.com/questions/1281652/what-is-smp-and-what-role-does-it-have-while-booting-a-computer



      Edit ( was too long for a comment )
      The distribution in question is Ubuntu Mate 16.04 ( 64 bit ). However, I tried with Knoppix with no luck.



      I only see the the above four modules in the boot log messages. And then few more messages and then the message about freeing SMP alternatives and then it hangs.



      In a working boot environment, just after freeing SMP alternative message, I see that the hard disk is recognised. After further digging in internet, I found out that loading the ahci driver in the initramfs might solve the problem.



      In all of this, strangely, the process runs fine during the installation of the distribution. Only at the time of rebooting, the distribution hangs.



      According to Wikipedia -




      Installers for Linux distributions typically run entirely from an
      initramfs, as they must be able to host the installer interface and
      supporting tools before any persistent storage has been set up.




      Maybe thats the reason that the installation works, but the reboot fails?
      Would be great, if someone can give some hints, what I should do next.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 at 16:35

























      asked Jan 4 at 11:34









      infoclogged

      299111




      299111




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          When using systemd, you can list modules to load during boot in a file in /etc/modules-load.d, with a .conf extension. See the modules-load.d documentation for details.



          Before systemd, you’d list modules in /etc/modules to load them during boot.



          You might need to ensure the modules end up in your initramfs too; how to do that will depend on your distribution. I’d expect ahci to be available already though.






          share|improve this answer




















          • can you please have a look at the edit?
            – infoclogged
            Jan 4 at 13:51










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414751%2finsert-module-during-bootup%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          When using systemd, you can list modules to load during boot in a file in /etc/modules-load.d, with a .conf extension. See the modules-load.d documentation for details.



          Before systemd, you’d list modules in /etc/modules to load them during boot.



          You might need to ensure the modules end up in your initramfs too; how to do that will depend on your distribution. I’d expect ahci to be available already though.






          share|improve this answer




















          • can you please have a look at the edit?
            – infoclogged
            Jan 4 at 13:51














          up vote
          0
          down vote













          When using systemd, you can list modules to load during boot in a file in /etc/modules-load.d, with a .conf extension. See the modules-load.d documentation for details.



          Before systemd, you’d list modules in /etc/modules to load them during boot.



          You might need to ensure the modules end up in your initramfs too; how to do that will depend on your distribution. I’d expect ahci to be available already though.






          share|improve this answer




















          • can you please have a look at the edit?
            – infoclogged
            Jan 4 at 13:51












          up vote
          0
          down vote










          up vote
          0
          down vote









          When using systemd, you can list modules to load during boot in a file in /etc/modules-load.d, with a .conf extension. See the modules-load.d documentation for details.



          Before systemd, you’d list modules in /etc/modules to load them during boot.



          You might need to ensure the modules end up in your initramfs too; how to do that will depend on your distribution. I’d expect ahci to be available already though.






          share|improve this answer












          When using systemd, you can list modules to load during boot in a file in /etc/modules-load.d, with a .conf extension. See the modules-load.d documentation for details.



          Before systemd, you’d list modules in /etc/modules to load them during boot.



          You might need to ensure the modules end up in your initramfs too; how to do that will depend on your distribution. I’d expect ahci to be available already though.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 4 at 11:55









          Stephen Kitt

          142k22308371




          142k22308371











          • can you please have a look at the edit?
            – infoclogged
            Jan 4 at 13:51
















          • can you please have a look at the edit?
            – infoclogged
            Jan 4 at 13:51















          can you please have a look at the edit?
          – infoclogged
          Jan 4 at 13:51




          can you please have a look at the edit?
          – infoclogged
          Jan 4 at 13:51












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f414751%2finsert-module-during-bootup%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?