GRUB2/MBR (possibly w/ GPT table)

draft

REQUIRE

slackpkg search fuse
slackpkg search freetype
slackpkg search libpng
slackpkg search harfbuzz
slackpkg search glib2
slackpkg install fuse freetype libpng harfbuzz glib2

BUILD

wget https://ftp.gnu.org/gnu/grub/grub-2.04.tar.gz
tar xzf grub-2.04.tar.gz 
cd grub-2.04/
./configure

INSTALL

nice make -j$j
make install

MBR vs GPT

fdisk -l /dev/sda

in case it is a GPT table, do this first (BIOS BOOT PARTITION)

cgdisk /dev/sda

type --> ef02
name --> bios-boot

partprobe /dev/sda
ls -lF /dev/sda5

then proceed anyway

grub-install --no-floppy --boot-directory=/ /dev/sda

SETUP

grub-file --is-x86-multiboot /xen.gz && echo YES
#grub-file --is-x86-multiboot /vmlinuz && echo YES

vi /grub/grub.cfg

and see grub-setup


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml