Hi guys,
im running OSMC on a pi3 from an SD card but im running out of space, I want to switch my install to a USB drive with more space, but I desperately want to avoid reinstalling from scratch as I have a hell of a lot of stuff installed besides OSMC.
Ive imaged my sd card, then copied that to the USB Hard drive, but what changes need to be made to get it to boot from the USB?
I know an SD card will still be needed in the Pi, im cool with that, I tried changing the cmdline.txt to point to the UUID of the USBs ext4 partition, but it still boots from the sd card.
I thought this as well, but in my fstab the only reference to the ext4 partition is commented out, I tried uncommenting it and using the UUID of my USB ext4 partition, but it’s still booting from the sd card.
This worked for me: /dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automount 0 0 # rootfs is not mounted in fstab as we do it via initramfs. Uncomment for remount (slower boot) LABEL=OSMCsystem / ext4 defaults,noatime 0 0
If you just did a clone of the card onto the USB stick, the UUID will be the same. Change it or use the label instead. As you can see, I labelled mine OSMCsystem.
Sorry I thought I was clear…
I’ve cloned my sd card to a USB drive, but I’m unable to actually boot from the USB drive, its still booting from the sd card.
I thought I’d just have to make changes to the /boot/cmdline.txt (pointing it towards the USB drive instead of the sd card) but no joy.
Not sure to be honest - I’ve wiped that SD card now. I think it was just root=/dev/sda3 (I was using the third partition on a big disk). This is on a Pi2, but should be the same.
Cheers, that works but I’m hesitant to use the /dev/sdb2 approach as I have two large storage drives attached by USB as well, so that identifier can change if I’m not mistaken and it ‘could’ fail to boot depending on whether these other drives are switched on.
I was under the impression that UUID should be used, as that never changes, but if I use the UUID in cmdline.txt , it just boots from the sd card.
Something strange going on, I’ll leave it for now with sdb2 in there but I’m not sure that this approach is recommended.
Maybe that’s why I couldn’t get it to work when I tried it recently. But it was working once with kernel 4.x. The thread says you needed PARTUUID with kernel 3.x.