“Booting from GRUB”的版本间差异
跳到导航
跳到搜索
Pathoswithin(讨论 | 贡献) |
|||
(未显示4个用户的6个中间版本) | |||
第1行: | 第1行: | ||
− | If you want to boot | + | |
− | * | + | == 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 | label KoOS | ||
第11行: | 第13行: | ||
initrd /boot/kolibri.img | 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. | ||
[[Category:Manuals]] | [[Category:Manuals]] |
2017年2月16日 (四) 14:23的最新版本
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.