This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:multiboot [2018/10/30 10:53] – [Multiboot] scipio | tips:multiboot [2022/09/02 18:48] (current) – sscipioni | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Multiboot ====== | ====== Multiboot ====== | ||
| + | * https:// | ||
| - | Creare una partizione FAT32 (anche altri filesystem sono supportati) con label MULTIBOOT | + | test |
| - | + | ||
| - | Creare una cartella boot all' | + | |
| - | + | ||
| - | <code bash> | + | |
| - | grub-install --target=i386-pc --recheck --boot-directory=/ | + | |
| - | </ | + | |
| - | + | ||
| - | EFI | + | |
| - | <code bash> | + | |
| - | sudo grub-install --target x86_64-efi --efi-directory / | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | / | + | |
| - | <code bash> | + | |
| - | set imgdevpath="/ | + | |
| - | + | ||
| - | set imgdevpath="/ | + | |
| - | + | ||
| - | menuentry " | + | |
| - | set isofile="/ | + | |
| - | loopback loop $isofile | + | |
| - | linux (loop)/ | + | |
| - | initrd (loop)/ | + | |
| - | } | + | |
| - | + | ||
| - | # from https:// | + | |
| - | menuentry " | + | |
| - | set isofile="/ | + | |
| - | bootoptions="" | + | |
| - | loopback loop $isofile | + | |
| - | linux (loop)/ | + | |
| - | initrd (loop)/ | + | |
| - | } | + | |
| - | + | ||
| - | menuentry " | + | |
| - | set isofile='/ | + | |
| - | loopback loop $isofile | + | |
| - | linux (loop)/ | + | |
| - | initrd (loop)/ | + | |
| - | } | + | |
| - | + | ||
| - | menuentry " | + | |
| - | set isofile='/ | + | |
| - | loopback loop $isofile | + | |
| - | + | ||
| - | root=(loop) | + | |
| - | configfile / | + | |
| - | loopback --delete loop | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | test boot with qemu | + | |
| < | < | ||
| - | qemu-system-x86_64 -hda /dev/sdx | + | sudo qemu-system-x86_64 -enable-kvm -m 2G -vga std -drive file=/dev/< |
| </ | </ | ||
| - | [[https:// | ||
| - | |||
| - | |||
| - | ===== grub command line ===== | ||
| - | |||
| - | boot windows | ||
| - | < | ||
| - | insmod chain | ||
| - | ls | ||
| - | set root=(hd0, | ||
| - | chainloader +1 | ||
| - | boot | ||
| - | </ | ||