I installed PVE 8.* to SSD in ODD Slot (which is recognized by onboard Controller as Slot 4 after adding 3 drive into Bays) and would like to chainload from mSD to this SDD PVE Installation. As seems there is no other possibility then grub and chainload, at least I did not find that people are using something else. There are a lot of topic/blogs on this Problem, but I am unable to get it working on my side.
When there are no other drives inserted into Bays, the PVE will boot normaly from ODD SSD. While Installing PVE i selected ext4 File system nothing special.
When I insert other drives into Bays, and insert mSD to mSD Slot, i see shortly Grub and it goes to "grub shell". It does not boot PVE from ODD.
When inside grub shell I type ls, I see drives, but no partitions from hd4 (which should be SDD in ODD).
This is how I prepared mSD with grub:
After that I power off the server, inserted three drives in bay, inserted mSD into slot. And started server again. After that I see only grub shell like below:
Any hint is welcome, as I am not sure what to do else.
When there are no other drives inserted into Bays, the PVE will boot normaly from ODD SSD. While Installing PVE i selected ext4 File system nothing special.
When I insert other drives into Bays, and insert mSD to mSD Slot, i see shortly Grub and it goes to "grub shell". It does not boot PVE from ODD.
When inside grub shell I type ls, I see drives, but no partitions from hd4 (which should be SDD in ODD).
This is how I prepared mSD with grub:
Bash:
root@pve01:~# dd if=/dev/zero of=/dev/sdb count=1000
root@pve01:~# fdisk -l /dev/sdb
Disk /dev/sdb: 14.84 GiB, 15938355200 bytes, 31129600 sectors
Disk model: SD Transcend
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@pve01:~#
root@pve01:~# apt install parted
root@pve01:~# parted /dev/sdb -- mklabel msdos
Information: You may need to update /etc/fstab.
root@pve01:~# parted /dev/sdb -- mkpart primary fat16 1MB 1024MB
Information: You may need to update /etc/fstab.
root@pve01:~# parted /dev/sdb -- set 1 boot on
Information: You may need to update /etc/fstab.
root@pve01:~# mkfs.vfat -n grub /dev/sdb1
mkfs.fat 4.2 (2021-01-31)
mkfs.fat: Warning: lowercase labels might not work properly on some systems
root@pve01:~#
root@pve01:~# mount /dev/sdb1 /mnt
root@pve01:~# mkdir /mnt/boot
root@pve01:~# grub-install --force --no-floppy --boot-directory=/mnt/boot /dev/sdb
Installing for i386-pc platform.
Installation finished. No error reported.
root@pve01:~#
root@pve01:~# cat /mnt/boot/grub.cfg
set timeout=5
set default=0
menuentry "chainload" {
insmod part_msdos
insmod chain
set root=(hd4)
chainloader +1
}
root@pve01:~#
root@pve01:~# umount /mnt
After that I power off the server, inserted three drives in bay, inserted mSD into slot. And started server again. After that I see only grub shell like below:
Code:
grub> ls
(hd0) (hd0,msdos1) (hd1) (hd2) (hd2msdos1) (hd3) (hd4)
grub> ls (hd4)
Device hd4: No known filesystem detected - Sector size 512B - Total size 488386584KiB
grub>
Any hint is welcome, as I am not sure what to do else.