so i recently redid my configuration and put my p420i controller into HBA mode.
This way, nothing boots anymore, as i was told.
Now i saw there is a way to move the boot partition onto SD card and boot from there.
I booted up a Gparted live cd, copied the boot partition over( /dev/sda1 nd sda2, so grub and boot), it didnt boot.
Then i got into the more complex stuff, and found out via command line how to reinstall grub.
open terminal as root:
mkdir /tmp/mydir
vgchange -a y
mount /dev/pve/root /tmp/mydir #it was /dev/sda3, but since pve is a lvm, it needs to be like this to go to root filesystem right?
mount --bind /dev /tmp/mydir/dev
mount --bind /proc /tmp/mydir/proc
mount --bind /sys /tmp/mydir/sys
mount --bind /dev/sdb2 /tmp/mydir/boot
chroot /tmp/mydir
grub-install /dev/sdb
exit
reboot
but this ends up booting into grub and not into pve, and im questioning why it does that and if i have done something wrong or missing somehting. I dont really know how to make it boot now. There are no proper guides showing how to move over the boot partition to make it boot again from HBA mod, only people saying it can be done.
I need some help from you experts.
This way, nothing boots anymore, as i was told.
Now i saw there is a way to move the boot partition onto SD card and boot from there.
I booted up a Gparted live cd, copied the boot partition over( /dev/sda1 nd sda2, so grub and boot), it didnt boot.
Then i got into the more complex stuff, and found out via command line how to reinstall grub.
open terminal as root:
mkdir /tmp/mydir
vgchange -a y
mount /dev/pve/root /tmp/mydir #it was /dev/sda3, but since pve is a lvm, it needs to be like this to go to root filesystem right?
mount --bind /dev /tmp/mydir/dev
mount --bind /proc /tmp/mydir/proc
mount --bind /sys /tmp/mydir/sys
mount --bind /dev/sdb2 /tmp/mydir/boot
chroot /tmp/mydir
grub-install /dev/sdb
exit
reboot
but this ends up booting into grub and not into pve, and im questioning why it does that and if i have done something wrong or missing somehting. I dont really know how to make it boot now. There are no proper guides showing how to move over the boot partition to make it boot again from HBA mod, only people saying it can be done.
I need some help from you experts.