Basically what's happening:
- I plug in my Pico W to my Raspberry Pi 4B (8GB model, running Ubuntu Server 23.10 arm64) via USB while holding down the button, so it's in BOOTSEL mode.
- I run
sudo dmesgon the Pi 4B to see that there's a new mass storage device attached, i.e. the Pico's flash partition.
- I manually mount the drive with
sudo mount /dev/sdb1 /mnt/pico
- I copy a UF2 "hello world" binary onto the Pico, runs as expected
- I unplug the Pico and get back to work on programming.
- I plug the Pico back in to install a new binary on it.
The issue happens in the last step. When I run
sudo dmesg again to see the name of the new mass storage device, it "shifts up" by one letter, like if it was
sdb last time, the next time it'll be
sdc. This seemingly goes on forever, but I haven't hit Z yet. Furthermore, the letters 'reset' when I reboot the Pi 4B, so it's back to
sdb on the first time I plug the Pico in after a reboot. (I have a proper HDD attached on
How can I get my Pi 4B to reuse the same logical mass storage device for every time I plug my Pico back in BOOTSEL mode?