Grub de Linux (V). Notacions de l'Grub

Vam arribar a la fin del lliurament sobre notacions de Grub, òbviament hi ha moltes més però només ens hem detingut a explicar les més importants sobre l'arrencada de l'Grub i que solen interferir en gairebé tots els problemes que es reporten de corrupció.

Grub de Linux

Vegem alguns exemples més.

El següent exemple s'escriu al menu.lst d'Ubuntu

title Windows 95/98 / NT / 2000
arrel (hd0,0)
fer actiu
chainloader +1

title Linux
arrel (hd0,1)
kernel / vmlinuz root = / dev / hda3 ro

Comencem amb el títol. Arran especifica la partició on s'espera trobar el nucli de Windows i el munta.

la comanda fer actiu estableix la partició activa del disc arrel en el dispositiu arran d'GRUB. Això vol dir que la següent comanda carregador de cadena, S'executa sense la partició de destinació especificat

La segona entrada és encara més simple. Fem una crida a un sistema Linux des de la seva partició per arrencar el nucli. En aquest cas veiem la imatge de l'nucli i l'arrel (/) a la partició de sistema operatiu que no es troben en la mateixa partició. Aquest seria un cas molt probable en els equips més antics o que tenen una partició d'arrencada específic.

Notacions poc usuals.

# Grub menu booting 103 systems out of 144 partitions

color white / blue black / light-gray
predeterminat 0
temps d'espera 1000

# Disk hda has 60 partitions fully populated 56 are bootable systems 

title DOS 6.22 @ hda1
unhide (hd0,0)
arrel (hd0,0)
chainloader +1           

# Hda2 is the extended partition and has no storage space itself

title Empty @ hda3 #initially utilitzant BSD system moved to another disk
arrel (hd0,2)
chainloader +1

title Empty @ hda4 # initially used by a BSD system moved to another disk
arrel (hd0,3)
chainloader +1

# Hda5 is a swap partition common to all Linux in the box

title Puppy 1.0.6 @ hda6
arrel (hd0,5)
chainloader +1

title Arch 0.71 @ hda7
arrel (hd0,6)
chainloader +1

title Mandrake 9.2 @ hda8
arrel (hd0,7)
chainloader +1

title Suse 9.1 pro @ hda9
arrel (hd0,8)
chainloader +1

title Elive 0.3 @ hda10
arrel (hd0,9)
chainloader +1

title Red Hat 9 @ hda11
arrel (hd0,10)
chainloader +1

title Lycoris 4 @ hda12
arrel (hd0,11)
chainloader +1

title Libranet 2.8.1 @ hda13
arrel (hd0,12)
chainloader +1

title Mandrake 10 @ hda14
arrel (hd0,13)
chainloader +1

title Debian Woody @ hda15
arrel (hd0,14)
chainloader +1
 

title Yoper 2.0.0 @ hda16
arrel (hd0,15)
chainloader +1

title Knoppix 3.6 @ hda17
arrel (hd0,16)
chainloader +1

title Bufflo 1.5 @ hda18
arrel (hd0,17)
chainloader +1

title Kanotix 2004.9 @ hda19
arrel (hd0,18)
chainloader +1

title Kalango 3.2 @ hda20
arrel (hd0,19)
chainloader +1

title Blax 30001 @ hda21
arrel (hd0,20)
chainloader +1

title Fedora Core 4 @ hda22
arrel (hd0,21)
chainloader +1

title Debian Sarge (booted directly because hi ha partitions sense suport) in hda23
arrel (hd0,22)
nucli /boot/vmlinuz-2.4.27-2-386 root = / dev / hda23 ro
initrd /boot/initrd.img-2.4.27-2-386

title Xarxa Flag 4.1 @ hda24
arrel (hd0,23)
chainloader +1

title Linare prof Edition 2 @ hda25
arrel (hd0,24)
chainloader +1

title Tiny Sofa 2.0 @ hda26
arrel (hd0,25)
chainloader +1

title Slackware 10.0 @ hda27
arrel (hd0,26)
chainloader +1

title Xandres 201 @ hda28
arrel (hd0,27)
chainloader +1

title Vaig venir 3.2 @ hda29
arrel (hd0,28)
chainloader +1

title Specifix 0.15 @ hda30
arrel (hd0,29)
chainloader +1

title Ubunt 5.04 @ hda31
arrel (hd0,30)
chainloader +1

title PCLinuxOS 9.1 @ hda32
arrel (hd0,31)
chainloader +1

# Here is the approximate 137GB barrier in the hard disk hda

title Asian Linux @ hda33
arrel (hd0,32)
chainloader +1

title Ubuntu 6.04 Dapper (by direct boot) @ hda34
arrel (hd0,33)
nucli /boot/vmlinuz-2.6.15-8-386 root = / dev / hda34 ro quiet splash
initrd /boot/initrd.img-2.6.15-8-386

title Wolvix 1.0.4 @ hda35
arrel (hd0,34)
kernel / boot / vmlinuz rw root = / dev / hda35

title Mepis 3.4.2 rc1 (by direct booting) @ hda36
arrel (hd0,35)
nucli /boot/vmlinuz-2.6.12-1-586tsc root = / dev / hda36 nomce quiet splash = verbose vga = 791
initrd /boot/initrd.img-2.6.12-1-586tsc
 

title TurboLinux V7 @ hda37 (boot with Slackware 10 nucli in hda27 + rw)
arrel (hd0,36)
nucli (hd0,26) / boot / vmlinuz rw root = / dev / hda37

title SLAMPP 1.1 @ hda38
arrel (hd0,37)
chainloader +1

title Slax 5.0.4 @ hda39
arrel (hd0,38)
chainloader +1

title PCLinuxOS 0.92 @ hda40
arrel (hd0,39)

chainloader +1
             

title Sam 1.1 @ hda41
arrel (hd0,40)
chainloader +1

title Vector 5.1 @ hda42
arrel (hd0,41)
chainloader +1

title Suse 10.0 @ hda43
arrel (hd0,42)
chainloader +1

title Kororaa 2005 Beta 2 @ hda44
arrel (hd0,43)
chainloader +1                 

title smgl 0.45 @ hda45
arrel (hd0,44)
kernel / boot / vmlinuz root = / dev / hda45 ro

title Lunar 1.6 @ hda46
arrel (hd0,45)
nucli /boot/2.6.14.1-normal ro root = / dev / hda46 devfs = no mount     

title Foresight 0.93 @ hda47
arrel (hd0,46)
chainloader +1               

title Skolelinux Pro 6 in hda48
arrel (hd0,47)
nucli /boot/vmlinuz-2.6.8-2-386 root = / dev / hda48 ro
initrd /boot/initrd.img-2.6.8-2-386                           

title Kubuntu dapper in hda49
arrel (hd0,48)
nucli /boot/vmlinuz-2.6.12-9-386 root = / dev / hda49 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386

title Klax 3.5 @ hda50
arrel (hd0,49)
chainloader +1

title K12LTSP 4.10 (need rw switch on) @ hda51
arrel (hd0,50)
nucli /boot/vmlinuz-2.6.7-1.494.2.2 rw root = / dev / hda51
initrd /boot/initrd-2.6.7-1.494.2.2.img                           

title Progeny 2.0 booted by Slackware 's nucli @ hda52
arrel (hd0,51)
nucli (hd0,26) / boot / vmlinuz ro root = / dev / hda52

title grml 0.5 @ hda53
arrel (hd0,52)
chainloader +1                 

title Fedora Core 2 @ hda54 (must be booted directly with rw switch)
arrel (hd0,53)
nucli /boot/vmlinuz-2.6.5-1.358 rw root = / dev / hda54
initrd /boot/initrd-2.6.5-1.358.img       

title Whax 3.0 @ hda55
arrel (hd0,54)
chainloader +1

title Troppix 1.2 @ hda56
arrel (hd0,55)
chainloader +1                 

title TopologLinux 6.0 @ hda57
arrel (hd0,56)
chainloader +1                 

title Haansoft 2006 ws @ hda58
arrel (hd0,57)
chainloader +1

title Fedora Core 3 @ hda59
arrel (hd0,58)
chainloader +1                 

title Scientific Linux (with rw) @ hda60
arrel (hd0,59)
nucli /boot/vmlinuz-2.6.9-5.0.5.EL rw root = / dev / hda60 rhgb quiet
initrd /boot/initrd-2.6.9-5.0.5.EL.img

# Disk hdc has 54 partitions with 30 systems

title Dues 7.10 @ hdc1
hide (hd0,0)
unhide (hd1,0)
mapa (hd1) (hd0)
mapa (hd0) (hd1)
arrel (hd1,0)
fer actiu
chainloader +1

title Win98 @ hdc2
hide (hd0,0)
hide (hd1,0)
unhide (hd1,1)
arrel (hd1,1)
fer actiu
mapa (hd1) (hd0)
mapa (hd0) (hd1)
chainloader +1

title Empty @ hdc3
arrel (hd1,2)
chainloader +1

# Esteneu partition is hdc4

title B2d Pure KDE 2005 @ hdc5
arrel (hd1,4)
chainloader +1

title CollegeLinux 2.5 @ hdc6
arrel (hd1,5)
chainloader +1

title Berry 0.65 @ hdc7
arrel (hd1,6)
chainloader +1

title Morhpix KDE 0.4 @ hdc8
arrel (hd1,7)
chainloader +1

title Feather 0.6 @ hdc9
arrel (hd1,8)
chainloader +1

title Buffalo 1.7.3.9 @ hdc10
arrel (hd1,9)
chainloader +1

title CentOS 4.1 @ hdc11
arrel (hd1,10)
chainloader +1

title Vector 4.3 @ hdc12
arrel (hd1,11)
chainloader +1

title Tao Linux 4.0 @ hdc13
arrel (hd1,12)
chainloader +1

title Frugaalware 0.1 @ hdc14
arrel (hd1,13)
chainloader +1

title AGNULA Demudi 1.2 @ hdc15
arrel (hd1,14)
chainloader +1

title Damn Small Linux @ hdc16
arrel (hd1,15)
chainloader +1

title Monoppix 1.1.8 booted by Slackware 10.2 nucli from (hd1,34) @ hdc17
arrel (hd1,16)
nucli (hd1,34) / boot / vmlinuz ro root = / dev / hdc17

title Symphony A4 @ hdc18
arrel (hd1,17)
chainloader +1

title Pocket Linux 1.2 @ hdc19
arrel (hd1,18)
chainloader +1

title UltimaLinux 4.0 @ hdc20
arrel (hd1,19)
chainloader +1

title VLOS 1.2 @ hdc21
arrel (hd1,20)
nucli /boot/vmlinuz-2.6.12-vidalinux_r3 ro root = / dev / ram0 init = / linuxrc real_root = / dev / hdc21 vídeo = vesafb: 1024 × 768-32 @ 85 splash = silent, theme: vlos-1.2 quiet CONSOLE = / dev / tty1
initrd /boot/initrd-2.6.12-vidalinux_r3.img

title Tiny Sofa (Ceara) @ hdc22
arrel (hd1,21)
chainloader +1

title 64 Studio 0.6 @ hdc23
arrel (hd1,22)
nucli /boot/vmlinuz-2.6.13-1-multimedia-amd64-generic root = / dev / hdc23 ro vga = 791 splash = silent
initrd /boot/initrd.img-2.6.13-1-multimedia-amd64-generic

title Empty @ hdc24
arrel (hd1,23)
chainloader +1

title Empty @ hdc25
arrel (hd1,24)
chainloader +1

title Empty @ hdc26
arrel (hd1,25)
chainloader +1

# Here is the approximate boundary of the 137GB barrier of hdc

title Empty @ hdc27
arrel (hd1,26)
chainloader +1

title Empty @ hdc28
arrel (hd1,27)
chainloader +1

title Empty @ hdc29
arrel (hd1,28)
chainloader +1

title Empty @ hdc30
arrel (hd1,29)
chainloader +1

title rPath 0.99.2 @ hdc31
arrel (hd1,30)
chainloader +1

title STX 1.0 rc2 @ hdc32
arrel (hd1,31)
chainloader +1

title Fedora Core 5 @ hdc33
arrel (hd1,32)
chainloader +1

title StartCom 4.0.4 Raam @ hdc34
arrel (hd1,33)
chainloader +1

title Slackware 10.2 @ hdc35
arrel (hd1,34)
chainloader +1

title Foresight Foresight 0.9 @ hdc36
arrel (hd1,35)
nucli /boot/vmlinuz-2.6.12.5-fdl.2.x86.i686.cmov ro root = / dev / hdc36 splash = silent vga = 791 quiet
initrd /boot/initrd-2.6.12.5-fdl.2.x86.i686.cmov.img

title Xandres 3.0 @ hdc37
arrel (hd1,36)
chainloader +1

title Ubuntu 5.10 Breezy Badger @ hdc38
arrel (hd1,37)
chainloader +1

title Kate 2.2 (booted by Suse 10 Kernel in hdc43) @ hdc39
arrel (hd1,38)
nucli (hd0,42) / boot / vmlinuz ro root = / dev / hdc39
initrd (hd0,42) / boot / initrd

# Partitions hdc40 to hdc54 are partitions each 200Mb for grub working es submenus.

title Grub menu for MS systems only (Dos i Windows) @ hdc40
arrel (hd1,26)
chainloader +1

title Grub menu for recent additions @ hdc41
arrel (hd1,40)
chainloader +1

title Grub menu for only small distros @ hdc42
arrel (hd1,41)
chainloader +1

title Grub menu for only large distros @ hdc43
arrel (hd1,42)
chainloader +1

title Grub reserved menu (Empty) @ hdc44
arrel (hd1,43)
chainloader +1

title Grub menu for IDE disk hda only @ hdc45
arrel (hd1,44)
chainloader +1

title Grub menu for IDE disk hdc only @ hdc46
arrel (hd1,45)
chainloader +1

title Grub menu for Sata disk sda only @ hdc47
arrel (hd1,46)
chainloader +1

title Grub menu for Sata disk sdb only @ hdc48
arrel (hd1,47)
chainloader +1

title Completi menú per all 100+ systems @ hdc49
arrel (hd1,48)
chainloader +1

title Màster Menú to boot submenus @ hdc50
arrel (hd1,49)
chainloader +1

title Grub reserved menu (Empty) @ hdc51
arrel (hd1,50)
chainloader +1

title Grub reserved menu (Empty) @ hdc52
arrel (hd1,51)
chainloader +1

title Grub reserved menu (Empty) @ hdc53
arrel (hd1,52)
chainloader +1

title Grub reserved menu (Empty) @ hdc54
arrel (hd1,53)
chainloader +1

# Third disk sda és a Sata with 15 partitions, 9 are bootable

title XP pro @ sdb1
hide (hd0,0)
hide (hd1,0)
hide (hd1,1)
unhide (hd2,0)
mapa (hd2) (hd0)
mapa (hd0) (hd2)
arrel (hd2,0)
fer actiu
chainloader +1

title Empty @ sda2
arrel (hd2,1)
chainloader +1

title Empty @ sda3
arrel (hd2,2)
chainloader +1

# Esteneu partition here is the sdb4

title Empty @ sda5
arrel (hd2,4)
chainloader +1

title Ututu x2 2005.1 @ sda6
arrel (hd2,5)
chainloader +1

title Helix 1.7 @ sda7
arrel (hd2,6)
chainloader +1

title MagicLinux 2.0 rc2 @ sda8
arrel (hd2,7)
chainloader +1

title Zenwalk 1.2 @ sda9
arrel (hd2,8)
chainloader +1

title MedianLinux 4 RC5 @ sda10
arrel (hd2,9)
chainloader +1

title NetBSD i386 3.0 RC6 @ sda11
arrel (hd2,10)
chainloader +1

title Arabian 0.6 rc1 @ sda12
arrel (hd2,11)
chainloader +1

title Mepis 3.3.2 @ sda13
arrel (hd2,12)
chainloader +1

# Persinal data partion @ sda14 

title Empty @ sda15
arrel (hd2,14)
chainloader +1

# Fourth disk sdb és a Sata with 15 partitions, 8 are bootable

title Win2K @ sdb1
hide (hd0,0) # hiding DOS 6.22 partition in hda1
hide (hd1,0) # hiding DOS 7.10 partition in hdc1
hide (hd1,1) # hiding Win98 partition in hdc2
hide (hd2,0) # hiding Win XP partition in sda1
unhide (hd3,0) # unhide Win2K partition for execution
arrel (hd3,0)
fer actiu
mapa (hd3) (hd0)
mapa (hd0) (hd3)
chainloader +1

title FreeDOS @ sdb2
hide (hd0,0) # hiding DOS 6.22 partition in hda1
hide (hd1,0) # hiding DOS 7.10 partition in hdc1
hide (hd1,1) # hiding Win98 partition in hdc2
hide (hd2,0) # hiding Win XP partition in sda1
hide (hd3,0) # hiding Win2K partition in sdb1
unhide (hd3,1)
arrel (hd3,1)
fer actiu
mapa (hd3) (hd0)
mapa (hd0) (hd3)
chainloader +1

title Empty @ sdb3
arrel (hd3,4)
chainloader +1

# Partition sdb4 is an extended partition

title NetBSD 3.0 AMD64 @ sdb5
arrel (hd3,4)
chainloader +1

title Empty @ sdb6
arrel (hd3,5)
chainloader +1

title Empty @ sdb7
arrel (hd3,6)
chainloader +1

title Frugalware 0.4 @ sdb8
arrel (hd3,7)
chainloader +1

title Empty @ sdb9
arrel (hd3,8)
chainloader +1

title Quantian 0.7.9.1 @ sdb10
arrel (hd3,9)
chainloader +1

title Suse 10.1 x86 64 @ sdb11
arrel (hd3,10)
chainloader +1

title Empty @ sdb12
arrel (hd3,11)
chainloader +1

title Knoppix 4.0.2 @ sdb13
arrel (hd3,12)
chainloader +1

title Mandriva Release 2006 @ sdb14
arrel (hd3,13)
chainloader +1

title Empty @ sdb15
arrel (hd3,14)
chainloader +1

Tota aquesta sintaxi correspon a un sol menú de Grub que inclou més de cent sistemes operatius, Concretament:

3 sistemes Dos
3 finestres
2 Solaris
5 BSD
97 Linux

Amb aquest megagrup completem el tema de les notacions de Grub però continuarem amb altres aspectes sobre el seu funcionament ja que aquest tema és prou extens com per abordar-lo en una sola secció.


Deixa el teu comentari

La seva adreça de correu electrònic no es publicarà. Els camps obligatoris estan marcats amb *

*

*

  1. Responsable de les dades: AB Internet Networks 2008 SL
  2. Finalitat de les dades: Controlar l'SPAM, gestió de comentaris.
  3. Legitimació: El teu consentiment
  4. Comunicació de les dades: No es comunicaran les dades a tercers excepte per obligació legal.
  5. Emmagatzematge de les dades: Base de dades allotjada en Occentus Networks (UE)
  6. Drets: En qualsevol moment pots limitar, recuperar i esborrar la teva informació.