Professional Documents
Culture Documents
Grub1: grub>
Para arrancar el sistema de forma correcta tenemos que establecer una
secuencia de tres comandos en la que especifiquemos lo siguiente:
grub> root
(hd0,0): Filesystem type is ext2fs, partition type 0x83
Grub 2:
Primero que nada, el archivo menu.lst no se utiliza más en Grub2. Su reemplazo es
grub.cfg. Pero este archivo no debería ser editado manualmente, sino que hay crear
un script en el destino /etc/grub.d/
ROOT
# fdisk -l
En donde tendremos una salida como esta:
ROOT
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x71487762
Creando el script
Ahora pasamos a crear el script. Se llamará 11_Windows y estará en el directorio
/etc/grub.d
ROOT
# nano /etc/grub.d/11_Windows
Completamos el archivo con este texto:
ROOT
#! /bin/sh -e
echo “Agregando Windows” >&2
cat « EOF
menuentry “Windows XP” {
set root=(hd0,1)
chainloader +1
}
EOF
Tener en cuenta que la entrada root puede ser diferente, depende del comando fdisk
-l que se mencionó antes. Si estuviera instalado Windows en hda2 (o sda2), sería
“set root=(hd0,2)”.
ROOT
# chmod a+x /etc/grub.d/11_Windows
Actualizamos Grub2:
ROOT
# update-grub2
Deberías visualizar algo como esto:
ROOT
# update-grub2
Updating /boot/grub/grub.cfg …
Found Debian background: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.26-rt1-rt
Found initrd image: /boot/initrd.img-2.6.26-rt1-rt
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found linux image: /boot/vmlinuz-2.6.25-2-686
Found initrd image: /boot/initrd.img-2.6.25-2-686
Agregando Windows
done
Noten el mensaje “Agregando Windows”
Para este punto, todo debería funcionar bien,[ reiniciamos el sistema y vemos que
cargue tanto Windows como GNU/Linux. Si esto se da, damos una instrucción final:
ROOT
# upgrade-from-grub-legacy
Con esta instrucción estaríamos instalado Grub2 en el MBR (Master Boot Record =
Registro de Booteo Principal).
FUENTE:
“https://wiki.argentop2p.net/doku.php?id=so:linux:grub2_arrancar_windo
ws”