Vous êtes sur la page 1sur 3

ISTP Selva System

Tema:GRUB

------------------------------------------------------------------------------------------------------------------------------GRUB (GRand Unifier Bootloader)


Es un gestor de arranque: es lo primero que se arga uando se ini ia la omputadora! Permite tener diferentes sistemas operativos" y diferentes versiones de ellos" en el mismo dis o duro! Por e#emplo podemos tener $indo%s y G&U'(inu) en la misma omputadora" GRUB se argar* antes que ualquiera de +stos permiti+ndonos elegir u*l ini iar! El gestor de arranque GRUB viene preinstalado en la mayor,a de las distri-u iones de G&U'(inu) modernas" entre ellas .e-ian" U-untu y sus derivadas! /nteriormente" el gestor de arranque m*s usado era (I(0! Modificaciones en el men de arranque Para modifi ar el tiempo de espera" sistema operativo que argara por defe to" el nom-re de los sistemas operativos y toda la informa i1n del arranque Util2aremos los siguintes ar 3ivos

1. El ar 3ivo 'et 'default'grub:


Este /r 3ivo ontiene algunas onfigura iones -asi as del GRUB" sera aqui donde am-iemos el tiempo de espera" el sistema que argara por defult y quitaremos del menu el item de re overy! /-rir 4i 3ero Gru-: sudo editor 'et 'default'gruTam-ien podriamos editarlo en el sudo gedit 'et 'default'gru5odifi amos el /r 3ivo:
6 6 6 6 If you 3ange t3is file" run 7update8gru-7 after%ards to update '-oot'gru-'gru-! fg! 4or full do umentation of t3e options in t3is file" see: info 8f gru- 8n 7Simple onfiguration7

GRUB9.E4/U(T:; 6GRUB9<I..E&9TI5E0UT:; GRUB9<I..E&9TI5E0UT9=UIET:true GRUB9TI5E0UT:>; GRUB9.ISTRIBUT0R:?ls-9release 8i 8s @A 'dev'null BB e 3o .e-ian? GRUB9C5.(I&E9(I&UD9.E4/U(T:Equiet splas3E GRUB9C5.(I&E9(I&UD:EE 6 Un omment to ena-le BadR/5 filtering" modify to suit your needs 6 T3is %orFs %it3 (inu) (no pat 3 required) and %it3 any Fernel t3at o-tains 6 t3e memory map information from GRUB (G&U 5a 3" Fernel of 4reeBS. !!!) 6GRUB9B/.R/5:E;);>@GHIJK";)fefefefe";)LMa- def";)efefefefE 6 Un omment to disa-le grap3i al terminal (gru-8p only) 6GRUB9TER5I&/(: onsole 6 T3e resolution used on grap3i al terminal 6 note t3at you an use only modes %3i 3 your grap3i ard supports via NBE 6 you an see t3em in real GRUB %it3 t3e ommand ?v-einfo7 6GRUB9G4D50.E:JH;)HL; 6 Un omment if you don7t %ant GRUB to pass Eroot:UUI.:)))E parameter to (inu) 6GRUB9.IS/B(E9(I&UD9UUI.:true 6 Un omment to disa-le generation of re overy mode menu entries 6GRUB9.IS/B(E9REC0NERO:EtrueE 6 Un omment to get a -eep at gru- start 6GRUB9I&IT9TU&E:EHL; HH; >E

&ota: Es importante re ordar que ningun am-io apli ara 3asta que mandemos a tuali2ar el GRUB@ sudo update8gru-@

____________________________________________________________________________________ Pof: Porge Pu#adas Conde

ISTP Selva System


Tema:GRUB

------------------------------------------------------------------------------------------------------------------------------@! (os ontenidos en la arpeta 'et 'gru-!d'

'et 'gru-!d'20_memtest86+: .esa tivando este ar 3ivos quitaresmos los item de memory test sudo 3mod 8) 'et 'gru-!d'@;9memtestLJQ

'et 'gru-!d'10_linu : Este ar 3ivo ontiene omandos y s ripts que se en argan del Fernel de linu) en la parti ion prin ipal! /-rir 4i 3ero >;9linu): sudo editor 'et 'gru-!d'>;9linu) 5odifi amos el /r 3ivo:

'et 'gru-!d'!0_os"#rober: Este ar 3ivo ontiene omandos y s ripts que se en argan de otros sistemas operativos! El ar 3ivo tiene H se iones! (os am-ios que reali emos en una se i1n no afe tar*n al resto de las se iones! (as uatros se iones son $indo%s" otras parti iones (inu)" 0SD y <urd! /-rir 4i 3ero G;9os8pro-er: sudo editor 'et 'gru-!d'G;9os8pro-er 5odifi amos el /r 3ivo:

____________________________________________________________________________________ Pof: Porge Pu#adas Conde

ISTP Selva System


Tema:GRUB

------------------------------------------------------------------------------------------------------------------------------G! El ar 3ivo '-oot'gru-'grub$cdf Este es un ar 3ivo reado autom*ti amente por el sistema utili2ando otros ar 3ivos que son los que se de-en modifi ar para am-iar los a#ustes de Gru-@
6 6 .0 &0T E.IT T<IS 4I(E 6 6 It is automati ally generated -y gru-8mF onfig using templates 6 from 'et 'gru-!d and settings from 'et 'default'gru6 666 BEGI& 'et 'gru-!d';;93eader 666 if R 8s Sprefi)'gru-env TU t3en set 3ave9gru-env:true load9env fi set default:E>E if R ESVprev9saved9entryWE TU t3en set saved9entry:ESVprev9saved9entryWE save9env saved9entry set prev9saved9entry: save9env prev9saved9entry set -oot9on e:true fi fun tion savedefault V if R 82 ESV-oot9on eWE TU t3en saved9entry:ESV 3osenWE save9env saved9entry fi W fun tion re ordfail V set re ordfail:> if R 8n ESV3ave9gru-envWE TU t3en if R 82 ESV-oot9on eWE TU t3en save9env re ordfailU fiU fi W fun tion load9video V insmod v-e insmod vga insmod video9-o 3s insmod video9 irrus W insmod part9msdos insmod e)t@ set root:7('dev'sda"msdosI)7 sear 3 88no8floppy 88fs8uuid 88set:root J@@Jf-fK8e a 8Hfe>8M@KI8 eJa HJGdJIGI if loadfont 'usr's3are'gru-'uni ode!pf@ U t3en set gf)mode:auto load9video insmod gf)term fi terminal9output gf)term insmod part9msdos insmod e)t@ set root:7('dev'sda"msdosI)7 sear 3 88no8floppy 88fs8uuid 88set:root J@@Jf-fK8e a 8Hfe>8M@KI8 eJa HJGdJIGI set lo ale9dir:(Sroot)'-oot'gru-'lo ale set lang:es9PE insmod gette)t if R ESVre ordfailWE : > TU t3en set timeout:8> else set timeout:I fi 666 E&. 'et 'gru-!d';;93eader 666 666 BEGI& 'et 'gru-!d';I9de-ian9t3eme 666 set menu9 olor9normal:%3ite'-la F set menu9 olor93ig3lig3t:-la F'lig3t8gray if -a Fground9 olor HH";"G;U t3en lear fi 666 E&. 'et 'gru-!d';I9de-ian9t3eme 666 666 BEGI& 'et 'gru-!d'>;9linu) 666 if R SVre ordfailW X: > TU t3en if R 8e SVprefi)W'gf)-la Flist!t)t TU t3en if 3%mat 3 SVprefi)W'gf)-la Flist!t)t GU t3en if R SVmat 3W : ; TU t3en set linu)9gf)9mode:Feep else set linu)9gf)9mode:te)t fi else set linu)9gf)9mode:te)t fi else set linu)9gf)9mode:Feep fi else set linu)9gf)9mode:te)t fi e)port linu)9gf)9mode if R ESlinu)9gf)9modeE X: Ete)tE TU t3en load9videoU fi menuentry 7U-untu RSolo para GeeFT7 88 lass u-untu 88 lass gnu8linu) 88 lass gnu 88 lass os V re ordfail set gf)payload:Slinu)9gf)9mode insmod part9msdos insmod e)t@ set root:7('dev'sda"msdosI)7 sear 3 88no8floppy 88fs8uuid 88set:root J@@Jf-fK8e a 8Hfe>8M@KI8 eJa HJGdJIGI linu) '-oot'vmlinu28@!J!GL8L8generi root:UUI.:J@@Jf-fK8 e a 8Hfe>8M@KI8eJa HJGdJIGI ro quiet splas3 vt!3andoff:K initrd '-oot'initrd!img8@!J!GL8L8generi W 666 E&. 'et 'gru-!d'>;9linu) 666 666 BEGI& 'et 'gru-!d'@;9linu)9)en 666 666 E&. 'et 'gru-!d'@;9linu)9)en 666 666 BEGI& 'et 'gru-!d'G;9os8pro-er 666 menuentry E%indo%s K RSolo para &erdTE 88 lass %indo%s 88 lass os V insmod part9msdos insmod ntfs set root:7('dev'sda"msdos>)7 sear 3 88no8floppy 88fs8uuid 88set:root HJ4JLE.H4JLECH@> 3ainloader Q> W 666 E&. 'et 'gru-!d'G;9os8pro-er 666 666 BEGI& 'et 'gru-!d'H;9 ustom 666 6 T3is file provides an easy %ay to add ustom menu entries! Simply type t3e 6 menu entries you %ant to add after t3is omment! Be areful not to 3ange 6 t3e 7e)e tail7 line a-ove! 666 E&. 'et 'gru-!d'H;9 ustom 666 666 BEGI& 'et 'gru-!d'H>9 ustom 666 if R 8f Sprefi)' ustom! fg TU t3en sour e Sprefi)' ustom! fgU fi 666 E&. 'et 'gru-!d'H>9 ustom 666

____________________________________________________________________________________ Pof: Porge Pu#adas Conde

Vous aimerez peut-être aussi