Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    duetpi will not run on usb ssd - raspbian will

    Scheduled Pinned Locked Moved
    Firmware installation
    3
    12
    451
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chrishammundefined
      chrishamm administrators @jhalewood
      last edited by

      @jhalewood The main difference between the standard RasPi OS and DuetPi is AppArmor. You could try to disable that (remove lsm=apparmor from the cmdline and disable the apparmor service) and check if it boots up correctly then.

      I can't see any obvious reason why it starts the emergency shell but perhaps a more verbose boot screen shows more (remove quiet and splash from the cmdline).

      Duet software engineer

      jhalewoodundefined 1 Reply Last reply Reply Quote 0
      • jhalewoodundefined
        jhalewood @chrishamm
        last edited by

        @chrishamm i forgot to mention i tried disabling apparmor, didn't help

        but i have reflashed the ssd and edited cmdline to remove apparmor, quiet, and splash, and re-did first boot, reboot, enter to pass energency mode, and exported journal

        this file contains the entire 25000 lines of journalctl

        have a look at line 608

        all_logs.txt

        1 Reply Last reply Reply Quote 0
        • jhalewoodundefined
          jhalewood
          last edited by

          also tried setting fsck.mode=skip, nil effect

          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @jhalewood
            last edited by

            @jhalewood Thanks, that log shows more. It may be a conflict with the USB auto-mount setup that is exclusive to DuetPi:

            Apr 19 19:37:01 duet3 (udev-worker)[299]: sda2: Process '/bin/systemctl start usb-mount@sda2.service' failed with exit code 1.
            Apr 19 19:37:01 duet3 (udev-worker)[311]: sda1: Process '/bin/systemctl start usb-mount@sda1.service' failed with exit code 1.
            

            I suggest you disable that feature or edit the udev rule (rm /etc/udev/rules.d/99-usb-automount.rules) and check if that fixes it.

            Duet software engineer

            jhalewoodundefined 1 Reply Last reply Reply Quote 0
            • jhalewoodundefined
              jhalewood @chrishamm
              last edited by jhalewood

              @chrishamm I ran rm /etc/udev/rules.d/99-usb-automount.rules and that seems to have done the trick! Thanks @chrishamm

              you mentioned I could "disable that feature" or edit the udev rule (rm ..)

              how would i disable that feature? and which method would you recommend?

              Is it possible to do this on the boot partition prior to first boot?

              chrishammundefined 2 Replies Last reply Reply Quote 0
              • chrishammundefined
                chrishamm administrators @jhalewood
                last edited by

                @jhalewood You already did that by running the rm command. i suppose you could edit the file you removed again and exclude your boot device, but you'd have to look up how exactly (search for udev rules, I believe there's a statement to ignore certain UUIDs/names [sda1/sda2 in your case]). If you can live without auto USB mount support, just leave that file deleted.

                It's possible to rebuild DuetPi without that particular feature (see here and delete stage-dsf/04-usb-automount before you build it).

                Duet software engineer

                jhalewoodundefined 1 Reply Last reply Reply Quote 0
                • jhalewoodundefined
                  jhalewood @chrishamm
                  last edited by

                  @chrishamm would it be possible to add to the next duetpi build something that disables the udev automount in favour of just using duetpi exclusive version?

                  I've been trying to find a (ideally simple) way to disable udev automount from the boot partition, i.e. using firstrun.sh or cmdline.txt, I've been unable to (which doesn't mean it doesn't exist, I'm no expert). But since this seems to be a duetpi conflict, perhaps a change in the build is warranted?

                  Though I understand this is not a big problem, considering I seem to be the first person to report it... Just a suggestion.

                  1 Reply Last reply Reply Quote 0
                  • Zsevenundefined
                    Zseven
                    last edited by

                    @chrishamm Hello, have you solved the problem? That you can boot from ssd despite automount ?

                    chrishammundefined 1 Reply Last reply Reply Quote 0
                    • chrishammundefined
                      chrishamm administrators @Zseven
                      last edited by

                      @Zseven See the workaround above. I will check if I can change the automount script to detect if the Pi is booted from USB.

                      Duet software engineer

                      1 Reply Last reply Reply Quote 0
                      • chrishammundefined
                        chrishamm administrators @jhalewood
                        last edited by

                        @jhalewood I'm happy to report that I've got a bug fix ready. It will be included in the next image which will be available when 3.5.2 stable is out.

                        Duet software engineer

                        jhalewoodundefined 1 Reply Last reply Reply Quote 1
                        • jhalewoodundefined
                          jhalewood @chrishamm
                          last edited by

                          @chrishamm Chris you are a fricken legend!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA