View previous topic :: View next topic |
Author |
Message |
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Tue Sep 28, 2004 10:45 pm Post subject: Kernel panic (RESOLVIDO) |
|
|
Olá pessoal
O problema é o seguinte:
Tinha o kernel dev gentoo 2.6.5, mas decidi fazer um update para o kernel dev gentoo 2.6.8-r3 por causa de um kernel nvidia qualquer que só dava apartir do 2.6.6. Bem segui os trámites normais, compilei o kernel usando o .config do 2.6.5 e não deu problemas. Estes só começaram quando fiz um reboot, com a seguinte mensagem:
Code: | VFS: cannot open root device "hda3" or unknown-block (3,3)
Please append a correct "root=" boot option
Kernel Panic:VFS:Unable to mount root fs on unknown-block (3,3) |
Isto é estranho porque eu usei a mesma configuração da compliação do 2.6.5 e MAIS NADA.
O meu grub é o seguinte:
Code: | default 1
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.5 (usb)
root (hd0,0)
kernel /kernel-2.6.5-gentoo-r1c root=/dev/hda3
title=Gentoo Linux 2.6.8 r6
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r6 root=/dev/hda3 |
O meu fstab é este:
/ Code: | dev/hda1 /boot ext2 noauto,noatime 1 1
/dev/hda3 / reiserfs noatime 0 0
/dev/hda2 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!
none /proc proc defaults 0 0 |
O FS na compilação é esta:
Code: | # File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
CONFIG_REISERFS_CHECK=y
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_REISERFS_FS_SECURITY=y
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
CONFIG_AUTOFS_FS=y
CONFIG_AUTOFS4_FS=y |
Acho esta está tudo normal, mas onde estará o problema?
Preciso da vossa ajuda!
Obrigado pela atenção
r444
Last edited by r444 on Wed Sep 29, 2004 10:56 pm; edited 1 time in total |
|
Back to top |
|
|
Giuliani n00b
Joined: 15 Jul 2004 Posts: 61
|
Posted: Tue Sep 28, 2004 10:54 pm Post subject: Re: Kernel panic |
|
|
r444 wrote: |
Code: | default 1
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.5 (usb)
root (hd0,0)
kernel /kernel-2.6.5-gentoo-r1c root=/dev/hda3
title=Gentoo Linux 2.6.8 r6
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r6 root=/dev/hda3 |
r444 |
Não sei se posso falar muito na minha experiência de uma instalação sofrida do gentoo, porém acredito q ou vc usar o 2.6.5 ou o 2.6.8. No grub acima vc especificou os dois. Vc não precisa remover o antigo até ter certeza de o seu 2.6.8 funciona de acordo, pois caso de galho vc pode trocar o link simbólico e as conf. do grub para o kernel antigo. |
|
Back to top |
|
|
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Tue Sep 28, 2004 11:02 pm Post subject: |
|
|
Não sei se percebi a dica, mas eu não apaguei nada o 2.6.5 continua lá
Obrigado na mesma,
r444 |
|
Back to top |
|
|
Giuliani n00b
Joined: 15 Jul 2004 Posts: 61
|
Posted: Wed Sep 29, 2004 1:35 am Post subject: |
|
|
O q eu quis dizer é que no grub, ou você tem esse
Code: |
title=Gentoo Linux 2.6.5 (usb)
root (hd0,0)
kernel /kernel-2.6.5-gentoo-r1c root=/dev/hda3
|
ou você tem esse:
Code: |
title=Gentoo Linux 2.6.8 r6
root (hd0,0)
kernel /kernel-2.6.8-gentoo-r6 root=/dev/hda3
|
"Acho" q até da pra colocar os dois, mas dai caso você selecione o antigo pode dar esse erro...
Mas como coloquei acim "acho"!! |
|
Back to top |
|
|
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Wed Sep 29, 2004 8:06 am Post subject: |
|
|
Não acho que o problema esteja aí, porque já tive 5 kernels a funcionar através do grub e não havia problemas.
r444 |
|
Back to top |
|
|
Mythos l33t
Joined: 02 May 2004 Posts: 953 Location: Portugal
|
Posted: Wed Sep 29, 2004 11:12 am Post subject: |
|
|
já fizeste um fdisk
Code: | fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4792 38491708+ 7 HPFS/NTFS
/dev/hda2 4793 9650 39021885 83 Linux
/dev/hda3 9651 9729 634567+ f W95 Ext'd (LBA)
/dev/hda5 9651 9659 72261 83 Linux
/dev/hda6 9660 9729 562243+ 83 Linux |
para veres ao certo se estão bem atribuidas as partições ?
aqui está o meu fstab:
Code: | # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda5 /boot ext3 noauto,noatime 1 2
/dev/hda2 / reiserfs noatime 0 1
/dev/hda6 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!
none /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)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0 |
Já tentaste meter em vez de 0 0, 0 1 na reiserfs ?
O meu grub.conf!
Code: | splashimage=(hd0,4)/grub/splash.xpm.gz
timeout 7
default 0
fallback 0
title Gentoo
root (hd0,4)
kernel /gentoo-dev-sources-2.6.8-r3 root=/dev/hda2 acpi=force video=vesafb:ywrap,pmipal,1280x1024-32@60 splash=silent,theme:emergence
initrd=/boot/fbsplash-emergence-1280x1024
#initrd=/boot/initrd-1280x1024
title Windows XP SP2
rootnoverify (hd0,0)
makeactive
chainloader +1 |
a Unica diferença que vejo é no 0 0 para 0 1 ... _________________ 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 |
|
|
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Wed Sep 29, 2004 1:10 pm Post subject: |
|
|
Acho estranho que o problema seja no fstab, porque este é usado no kernel 2.6.5 (VER grub.conf) que funciona às mil maravilhas. O problema é no último kernel 2.6.8. Deve faltar qualquer coisa no .config. Mas mesmo aí tenho dúvidas porque eu usei o mesmo que no kernel que funciona (2.6.5).
Obrigado na mesma
r444 |
|
Back to top |
|
|
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Wed Sep 29, 2004 9:22 pm Post subject: |
|
|
No ideias ?
r444 |
|
Back to top |
|
|
r444 Tux's lil' helper
Joined: 07 Jun 2004 Posts: 91 Location: Porto -Portugal
|
Posted: Wed Sep 29, 2004 10:55 pm Post subject: |
|
|
Consegui !!!!
Pelos vistos há problemas quando se importa o .config de compilações anteriores!!!!!
O problema estava no DEVFS que estava seleccionado mas na realidade não estava?!?!?!
r444 |
|
Back to top |
|
|
|