View previous topic :: View next topic |
Author |
Message |
gonzu n00b
Joined: 22 Sep 2006 Posts: 3
|
Posted: Wed Oct 04, 2006 5:53 pm Post subject: Problema al arrancar el GRUB |
|
|
Hola a todos en el foro, antes que nada le comento que estoy dando mis primeros pasos con gentoo. Bueno resulta que instalé gentoo 2006 en una Compaq Evo d31d usando GRUB como gestor pero al momento de arracar el sistema aparece la leyenda: "GRUB Loading..." y de ahi no pasa. Alguien puede darme alguna luz para saber por que está mal.
Debo mencionar que seguí los pasos que indica el manual e instalé gentoo usando grub-install y usando el prompt interactivo.
Gracias de antemano,
Gonzalo. |
|
Back to top |
|
|
ekz l33t
Joined: 21 Jun 2006 Posts: 994 Location: Temuco - Chile
|
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Wed Oct 04, 2006 9:41 pm Post subject: |
|
|
Bienvenido al foro gonzu.
Seguramente sea un problema de configuración de Grub. Si no nos indicas como lo tienes configurado no podemos ayudarte .
Indicanos el contenido de /etc/fstab, el contenido de /boot/grub/grub.conf y la salida del comando fdisk -l |
|
Back to top |
|
|
gonzu n00b
Joined: 22 Sep 2006 Posts: 3
|
Posted: Thu Oct 05, 2006 12:12 am Post subject: |
|
|
Hola Stoz, te muestro la salida del comando fdisk y el contenido de los archivos que comentaste....
/etc/fstab
Code: | # /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / ext3 noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
/dev/hda2 none swap sw 0 0
/dev/hda3 /boot reiserfs defaults,noatime 1 2
/dev/hda5 /tmp reiserfs defaults,noatime 0 0
/dev/hda6 /home reiserfs defaults,noatime 0 0
/dev/hda7 / reiserfs noatime 0 1
none /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
fdisk -l
Code: | Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1403 11269566 7 HPFS/NTFS
/dev/hda2 1404 1465 498015 82 Linux swap / Solaris
/dev/hda3 1466 1477 96390 83 Linux
/dev/hda4 1478 2434 7687102+ 5 Extended
/dev/hda5 1478 1599 979933+ 83 Linux
/dev/hda6 1600 1903 2441848+ 83 Linux
/dev/hda7 1904 2434 4265226 83 Linux |
/etc/grub/grub.conf
Code: | timeout 30
default 0
title=Gentoo Linux 2.6.16-r5
root (hd0,2)
kernel /boot/kernel-2.6.17-custom-r5 root=/dev/hda7 ro quiet splash
savedefault
boot
title=Microsft Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
Gracias nuevamente. |
|
Back to top |
|
|
ekz l33t
Joined: 21 Jun 2006 Posts: 994 Location: Temuco - Chile
|
Posted: Thu Oct 05, 2006 12:29 am Post subject: |
|
|
/etc/fstab
Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / ext3 noatime 0 1
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
|
Esta parte se ve rara, ...nunca vi algo asi..yo que tu pruebo comentarla y pruebo..
Pero eso no deberia influir en GRUB... al parecer tu problemas es que no le diste la flag de booteo a tu hda3
(tuyo)
Code: | Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1403 11269566 7 HPFS/NTFS
/dev/hda2 1404 1465 498015 82 Linux swap / Solaris
/dev/hda3 1466 1477 96390 83 Linux
/dev/hda4 1478 2434 7687102+ 5 Extended
/dev/hda5 1478 1599 979933+ 83 Linux
/dev/hda6 1600 1903 2441848+ 83 Linux
/dev/hda7 1904 2434 4265226 83 Linux |
(mio)
Code: | Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sda2 2551 10011 59930482+ f W95 Ext'd (LBA)
/dev/sda5 2551 5884 26780323+ 83 Linux
/dev/sda6 * 5885 5889 40131 83 Linux
/dev/sda7 5890 6014 1004031 82 Linux swap / Solaris
/dev/sda8 6015 10011 32105871 83 Linux
|
_________________ Mi tumblelog |
|
Back to top |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Thu Oct 05, 2006 1:34 pm Post subject: |
|
|
Tienes todo un desaguisado en los archivos de configuracion.
Lo primero, en /etc/grub/grub.conf quita la linea que pone "boot" a secas, eso solo es necesario en la consola interactiva de Grub.
Lo segundo, para acotar el problema tambien quita "quiet splash", cuando consigas que arranque el sistema ya tendrás tiempo de adornarlo.
Lo tercero, en /etc/fstab has mezclado el contenido que viene como ejemplo con el tuyo propio, haciendo que existan puntos de montaje duplicados. Para empezar, las siguientes lineas sobran, que son solo ejemplos:
Code: | /dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/ROOT / ext3 noatime 0 1
/dev/SWAP none swap sw 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0 |
Además, la penúltima línea deberia de ser:
Code: | proc /proc proc defaults 0 0 | que si te fijas ya está indicada mas arriba, con lo que tambien te sobra.
Yo dejaria /etc/fstab así Code: | # <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/hda2 none swap sw 0 0
/dev/hda3 /boot reiserfs defaults,noatime 1 2
/dev/hda5 /tmp reiserfs defaults,noatime 0 0
/dev/hda6 /home reiserfs defaults,noatime 0 0
/dev/hda7 / reiserfs noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
proc /proc proc defaults 0 0 |
|
|
Back to top |
|
|
gonzu n00b
Joined: 22 Sep 2006 Posts: 3
|
Posted: Thu Oct 05, 2006 4:10 pm Post subject: |
|
|
Gracias por sus respuestas...ya he editado los archivos quedando de la siguiente manera:
/etc/fstab
Code: |
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/hda2 none swap sw 0 0
/dev/hda3 /boot reiserfs defaults,noatime 1 2
/dev/hda5 /tmp reiserfs defaults,noatime 0 0
/dev/hda6 /home reiserfs defaults,noatime 0 0
/dev/hda7 / reiserfs noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
/boot/grub/grub.conf
Code: |
timeout 15
default 0
title=Gentoo Linux 2.6.17-r5
root (hd0,2)
kernel /boot/kernel-2.6.17-custom-r5 root=/dev/hda7 ro
savedefault
title=Microsft Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
y marqué la partición /dev/hda3 que corresponde al boot para que fuese booteable.
fdisk -l
Code: |
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1403 11269566 7 HPFS/NTFS
/dev/hda2 1404 1465 498015 82 Linux swap / Solaris
/dev/hda3 * 1466 1477 96390 83 Linux
/dev/hda4 1478 2434 7687102+ 5 Extended
/dev/hda5 1478 1599 979933+ 83 Linux
/dev/hda6 1600 1903 2441848+ 83 Linux
/dev/hda7 1904 2434 4265226 83 Linux
|
pero aun asi sigue sin funcionar...volví a instalar grub desde el prompt interactivo:
Code: |
grub> root (hd0, 2)
grub> setup (hd0)
grub> quit
|
donde todos los comandos se ejecutan correctamente. Pero al reiniciar sigue apareciendo solo la leyenda "GRUB Loading...". Alguna otra idea de lo que pueda estar sucediendo?
Gracias de antemano,
Gonzalo. |
|
Back to top |
|
|
esteban_conde Veteran
Joined: 04 Jun 2003 Posts: 1670
|
Posted: Thu Oct 05, 2006 5:31 pm Post subject: |
|
|
Quote: | grub> root (hd0, 2)
grub> setup (hd0)
grub> quit |
prueba asi:
grub>root (hd0,6) <<Sin espacios>>.
grub>kernel (hd0,6)/boot/nombre_del_kernel
grub>setup (hd0)
si pones root(hd0,2) y no tienes hecho desde dentro de /boot un link simbolico contra si mismo ln -sf . boot no va a encontrar el kernel pues lo va a buscar en la raiz es decir /boot pero /boot no tiene ningun directorio que se llame boot.
mira esto:
Quote: | esteban@localhost ~ $ ls /
bin emul initrd_usb lib32 opt tmp
boot etc kernel-2.6.16 lib64 proc usr
cd floppy kernel-2.6.16.mov linuxrc root var
cdrom fotos_escritorio kernel_old media sbin www
copiar gst.txt kernel_usb mnt secrets.tdb
dev home lib montar sys
|
y ahora mira esto:
Quote: | esteban@localhost ~ $ cd /boot
esteban@localhost /boot $ ls
boot.0300
boot.b
grub
initramfs-genkernel-x86_64-2.6.14-gentoo-r5
kernel-genkernel-x86_64-2.6.14-gentoo-r5
map
System.map-2.6.11-gentoo-r3-k8
System.map-genkernel-x86_64-2.6.14-gentoo-r5
|
como ves grub se mete en boot sin saber como se llama para el es (hd0,2)
Creo que es eso no obstante no me denuncies si no te sale a la primera cambia alguna otra cosilla y prueba, ya nos contaras como te va. _________________ Saludos a tod@s, Esteban. |
|
Back to top |
|
|
|
|
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
|
|