Booting from GRUB: Difference between revisions

From KolibriOS wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
If you want to boot KoOS directly with grub, you need to do this:
 
* get and install the syslinux package
== GRUB1 (GRUB legacy) ==
* copy /usr/lib/syslinux/memdisk to /boot
 
* copy your KoOS-image to /boot
If you want to boot KolibriOS with GRUB, you need to do this:
* add this lines to your grub.conf:
* Install Syslinux (if not installed).
Code:
* Copy /usr/lib/syslinux/memdisk to /boot (or take it from distro).
<asm>
* Point your config "root"-entry to the partition, where the image resides, and write the kernel-entry with (hd0,0)/boot/memdisk or where ever your linux partition is.
label KoOS
* Add these lines to your grub.conf:
 
label KoOS
   root (hd0,0)  # edit this to your correct partition, given example is hda1
   root (hd0,0)  # edit this to your correct partition, given example is hda1
   kernel /boot/memdisk
   kernel /boot/memdisk
   initrd /boot/menuet.img
   initrd /boot/kolibri.img
</asm>
 
* reboot and enjoy
== GRUB2 ==
 
Add these lines to one of the files in /etc/grub (grub.d):
 
menuentry "KolibriOS" {
        set root='(hd0,5)'    # edit this to your correct partition, given example is sda5
        linux16 /memdisk
        initrd16 /kolibri.img
}
 
Then run "sudo update-grub".


edit: just tried, it is not necessary to copy the image to /boot, point your config "root"-entry to your FAT or NTFS-partition, where the image resides, and write the kernel-entry with (hd0,0)/boot/memdisk or where ever your linux partition is.
== Limitations ==
BTW, one limitation is in this method: The kernel cannot save its boot settings :(
* The kernel cannot save boot settings.


Howto written by derPENGUIN, added to the wiki by Hidnplayr
[[Category:Manuals]]

Latest revision as of 14:23, 16 February 2017

GRUB1 (GRUB legacy)

If you want to boot KolibriOS with GRUB, you need to do this:

  • Install Syslinux (if not installed).
  • Copy /usr/lib/syslinux/memdisk to /boot (or take it from distro).
  • Point your config "root"-entry to the partition, where the image resides, and write the kernel-entry with (hd0,0)/boot/memdisk or where ever your linux partition is.
  • Add these lines to your grub.conf:
label KoOS
  root (hd0,0)  # edit this to your correct partition, given example is hda1
  kernel /boot/memdisk
  initrd /boot/kolibri.img

GRUB2

Add these lines to one of the files in /etc/grub (grub.d):

menuentry "KolibriOS" {
       set root='(hd0,5)'    # edit this to your correct partition, given example is sda5
       linux16 /memdisk
       initrd16 /kolibri.img
}

Then run "sudo update-grub".

Limitations

  • The kernel cannot save boot settings.