I know the latest raspbian image can be written directly to a usb, and the raspberry pi 3 will know and boot from the usb device. A bit of my investigation showed me that the changes I could identify where mainly on the cmdline.txt file on boot, and fstab on /etc/root
so, previously these files would have the following:
Code: Select all
cmdline.txt: root=/dev/mmcblk0p2
fstab: /dev/mmcblk0p1 /boot vfat defaults 0 0
/dev/mmcblk0p2 / ext4 defaults 0 1
Code: Select all
cmdline.txt: root=PARTUUID=XXX2222333-02
fstab: PARTUUID=XXX2222333-01 /boot vfat defaults 0 0
PARTUUID=XXX2222333-02 / ext4 defaults 0 1
Now, I've tried to apply the same raspbian principle to other distros (Google AIY, Retropie) without any success.
I've changed cmdline.txt and fstab to use PARTUUID as per the raspbian distro.. no luck
My questions:
is there any other place I should be updating these references?
read somewhere around adding
Code: Select all
initramfs initrd.sda
Is there something tied to the kernel (?) [complete noob here] that allows using PARTUUID in the cmdline.txt and fstab references? maybe these other distros haven't updated their kernel?
Anything else I could/should try?
I'm very keen in running from USBs. A lot easier to swap them, and cheaper to get.
PS: Bonus question
If I want to use the old method of keeping an SD that points to a root partition on a USB, am I ok to format a smaller SD card, and do a "filecopy" of the "boot" partition via say windows explorer? (asking this because most of the tutorials ask to burn the image to the SD, but if I only need the boot partition, I can use a much smaller SD card!)