BOOT SIMPLIFIED - EXTLINUX

poma pomidorabelisima at gmail.com
Mon Dec 23 20:30:42 UTC 2013


BOOT SIMPLIFIED - EXTLINUX

BIOS - MBR - 1.PART=SWAP - 2.PART=BOOT(EXT4) - 3.PART=/(EXT4)

# fdisk -l /dev/sda
…
Disklabel type: dos
…
Device    Boot  …  Id System
/dev/sda1       …  82 Linux swap
/dev/sda2 *     …  83 Linux => boot
/dev/sda3       …  83 Linux => /

# cat /etc/fstab
UUID=…                                    swap    swap …
UUID=…                                    /boot   ext4 …
UUID=12345678-1234-1234-1234-123456789abc /       ext4 …

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# yum install syslinux-extlinux

# cat /boot/extlinux/extlinux.conf
ui menu.c32
menu title EXTLINUX FEDORA 20
timeout 50

label Fedora 20 3.12.5-302.fc20.x86_64
  kernel /vmlinuz-3.12.5-302.fc20.x86_64
  append root=UUID=12345678-1234-1234-1234-123456789abc OPTION1 …
  initrd /initramfs-3.12.5-302.fc20.x86_64.img

# sfdisk --activate=2 /dev/sda

# extlinux --install /boot/extlinux

# cat /usr/share/syslinux/mbr.bin > /dev/sda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://git.kernel.org/cgit/boot/syslinux/syslinux.git/plain/doc/extlinux.txt?id=syslinux-4.07

Et voilà.


poma




More information about the users mailing list