You are not logged in.

#1 2013-05-19 16:38:57

alvrSG
Member
Registered: 2012-08-10
Posts: 5

Problem with GRUB2 and menuentry

Today I reinstalled Arch on my computer. I also have a partition with Windows and I want to add it to GRUB. But when I run grub-mkconfig I get this error:

/etc/grub.d/40_custom: línea 1: menuentry: no se encontró la orden
/etc/grub.d/40_custom: línea 2: error sintáctico cerca del elemento inesperado `('
/etc/grub.d/40_custom: línea 2: `    set root=(hd0,4)'

My fdisk -l result:

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1              63    60002774    30001356   83  Linux
/dev/sda2        60002775   327549284   133773255   83  Linux
/dev/sda3       327549285   335546367     3998541+   5  Extended
/dev/sda4   *   335546368  1250263039   457358336    7  HPFS/NTFS/exFAT
/dev/sda5       327549348   335546367     3998510   83  Linux
/dev/sda1 -> /
/dev/sda2 ---> /home
/dev/sda3 ---> Extended
/dev/sda4 ---> Windows 7
/dev/sda5 ---> swap

And my 40_custom:

menuentry "Windows 7" {
    set root=(hd0,4)
    chainloader(hd0,4)+1
}

Maybe is because I don't have /boot partition?

Offline

#2 2013-05-19 16:48:24

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Offline

#3 2013-05-19 19:15:02

alvrSG
Member
Registered: 2012-08-10
Posts: 5

Re: Problem with GRUB2 and menuentry

I also tried that before and I get practically the same errors:

/etc/grub.d/40_custom: línea 1: menuentry: no se encontró la orden
insmod: ERROR: could not load module part_msdos: No such file or directory
insmod: ERROR: could not load module ntfs: No such file or directory
insmod: ERROR: could not load module search_fs_uuid: No such file or directory
insmod: ERROR: could not load module ntldr: No such file or directory
/etc/grub.d/40_custom: línea 6: search: no se encontró la orden
/etc/grub.d/40_custom: línea 7: ntldr: no se encontró la orden
/etc/grub.d/40_custom: línea 8: error sintáctico cerca del elemento inesperado `}'
/etc/grub.d/40_custom: línea 8: `}'

Offline

Board footer

Powered by FluxBB