You are not logged in.
Hello,
I made a minimal linux system with a recent kernel and busybox to a disk image and it boots fine with grub2 inside QEMU. However grub takes up around 15mb of space so I decided to switch to Syslinux instead to make the root file system smaller. I followed the installation instructions in the Syslinux page in the wiki (installed it according to the "manual install" section) but now when I tries to boot the image with QEMU syslinux just says
loading tinylinux... failed, no such file or directory
Also, I noticed that the syslinux.cfg file is not being created after I run
extlinux --install /boot/syslinux
which i presume it should be created because the wiki didn't mention anything about manually creating syslinux.cfg in the installed directory.
Here's the output of fdisk -l tl.img
Device Boot Start End Sectors Size Id Type
tl.img1 * 2048 1048575 1046528 511M 83 Linux
There's only one ext4 partition inside the disk image and it has been marked as bootable with cfdisk. Also the partition table has been formatted as MBR.
Here's my syslinux.cfg inside the directory /boot/syslinux:
PROMPT 1
TIMEOUT 30
DEFAULT tinylinux
LABLE tinylinux
LINUX ../bzImage
APPEND root=/dev/sda1 quiet init=/bin/sh
I couldn't find similar errors on Google and I don't think this is strictly Arch related (although I used Arch as my base working station to install Syslinux, not sure if this counts), so I posted this here.
Any help would be appreciated. Thanks in advance!
Last edited by Unturned (2018-01-20 10:27:08)
Offline
The stock .cfg file is installed directly to /boot/syslinux as part of the package; you'll need to copy it over to the image manually.
In your self made config, "LABLE" is a typo, which may be causing the error you're getting. Also, did you read the caveat about syslinux on ext4 partitions?
http://www.syslinux.org/wiki/index.php? … system#ext
Mod note: not a GNU/Linux discussion, moving to NC.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
It works now! Thank you very much @WorMzy!
"label" is actually one of the few words that I frequently misspell all the time
Last edited by Unturned (2018-01-20 10:28:16)
Offline