You are not logged in.

#1 2010-03-18 16:53:37

katun89
Member
Registered: 2010-01-07
Posts: 7

Grub2 troubles [SOLVED]

Hi guys,
I successfully pacmaned Grub2

[hysoka@myhost ~]$ sudo pacman -Qi grub2
Nome           : grub2
Versione       : 1.98-4
URL            : http://www.gnu.org/software/grub/
Licenze        : GPL3  
Gruppi         : Nessuno
Fornisce       : grub  
Dipende da     : sh  lzo2  freetype2  
Dip. opzionali : ruby:usr/share/grub/genmk.rb script
                 libusb: /sbin/grub-emu
Richiesto da   : Nessuno
Conflitti con  : grub  
Sostituisce    : Nessuno
Kb richiesti   : 5736,00 K
Autore         : Ronald van Haren <ronald.archlinux.org>
Architettura   : x86_64
Creato il      : mer 17 mar 2010 11:31:40 UTC
Installato il  : gio 18 mar 2010 16:17:13 UTC
Motivo         : Installato esplicitamente
Script install : No
Descrizione    : The GNU GRand Unified Bootloader

Edited the grub.cfg as I needed:

[hysoka@myhost ~]$ cat /boot/grub/grub.cfg 
# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,2)
#  /dev/sda3       (hd0,3)
#

# Timeout for menu
set timeout=2

# Set default boot entry as Entry 0
set default=0

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,5)
linux /boot/vmlinuz26 root=/dev/sda5 ro vga=773
initrd /boot/kernel26.img
}

# (1) Windows
menuentry "Fold" {
set root=(hd0,1)
chainloader +1
}

But after rebooting I had instead of the grub's menu the grub's shell sad
So I tried to install manually grub by its shell, and I found out that I had to place back again the menu.lst in order to make grub working again!
In fact, the configuration used now is the one defined by old menu.lst I restored.
But "pacman -Qi grub2" clearly keeps saying I got grub2 installed, and the wiki claim the "grub.cfg" to be the working configuraion file!!
What's going on? Here my boot directory:

[hysoka@myhost grub]$ ls /boot/grub/ | more
device.map
e2fs_stage1_5
fat_stage1_5
ffs_stage1_5
grub.cfg
grubenv
iso9660_stage1_5
jfs_stage1_5
menu.lst
menu.lst.pacsave
minix_stage1_5
reiserfs_stage1_5
stage1
stage2
stage2_eltorito
ufs2_stage1_5
vstafs_stage1_5
xfs_stage1_5
[hysoka@myhost grub]$

Last edited by katun89 (2010-03-19 09:20:35)

Offline

#2 2010-03-18 16:58:15

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Grub2 troubles [SOLVED]

Did you run grub-install on your MBR after installing Grub2?


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2010-03-18 17:01:10

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Grub2 troubles [SOLVED]

sHyLoCk wrote:

Did you run grub-install on your MBR after installing Grub2?

What he said ^. Confirm that the bootloader itself has been installed to the MBR. It sounds like you installed the package and configured it, but still have Grub legacy on the MBR.

Offline

#4 2010-03-18 17:53:46

katun89
Member
Registered: 2010-01-07
Posts: 7

Re: Grub2 troubles [SOLVED]

What an idiot big_smile
Thank you guys!!

Offline

#5 2010-03-18 18:24:13

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Grub2 troubles [SOLVED]

Glad you got it working. Please prepend [solved] to your OP title.

Offline

Board footer

Powered by FluxBB