{"id":623,"date":"2016-04-11T10:07:00","date_gmt":"2016-04-11T08:07:00","guid":{"rendered":"https:\/\/lisas.de\/~adrian\/posts\/2016-Apr-11-booting-with-syslinux.html"},"modified":"2026-03-30T22:41:24","modified_gmt":"2026-03-30T20:41:24","slug":"booting-with-syslinux-2","status":"publish","type":"post","link":"https:\/\/lisas.de\/luges\/index.php\/2016\/04\/11\/booting-with-syslinux-2\/","title":{"rendered":"Booting with syslinux"},"content":{"rendered":"<p>Having read about using <em>syslinux<\/em> as a boot-loader for virtual machines I tried to replace <em>grub2<\/em> on one of the Fedora 24 virtual machines I am using with <em>syslinux<\/em>:<\/p>\n<p>Not completely knowing what to do I did:<\/p>\n<ul>\n<li>dnf install syslinux-extlinux.x86_64<\/li>\n<li>\/sbin\/extlinux &#8211;install \/boot\/extlinux\/<\/li>\n<\/ul>\n<p>The I tried to create a configuration file using <em>grubby<\/em>:<\/p>\n<ul>\n<li><code>grubby --extlinux --add-kernel=\/boot\/vmlinuz-4.4.6-300.fc23.x86_64 --title=\"4.4.6\" --initrd=\/boot\/initramfs-4.4.6-300.fc23.x86_64.img --args=\"ro root=\/dev\/sda3\"<\/code><\/li>\n<\/ul>\n<p>Which resulted in:<\/p>\n<div class=\"highlight\">\n<pre><span><\/span><code><span class=\"gh\">#<\/span> cat \/etc\/extlinux.conf label 4.4.6 kernel \/vmlinuz-4.4.6-300.fc23.x86_64 initrd \/initramfs-4.4.6-300.fc23.x86_64.img append ro root=\/dev\/sda3 <\/code><\/pre>\n<\/div>\n<p>I added following lines to the file manually:<\/p>\n<div class=\"highlight\">\n<pre><span><\/span><code>default 4.4.6 ui menu.c32 timeout 50 <\/code><\/pre>\n<\/div>\n<p>After that I rebooted and the virtual machine was still using <em>grub2<\/em> to load the kernel.<\/p>\n<p>To write <em>syslinux<\/em> to the <em>MBR<\/em> following additional command was required:<br \/> <code>dd if=\/usr\/share\/syslinux\/mbr.bin of=\/dev\/sda bs=440 count=1<\/code>. I was a bit nervous rebooting the system after overwriting the <em>MBR<\/em>, but it rebooted successfully. The configuration file was also correctly updated after I installed a new kernel via <em>dnf<\/em>. I also removed <em>grub2<\/em> (<code>dnf remove grub2*<\/code>) and was able to successfully reboot into the new kernel without <em>grub2<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having read about using syslinux as a boot-loader for virtual machines I tried to replace grub2 on one of the Fedora 24 virtual machines I am using with syslinux: Not completely knowing what to do I did: dnf install syslinux-extlinux.x86_64 \/sbin\/extlinux &#8211;install \/boot\/extlinux\/ The I tried to create a configuration file using grubby: grubby &#8211;extlinux [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-623","post","type-post","status-publish","format-standard","hentry","category-luges"],"_links":{"self":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":6,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":1994,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/623\/revisions\/1994"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/media?parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/categories?post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/tags?post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}