{"id":13,"date":"2016-04-11T10:07:03","date_gmt":"2017-03-30T16:16:25","guid":{"rendered":"https:\/\/lisas.de\/~adrian\/?p=1177"},"modified":"2017-12-06T15:40:59","modified_gmt":"2017-12-06T13:40:59","slug":"booting-with-syslinux","status":"publish","type":"post","link":"https:\/\/lisas.de\/luges\/index.php\/2016\/04\/11\/booting-with-syslinux\/","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><tt>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\"<\/tt><\/li>\n<\/ul>\n<p>Which resulted in:<\/p>\n<pre># cat \/etc\/extlinux.conf \nlabel 4.4.6\n kernel \/vmlinuz-4.4.6-300.fc23.x86_64\n initrd \/initramfs-4.4.6-300.fc23.x86_64.img\n append ro root=\/dev\/sda3<\/pre>\n<p>I added following lines to the file manually:<\/p>\n<pre>default 4.4.6\nui menu.c32\ntimeout 50\n<\/pre>\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 \/>\n<tt>dd if=\/usr\/share\/syslinux\/mbr.bin of=\/dev\/sda bs=440 count=1<\/tt>. 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> (<tt>dnf remove grub2*<\/tt>) 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":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-luges","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/13","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=13"}],"version-history":[{"count":1,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}