On 2023-04-06 08:58, lain. wrote:
Yes, syslinux.cfg is in the same folder as ldlinux.c32, which is /boot/syslinux. The only difference is that instead of sda2 I used sda1.
sda1 = the entire installation, ext4, has the boot flag sda2 = swap Disk label type = dos
For comparison, on a test system here: ---------- # cd /boot/syslinux/ # ls -l total 192 -rw-r--r-- 1 root root 122308 Apr 5 19:34 ldlinux.c32 -r--r--r-- 1 root root 69632 Apr 5 19:34 ldlinux.sys -rw-r--r-- 1 root root 103 Apr 5 23:42 syslinux.cfg # cat syslinux.cfg DEFAULT CRUX PROMPT 1 TIMEOUT 3 LABEL CRUX KERNEL ../vmlinuz-6.1.22 APPEND root=/dev/sda2 ro quiet # history | grep -E 'mbr\.bin|extlinux' 24 extlinux --install /boot/syslinux 28 dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sda # fdisk -l Disk /dev/sda: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: Samsung SSD 850 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x65a03c78 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 4196351 4194304 2G 83 Linux /dev/sda2 * 4196352 500117503 495921152 236.5G 83 Linux ---------- As far as I know the partition order isn't important in this case, only the bootable flag as mentioned. (/dev/sda1 should be of type swap in the above layout but I forgot to change it. Not relevant to syslinux.) Maybe someone else who is more well-versed with syslinux could help more but this simple configuration works for me. Regards, Matt