You are not logged in.

#1 2013-12-11 15:25:17

robin_m
Member
Registered: 2013-12-11
Posts: 17

[SOLVED] installation of grub

Hi,
During arch's instalation, I had some trouble with grub2. I solved it with my ubuntu (I have ubuntu, arch and windows in parallel on my pc). Everything works on my archlinux, but I want to install grub on my archlinux instead of ubuntu.

I have no uefi, and a mbr partition scheme.
I follow the official guide https://wiki.archlinux.org/index.php/Gr … _systems_2.
After installing «grub» package, I tried « grub-mkconfig -o /boot/grub/grub.cfg ». My /etc/default/grub  and /etc/grub.d/* are defaul file. It found all my OS, but I get the following error :

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Image Linux trouvée : /boot/vmlinuz-linux
Image mémoire initiale trouvée : /boot/initramfs-linux.img
  No volume groups found
Windows Recovery Environment (loader) trouvé sur /dev/sda1
Ubuntu 13.10 (13.10) trouvé sur /dev/sda13
Windows 7 (loader) trouvé sur /dev/sda2
Ubuntu 13.04 (13.04) trouvé sur /dev/sda6
erreur : mémoire épuisée.
erreur : syntax error.
erreur : Incorrect command.
erreur : syntax error.
Erreur de syntaxe à la ligne 385
Des erreurs de syntaxe sont détectées dans le fichier de configuration
de GRUB. Veuillez vérifier qu'il n'y a pas d'erreur dans les fichiers
/etc/default/grub et /etc/grub.d/*. Sinon veuillez signaler un bogue
en joignant le fichier /boot/grub/grub.cfg.new.fait

I have not found a proper way to post the 385 line of and my  /boot/grub/grub.cfg.new

Last edited by robin_m (2013-12-11 16:32:35)

Offline

#2 2013-12-11 15:27:47

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] installation of grub

robin_m, welcome to Arch. Please search the forum before asking a question. It looks like you are having the same problem as the users in this topic: https://bbs.archlinux.org/viewtopic.php?id=173921

The solution is here: https://bbs.archlinux.org/viewtopic.php … 7#p1358407

Last edited by 2ManyDogs (2013-12-11 15:31:25)

Offline

#3 2013-12-11 15:29:30

Arctus
Member
Registered: 2012-07-14
Posts: 99

Re: [SOLVED] installation of grub

And you used the grub-install command as mentioned?
Also, please use LANG=C or similar when posting outputs, not everyone are used to translating error messages from French smile

Offline

#4 2013-12-11 15:58:21

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [SOLVED] installation of grub

2ManyDogs: It made reseach with google and duck duck go, and I had no found that topic. Thanks for the links. It seems to fix the problem. I reeboot and check it

ArctusArctus: I have not already used grub-install, because ubuntu's grub work fine and I want not to broke it if their is a problem with arch's grub config.
For the LANG=C , I saw their was a problem of translation, but I had no ideas how to solve it.

Why does I had to make a fix? It was a frech install, and I re-install grub with « pacman -Rn grub ; pacman -S grub », so I thought all config file were reset to default.

Offline

#5 2013-12-11 16:04:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] installation of grub

Please read https://wiki.archlinux.org/index.php/Fo … s_and_Code :-)
Run

LANG=C grub-mkconfig -o /boot/grub/grub.cfg

to get output in English.

Last edited by karol (2013-12-11 16:06:27)

Offline

#6 2013-12-11 16:12:41

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [SOLVED] installation of grub

Thanks all, it is fixed using (I check and reboot)

# Fix broken grub.cfg gen
GRUB_DISABLE_SUBMENU=y

karol : my question was not clear "Why I have to fix grub.cfg" even if it was a fresh install. Can this be a bug of grub ?

Offline

#7 2013-12-11 16:18:28

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [SOLVED] installation of grub

And sorry, I have not found the page that explain how to add the «fixed» status for the topic.

Offline

#8 2013-12-11 16:22:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] installation of grub

robin_m wrote:

And sorry, I have not found the page that explain how to add the «fixed» status for the topic.

https://bbs.archlinux.org/viewtopic.php?id=130309


It's also on the wiki page I linked to already, a bit further down: https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Last edited by karol (2013-12-11 16:23:35)

Offline

#9 2013-12-11 16:34:17

robin_m
Member
Registered: 2013-12-11
Posts: 17

Re: [SOLVED] installation of grub

Thanks a lot. I hope I will be less newbie next time!

Offline

Board footer

Powered by FluxBB