Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB ! (grub.conf)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Caio.Moreira
n00b
n00b


Joined: 03 Aug 2004
Posts: 3

PostPosted: Tue Aug 03, 2004 2:44 am    Post subject: GRUB ! (grub.conf) Reply with quote

AÊ pessoal to instalando o Gentoo aqui em casa e to com alguns probleminhas na hora de configurar o boot loader (GRUB)
Antes de postar os problemas vou mostrar como a minha hd está:

(Gentoo):
HDA2----------PRIMARY-----SWAP
HDA4----------PRIMARY-----LINUX-ROOT
HDA3----B----PRIMARY-----LINUX-BOOT
(WindowsXP):
HDA1----------PRIMARY-----NTFS

eu baixei normalmente o grub usando:
emerge grub
dai instalou o pacote tudo mais...daí digitei
grub
foi para o grub>
lá digitei:
root (hd0,2)
setup(hd0)
Me mostrou mensagens e pareceu ter instalado com sucesso...
Fui configurar /boot/grub/grub.conf
e obtive problemas ao bootar minha máquina (entra no windowsXp normalmente) mas quando vou entrar no Gentoo obtenho o erro:

Boot 'Gentoo 2004.2'
root (hd0,2)
Kernel boot/kernel-2.4.6 ro root=/dev/hda4
Error 1: filename must be either and absolute pathname or blocklist

MEU GRUB.CONF:

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 1

# Fallback to the second entry.
fallback 1

# For booting GNU/Linux
#
title GENTOO
#
# OK - particao boot-1
root (hd0,2)
#
# OK - particao raiz
kernel /boot/kernel-2.4.6 ro root=/dev/hda4
#
# NOT USED
#initrd /initrd.img
#
# OK
splashimage=(hd0,2)/grub/splash.xpm.gz

For booting Windows NT or Windows95
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1


Como devo configurar meu grub.conf adequadamente ?

Obrigado.
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Tue Aug 03, 2004 3:06 am    Post subject: Reply with quote

o Meu Desktop:
Code:
splashimage=(hd0,4)/grub/splash.xpm.gz
timeout 7

default 0

fallback 0

title  Gentoo 2004.1
root (hd0,4)
kernel /gentoo-dev-sources-2.6.7-r11 root=/dev/hda2 acpi=on video=vesafb:ywrap,mtrr vga=0x31A
initrd=/boot/initrd-1280x1024

title Windows XP SP1
rootnoverify (hd0,0)
makeactive
chainloader  +1


O meu "Servidor":

Code:
splashimage=(hd0,0)/grub/splash.xpm.gz
timeout 0
title  Gentoo 2004.2
root (hd0,0)
kernel /hardened-dev-sources-2.6.7-r4 root=/dev/hda3 doscsi acpi=on video=vesafb:ywrap,mtrr vga=0x317
initrd=/boot/initrd-1024x768


video=vesafb:ywrap,mtrr vga=0x317

mete isso so se tiveres bootsplash, casao não tenhas podes esquecer essa linha.

_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Caio.Moreira
n00b
n00b


Joined: 03 Aug 2004
Posts: 3

PostPosted: Tue Aug 03, 2004 3:17 am    Post subject: Reply with quote

você personalizou o .conf pra mim ou isso foi um exemplo ?
Back to top
View user's profile Send private message
Mythos
l33t
l33t


Joined: 02 May 2004
Posts: 953
Location: Portugal

PostPosted: Tue Aug 03, 2004 3:56 am    Post subject: Reply with quote

Foi o que usei para configurar o grub em dois PC's meus.

Mas o teu seria algo deste género:
(atendendo aos teus dados da particao)
Code:
splashimage=(hd0,2)/grub/splash.xpm.gz
timeout 7
default 0
fallback 0
title  Gentoo 2004.1
root (hd0,2)
kernel /nome_kernel-versao root=/dev/hda4

title Windows XP SP1
rootnoverify (hd0,0)
makeactive
chainloader  +1


nota não te esqueças depois de compilares o kernel:

cp .config /boot/config-nome_kernel-versao
cp System.map /boot/System.map-nome_kernel-versao
cp arch/i386/boot/bzImage /boot/nome_kernel-versao

_________________
Best Regards,
Sérgio Henrique
Linux dune 3.0.6-gentoo #1 SMP Thu Oct 27 16:47:29 WEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Gotterdammerung
l33t
l33t


Joined: 11 Feb 2004
Posts: 627
Location: Rio de Janeiro, Brazil

PostPosted: Tue Aug 03, 2004 1:13 pm    Post subject: Reply with quote

Mythos wrote:

nota não te esqueças depois de compilares o kernel:

cp .config /boot/config-nome_kernel-versao
cp System.map /boot/System.map-nome_kernel-versao
cp arch/i386/boot/bzImage /boot/nome_kernel-versao


eu sugiro fazer:

Code:

$ emerge genkernel
$ genkernel --menuconfig --bootsplash all

_________________
A mind that is stretched by a new experience can never go back to its old dimensions. - Oliver Wendell Holmes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum