Interesting.... Does UUID work in cmdline.txt?

So I am using a freshly installed 2019 11 18 image. well dd’d onto a USB HD and resized to the full space. In the first scenario I use UUID and in the second scenario I use the device name. I think they both should use /dev/sda1 as root, but they do not. If you need any other outputs please ask.

Scenario 1:

osmc@osmc:~$ df -k
Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs          376668        0    376668   0% /dev
tmpfs             381788     5216    376572   2% /run
/dev/mmcblk0p2   3528640   930264   2399416  28% /
tmpfs             381788        0    381788   0% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs             381788        0    381788   0% /sys/fs/cgroup
/dev/mmcblk0p1    322936    26404    296532   9% /boot
/dev/sda3      120047812  7445584 106481064   7% /media/Music
/dev/sda2      120047812 61666708  52259940  55% /media/Movies
/dev/sda1      120120804   936044 113063704   1% /media/00180154-fb7f-4643-9a01-01a4dfce2075
/dev/sda4      120050884 71625816  42303752  63% /media/TVShows
tmpfs              76356        0     76356   0% /run/user/1000
osmc@osmc:~$ more /boot/cmdline.txt
root=UUID=00180154-fb7f-4643-9a01-01a4dfce2075 rootfstype=ext4 rootwait quiet osmcdev=rbp2
osmc@osmc:~$ ls -l /dev/disk/bu-uuid
ls: cannot access '/dev/disk/bu-uuid': No such file or directory
osmc@osmc:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan 26 18:46 00180154-fb7f-4643-9a01-01a4dfce2075 -> ../../sda1
lrwxrwxrwx 1 root root 15 Jan 26 18:46 61B6-3000 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Jan 26 18:46 dd7421ad-59ae-431d-a43e-c8db1857bb4f -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 26 18:46 e3f1aeb9-7d44-4a64-b907-3d9fe9362f9d -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 26 18:46 f1574921-690e-427c-86b8-1edd14979eee -> ../../sda4
osmc@osmc:~$ 

It is supposed to go to sda1 but it goes to mmcblk0p2
If I do this though

Scenario 2:

osmc@osmc:~$ df -k
Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs          376668        0    376668   0% /dev
tmpfs             381788     5216    376572   2% /run
/dev/sda1      120120804   936060 113063688   1% /
tmpfs             381788        0    381788   0% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs             381788        0    381788   0% /sys/fs/cgroup
/dev/mmcblk0p1    322936    26404    296532   9% /boot
/dev/sda2      120047812 61666708  52259940  55% /media/Movies
/dev/sda3      120047812  7445584 106481064   7% /media/Music
/dev/mmcblk0p2   3528640   930248   2399432  28% /media/00180154-fb7f-4643-9a01-01a4dfce2075
/dev/sda4      120050884 71625816  42303752  63% /media/TVShows
tmpfs              76356        0     76356   0% /run/user/1000
osmc@osmc:~$ more /boot/cmdline.txt
root=/dev/sda1 rootfstype=ext4 rootwait quiet osmcdev=rbp2
osmc@osmc:~$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jan 26 18:35 00180154-fb7f-4643-9a01-01a4dfce2075 -> ../../sda1
lrwxrwxrwx 1 root root 15 Jan 26 18:35 61B6-3000 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Jan 26 18:35 dd7421ad-59ae-431d-a43e-c8db1857bb4f -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 26 18:35 e3f1aeb9-7d44-4a64-b907-3d9fe9362f9d -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 26 18:35 f1574921-690e-427c-86b8-1edd14979eee -> ../../sda4

It works!

But in scenario 2 why is mmcblk0p2 assigned the UUID for /dev/sda1?
That’s a secondary question.

Use PARTUUID

OK I’ll try that. Thanks for the quick response!

PARTUUID did not work it put me in the OSMC initramfs rescue console. I’ll just use /dev/sda1, though it may break if I add another thumb drive to it.

I did reformat your post for better readability.
How did you create the partition on sda1, did you clone the SD Card?
What does lsblk -f say also what is the UUID you see when you connect the USB and separetely the SD Card to your PC?

Yes, I did. I just DD’d mmcblk0p2 to sda1 and then resized it.
yes from my computer. They were both unmounted filesystems at the time.

DD will obviously create a copy that end up with the same UUID.
If you want to use them on the same system you would need to change the UUID of one of them.

Ahh ok forgot about that!

Oh and I forgot to say thanks!