On 2023年04月07日 01:03, Matt Housh wrote:
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
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux
In my case, as you know, the boot and swap are swapped (pun unintended), and the swap's type is Linux Swap / Solaris, but I doubt that really matters. Commands (I mean extlinux and dd) and output of the "ls -l" command are identical. In syslinux.cfg the only difference is (of course) the partition (sda1 instead of sda2) which as you already said shouldn't matter, and instead of "ro" it says "rw". Label name was "CRUX-3.7", timeout was 0, and prompt was 0, there's no way it matters, but I set it to match yours anyway. And there's a "SAY" command too which I rewrote from the handbook, although it took me a while to figure out where the special characters are on the US-International keyboard layout. I just hexadrupple checked on possible typoes, but none of what I could find. So the only possible offender could be "rw" instead of "ro", but I don't think that's supposed to matter. So all I can think of is to re-generate the ldlinux.c32 file. Grub seems to be absent from the live environment, so I guess that's out of the question. -- lain.