Parametri di avvio di Grub

From RVM Wiki
Revision as of 18:15, 13 June 2005 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


In caso Grub non parta automaticamente, è possibile specificare a mano come caricare il kernel.


Attivazione della console

Al boot, premere 'c'

Viene presentato il prompt di Grub:

     GNU GRUB   version 0.95  (638k lower / 128960k upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filenames   ESC at any time exits.  ]

grub>


Inputazione dei comandi

Indicare su che disco e partizione trovare la root:

  • root($hd,$partition)

Come per tutti i parametri, sare il tab per farsi suggerire i nomi, esempio:

grub> root (TAB
  Possible disks are  fd0 hd0

grub> root(hd0,TAB
  Possible partitions are:
  Partition num: 0,    Filesystem type is ext2fs, partiton type 0xfd
  Partition num: 1,    Filesystem type is unknown, partiton type 0xfd

Esempio, per hard disk primario, prima partizione:

root (hd0,0)

Indicare la posizione ed il nome del kernel (usare TAB per completare il nome):

  • kernel /$percorso/$nome_file_kernel

Esempio:

kernel /vmlinuz-2.4.20-20.9smp root=/dev/sda3

Indicare il ramdisk:

  • initrd /$percorso/$nome_file_initrd

Esempio

initrd /initrd-2.4.20-20.9smp.img

Lanciare il boot con i parametri precedentemente specificati:

boot

"The system boots without any problems."