PINE64
Run Linux from hard disk - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: Run Linux from hard disk (/showthread.php?tid=6664)



Run Linux from hard disk - linuxha - 10-15-2018

I have a RockPro64, a SATA PCI card and SATA drive. I need to have the hard disk be root for a bunch of applications I need to run. If I'm not mistaken I should be able to use initrd started from the SD card or the EMMC card to load and initrd from the hard drive and boot Linux from there. Has anyone tried this? Or perhaps there is a better way to accomplish the same thing?


RE: Run Linux from hard disk - evilbunny - 10-15-2018

(10-15-2018, 08:33 PM)linuxha Wrote: I have a RockPro64, a SATA PCI card and SATA drive. I need to have the hard disk be root for a bunch of applications I need to run. If I'm not mistaken I should be able to use initrd started from the SD card or the EMMC card to load and initrd from the hard drive and boot Linux from there. Has anyone tried this? Or perhaps there is a better way to accomplish the same thing?


At this point in time that's the best way to do it.


RE: Run Linux from hard disk - dukla2000 - 10-16-2018

(10-15-2018, 08:33 PM)linuxha Wrote: Has anyone tried this?

At the moment that is the best way - same as linked here from the wiki except using NVMe.

If you stick to SDcard for initrd there are fewer complications if you switch to 4.18 or 4.19 kernel. And remove eMMC completely. Remember to keep /boot synchronised between SDcard and sda.

At some stage, when uboot is modded to load from sda (or NVMe), then the SDcard will be redundant as uboot can be put in the SPI flash.


RE: Run Linux from hard disk - linuxha - 10-16-2018

Wow! That worked! Thanks

On the link you gave me I found this link and followed the directions. I did put a serial cable on the Pi-2 Bus to monitor what it was doing.

https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte/2

THanks for the reminder about updating the SD /boot when I do upgrades.