How do I boot entire raspberry pi disk from grub?
Consider I have an sdcard with raspberry pi that is booted first, it has grub and I want to either boot system from this sdcard or boot entire system including boot (reading initramfs) from a separate disk that has boot and root partitions while also reading new boot partition?
/dev/nvme0n1p1 is the boot
/dev/nvme0n1p2 is the root
Consider I have an sdcard with raspberry pi that is booted first, it has grub and I want to either boot system from this sdcard or boot entire system including boot (reading initramfs) from a separate disk that has boot and root partitions while also reading new boot partition?
/dev/nvme0n1p1 is the boot
/dev/nvme0n1p2 is the root
Code:
set timeout=10set default=1menuentry "Boot from SD Card" { set root=(hd0,msdos1) linux /vmlinuz root=/dev/mmcblk0p2 rw initrd /initrd.img}menuentry "Boot from M.2 SSD" { # What do I put here to start entire boot process a /dev/nvme0n1}
Statistics: Posted by exander — Sun Sep 01, 2024 12:59 pm