Significado do root no arquivo de configuração do GRUB

2

Consultando aqui

com uma configuração como

grub> root (hd0,0)
grub> kernel /vmlinuz-i686-up-4GB root=/dev/hda9
grub> boot

The preceding is usually sufficient to boot a Linux box. The standalone root statement tells the partition containing the kernel. The kernel statement describes the path and filename, within the partition containing the kernel of the kernel. The argument to the root= argument to the kernel statement tells the partition containing /sbin/init, which of course turns out to be the root partition in the booted system. 

Be careful of these duelling root keywords. The standalone one is the root as seen from grub, and contains the kernel. The argument to the kernel statement is the root as seen from the fully booted system, and contains /sbin/init.

Eu não entendo bem o significado dos 2 root configs. Isso significa que o SO permanece no /dev/hda9 para ser montado em (hd0, 0) ou o SO é /vmlinuz para ser montado em /dev/had9 ?

    
por Kenny 15.01.2016 / 12:07

1 resposta

1

root (hd0,0) - Configures the root partition for GRUB, such as (hd0,0) first hard disk, first Partition and mounts the partition.

kernel /vmlinuz-i686-up-4GB root=/dev/hda9 - Specifies the kernel location which is inside the /boot folder. This location is related to the root(hd0,0) statement.The root partition is specified according to the Linux naming convention (/dev/hda9/)

A imagem do Kernel será montada no sistema de arquivos raiz (/ dev / hda9)

    
por 15.01.2016 / 12:34