Why does systemd wait for a disk not present in `fstab`?











up vote
1
down vote

favorite












My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:



(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.


This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?



I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.










share|improve this question
























  • Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
    – Hauke Laging
    Oct 29 '17 at 11:39










  • @HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
    – emu
    Oct 29 '17 at 20:10

















up vote
1
down vote

favorite












My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:



(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.


This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?



I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.










share|improve this question
























  • Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
    – Hauke Laging
    Oct 29 '17 at 11:39










  • @HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
    – emu
    Oct 29 '17 at 20:10















up vote
1
down vote

favorite









up vote
1
down vote

favorite











My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:



(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.


This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?



I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.










share|improve this question















My system takes exactly 95 seconds to boot: 5 seconds actual boot and 90 seconds waiting for a nonexistent drive:



(...boot.log...)
A start job is running for dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device (1min 29s / 1min 30s)
Timed out waiting for device dev-disk-byx2duuid-6bbb4ed8x2d53eax2d4603x2db4f7x2d1205c7d24e19.device.


This device is not listed in fstab, and I did not even manage to find the piece of hardware (usb disks etc.). Where can it come from and how can I disable it?



I have ecryptfs on my home directory, and I have manually disabled swap in order to save my SSD disk.







boot systemd fstab uuid ecryptfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 29 '17 at 20:26

























asked Oct 29 '17 at 11:15









emu

1064




1064












  • Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
    – Hauke Laging
    Oct 29 '17 at 11:39










  • @HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
    – emu
    Oct 29 '17 at 20:10




















  • Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
    – Hauke Laging
    Oct 29 '17 at 11:39










  • @HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
    – emu
    Oct 29 '17 at 20:10


















Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
– Hauke Laging
Oct 29 '17 at 11:39




Have you made changes to your hardware i.e. copied the system do another disk drive? I had similar problems with a reference in the initrd. Does grep -r 6bbb4ed8 /etc find anything? Maybe the problem goes away if you rebuild the initrd. Perhaps systemd-analyze critical-chain gives you information where to find the reference.
– Hauke Laging
Oct 29 '17 at 11:39












@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10






@HaukeLaging, the grep solved it! I can't believe I didn't find it earlier. I thought I had tried everything. Thanks!
– emu
Oct 29 '17 at 20:10












3 Answers
3






active

oldest

votes

















up vote
1
down vote













Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).






share|improve this answer




























    up vote
    0
    down vote



    accepted










    The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:



    cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64


    Originally I had disabled this swap partition in fstab only, which is not enough.



    Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.






    share|improve this answer























    • Did you read the systemd-cryptsetup(8) man page?
      – Ignacio Vazquez-Abrams
      Nov 7 '17 at 18:19


















    up vote
    0
    down vote













    In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.



    grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.



    I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).



    Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).






    share|improve this answer








    New contributor




    Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.


















      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: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      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%2f401198%2fwhy-does-systemd-wait-for-a-disk-not-present-in-fstab%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).






      share|improve this answer

























        up vote
        1
        down vote













        Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).






          share|improve this answer












          Use grep -r 6bbb4ed8 /etc to find any references to that device and rebuild the initrd afterwards (mkinitrd).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 29 '17 at 20:19









          Hauke Laging

          55.1k1283130




          55.1k1283130
























              up vote
              0
              down vote



              accepted










              The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:



              cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64


              Originally I had disabled this swap partition in fstab only, which is not enough.



              Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.






              share|improve this answer























              • Did you read the systemd-cryptsetup(8) man page?
                – Ignacio Vazquez-Abrams
                Nov 7 '17 at 18:19















              up vote
              0
              down vote



              accepted










              The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:



              cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64


              Originally I had disabled this swap partition in fstab only, which is not enough.



              Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.






              share|improve this answer























              • Did you read the systemd-cryptsetup(8) man page?
                – Ignacio Vazquez-Abrams
                Nov 7 '17 at 18:19













              up vote
              0
              down vote



              accepted







              up vote
              0
              down vote



              accepted






              The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:



              cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64


              Originally I had disabled this swap partition in fstab only, which is not enough.



              Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.






              share|improve this answer














              The file /etc/crypttab is a (less known) counterpart of fstab for managing crypto filesystems. The default installation of Ubuntu configured an encrypted swapfile:



              cryptswap1 UUID=6bbb4ed8-53ea-4603-b4f7-1205c7d24e19 /dev/urandom swap,offset=1024,cipher=aes-xts-plain64


              Originally I had disabled this swap partition in fstab only, which is not enough.



              Anybody who knows more about the purpose and inner workings of /etc/crypttab is welcome to extend this vague self-answer of mine.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 7 '17 at 18:14

























              answered Oct 29 '17 at 20:19









              emu

              1064




              1064












              • Did you read the systemd-cryptsetup(8) man page?
                – Ignacio Vazquez-Abrams
                Nov 7 '17 at 18:19


















              • Did you read the systemd-cryptsetup(8) man page?
                – Ignacio Vazquez-Abrams
                Nov 7 '17 at 18:19
















              Did you read the systemd-cryptsetup(8) man page?
              – Ignacio Vazquez-Abrams
              Nov 7 '17 at 18:19




              Did you read the systemd-cryptsetup(8) man page?
              – Ignacio Vazquez-Abrams
              Nov 7 '17 at 18:19










              up vote
              0
              down vote













              In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.



              grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.



              I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).



              Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).






              share|improve this answer








              New contributor




              Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                up vote
                0
                down vote













                In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.



                grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.



                I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).



                Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).






                share|improve this answer








                New contributor




                Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.



                  grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.



                  I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).



                  Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).






                  share|improve this answer








                  New contributor




                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  In my case, Dell Latitude laptop with both boot SSD and data HDD; this latter developed bad sectors, so I eventually backed up data and physically removed the HDD, experiencing at the next boot the 90" timeout for the missing HDD.



                  grep -r /etc as per Hauke's suggestion turned up the entry in /etc/crypttab corresponding to the HDD UUID (per /dev/disk/by-uuid) which systemd was looking for.



                  I then remembered adding that line years ago to allow entering a single LUKS password for both disks, pointing the HDD decryption to a keyfile on the root filesystem (which was getting decrypted upon boot with my entering of its LUKS password - see crypttab(5) if you're interested in a multi-disk single-LUKS password setup).



                  Commenting that /etc/crypttab line out brought back the quick SSD boot speed (thanks!).







                  share|improve this answer








                  New contributor




                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Nov 22 at 9:39









                  Alessandro.S

                  1




                  1




                  New contributor




                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Alessandro.S is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401198%2fwhy-does-systemd-wait-for-a-disk-not-present-in-fstab%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      List directoties down one level, excluding some named directories and files

                      list processes belonging to a network namespace

                      list systemd RuntimeDirectory mounts