duetpi will not run on usb ssd - raspbian will
-
@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
-
also tried setting fsck.mode=skip, nil effect
-
@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. -
@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?
-
@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). -
@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.
-
@chrishamm Hello, have you solved the problem? That you can boot from ssd despite automount ?
-
@Zseven See the workaround above. I will check if I can change the automount script to detect if the Pi is booted from USB.
-
@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.
-
@chrishamm Chris you are a fricken legend!