09-17-2017, 07:01 PM
There are several other ways to address the Linux root file system (rootfs) partition. One of the easiest way (but bad) is to use the partition name like “/dev/sda1” in your /boot/efi/extlinux/extlinux.conf file.
This is NOT a recommended way if you have more than one USB disk to be attached to your system since the name “/dev/sda1” can be grabbed by any other attached disk depending on how fast the disk first responds during boot time. Your linux rootfs partition may become “/dev/sda1”, “/dev/sdb1”, “/dev/sdc1”, etc.
A good way would be to use UUID of the disk partition instead. Here is how:
To find out the UUID of your rootfs disk partition, run sudo lsblk –f command.
Edit /boot/efi/extlinux/extlinux.conf to use UUID. For example:
Note: You will need external USB disk enclosure or USB3-SATA converter with its own dedicated power supply for the Rock64 to remain stable. If you have more than one disk, get a powered USB3.0 hub.
Code:
label kernel-4.4
kernel /Image
initrd /initrd.img
fdt /dtb
append earlycon=uart8250,mmio32,0xff130000 rw root=/dev/sda1 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}
This is NOT a recommended way if you have more than one USB disk to be attached to your system since the name “/dev/sda1” can be grabbed by any other attached disk depending on how fast the disk first responds during boot time. Your linux rootfs partition may become “/dev/sda1”, “/dev/sdb1”, “/dev/sdc1”, etc.
A good way would be to use UUID of the disk partition instead. Here is how:
To find out the UUID of your rootfs disk partition, run sudo lsblk –f command.
Edit /boot/efi/extlinux/extlinux.conf to use UUID. For example:
Code:
label kernel-4.4
kernel /Image
initrd /initrd.img
fdt /dtb
append earlycon=uart8250,mmio32,0xff130000 rw root=UUID=f86f4f1d-a3bf-4b87-98d0-18f586c27723 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#}
Note: You will need external USB disk enclosure or USB3-SATA converter with its own dedicated power supply for the Rock64 to remain stable. If you have more than one disk, get a powered USB3.0 hub.