I have a problem with my Banana Pi and I would ask you if you can help me with that. I have attached 2 hard disks to my Banana Pi: Disk 1 per SATA and disk 2 per USB. If I boot my Pi when it was turned off, disk 1 is assigned to /dev/sda and disk 2 is assigned to /dev/sdb. When I perform a reboot the assignments are switched, so that disk 1 is assigned to /dev/sdb and disk 2 is assigned to /dev/sda. How can I make a persisten assignment, so that each disk is everytime assigned to the same /dev/sdX? I will use the mounting to edit uEnv.txt and use it to boot from the SATA disk with "root=/dev/sda1", for example.
I read a lot about UUIDs, udev, fstab, and so forth. But as I'm not a linux specialist, I'm not sure which way would be the best and most common one. If I read that correctly, using udev would be a good way. But my rule to assign something like /dev/usbhd did not work. I'm wondering if udev will work at all as I could not find any rule files in /etc/udev/rules.d and the tutorials say that there should be default rule files. But it could be that udev is the wrong way as I need the /dev/sda1 to mount my root file system in which the /etc/udev/rules.d is located. So maybe I have to interfere at an earlyer point in the booting process.
So I hope that I pointed out my problem precise enough so that you can help my.