Grub (grub.cfg)
Grub enxugado para melhor compreensão
Categoria: Miscelânea
Software: Grub
[ Hits: 2.179 ]
Por: Mauricio Ferrari
Grub gerado com o comando grub-mkconfig e editado a mão. Não está simplificado. Só foi retirado o que achei desnecessário. Está mostrando instruções de inicialização para o Slackware, Mint, Windows, Slitaz e o PLOP para boot USB sem precisar mexer nada na BIOS.
######################################################################################################################## ################################################################################################## # # # GRUB.CFG Personalizado - Versão 1.0 - By Mauricio Ferrari # # # ################################################################################################## ######################################################################################################################## if [ -s $prefix/grubenv ]; then load_env fi set default="0" if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=dejavusansmono else insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 251709d3-e8c3-413f-8ff1-3f60f43cd502 else search --no-floppy --fs-uuid --set=root 251709d3-e8c3-413f-8ff1-3f60f43cd502 fi font="/usr/share/grub/dejavusansmono.pf2" fi if loadfont $font ; then set gfxmode=1024x768x32 load_video insmod gfxterm set locale_dir=$prefix/locale set lang=pt_BR insmod gettext fi terminal_output gfxterm ######################################################################################################################## menuentry 'Slackware-14.2 GNU/Linux' --class slackware-14.2 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-251709d3-e8c3-413f-8ff1-3f60f43cd502' { load_video insmod gzio insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 251709d3-e8c3-413f-8ff1-3f60f43cd502 else search --no-floppy --fs-uuid --set=root 251709d3-e8c3-413f-8ff1-3f60f43cd502 fi echo 'Loading Linux 4.4.14 ...' linux /boot/vmlinuz-huge-4.4.14 root=/dev/sda5 ro } ######################################################################################################################## menuentry 'Windows 7 (Loader)' --class windows --class os $menuentry_id_option 'osprober-chain-FA5E8C1E5E8BD235' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 FA5E8C1E5E8BD235 else search --no-floppy --fs-uuid --set=root FA5E8C1E5E8BD235 fi chainloader +1 } ######################################################################################################################## menuentry 'Slitaz 5.0 - Rolling' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-62885e85-f94e-4cbb-960c-bd125e6a5bc1' { insmod part_msdos insmod ext2 set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 62885e85-f94e-4cbb-960c-bd125e6a5bc1 else search --no-floppy --fs-uuid --set=root 62885e85-f94e-4cbb-960c-bd125e6a5bc1 fi linux /boot/vmlinuz-3.16.55-slitaz root=/dev/sda7 } ######################################################################################################################## menuentry 'Linux Mint 18.1 Serena' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-533fae76-dfc7-4b02-b4a5-845029b6ac14' { insmod part_msdos insmod ext2 set root='hd0,msdos8' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 533fae76-dfc7-4b02-b4a5-845029b6ac14 else search --no-floppy --fs-uuid --set=root 533fae76-dfc7-4b02-b4a5-845029b6ac14 fi linux /boot/vmlinuz-4.4.0-53-generic root=UUID=533fae76-dfc7-4b02-b4a5-845029b6ac14 ro quiet splash $vt_handoff initrd /boot/initrd.img-4.4.0-53-generic } ######################################################################################################################## menuentry "Gerenciador de inicialização do Plop" { set root='hd0,msdos5' linux16 /boot/plpbt.bin } ########################################################################################################################
Nenhum comentário foi encontrado.
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Compartilhamento de Rede com samba em modo Público/Anônimo de forma simples, rápido e fácil
Cups: Mapear/listar todas as impressoras de outro Servidor CUPS de forma rápida e fácil
Criando uma VPC na AWS via CLI
Tem como instalar o gerenciador AMD Adrenalin no Ubuntu 24.04? (1)
Agora temos uma assistente virtual no fórum!!! (247)
Problemas ao instalar o PHP (9)
Não tô conseguindo baixar nada pelo terminal (5)
Wifi parou de funcionar no Inspirion N4050 com Debian 12 (1)