Starting a new thread for clarity (I hope). I’ve started modifying riban’s script to support USB drives and straigt away run into a problem where sda1 (the usb drive) is being used in some other area of the code - as is obvious because under System in webconf it shows " USB/sda1-usb-USB_SanDisk_3.2G: 1%" . The device does not show up as mounted. Even if it was I’d have concerns that just unmounting it would mess up something else. I’m guessing that zynthian automatically “adopts” the usb drive for various storage functions. If this is the case, how to free the usb drive for booting purposes?
Harry
Put a second USB stick in and Zynthian doesn’t seem to grab it. Will dive back into the script in the morning.
So Zynthian seems to want to auto-mount any partitions that it finds on the USB drive. I unmounted them with umount but when I try to run riban’s script (with replacement of all nvme references to SDx) the parted command seem to cause a problem. Message is “Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64 on /dev/sda1 have been written, but we have been unable to inform the kernel of the change, probably because it/they
are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.”
I tried rebooting but the error message persists and none of the parted commands are creating any partitions. I’m stuck here.