Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel Panic
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 8:41 pm    Post subject: Reply with quote

DONAHUE wrote:
Are you still using lilo vice grub?


Yes, I am. Grub gave me errors so rather than trying to fix them, I just as soon would use lilo.

I assumed that since the kernel was loading there was no issues with lilo however I will post my /sbin/lilo output as well as it gave some warnings (this is in my chroot):

Microknoppix / # /sbin/lilo
Warning: LBA32 addressing assumed
Warning: /proc/partitions references Experimental major device 240.
Added gentoo *
2 warnings were issued.
Microknoppix / #


(sorry, forgot to mount -o proc and dev, here is the update)
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 9:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
neybis,

Boot with the CD, or however you normally boot and mount your partitions. Chrooting is not required. Lets check a few file date/timestamps. Use the command
Code:
ls -l /path/to/file

Files should be no earlier than the file before ... from the earliest file first.
Code:
/mnt/gentoo/usr/src/linux/.config
/mnt/gentoo/usr/src/linux/arch/x86/boot/bzImage
/mnt/gentoo/boot/<kernel_file_name>
if you are in the chroot, drop the /mnt/gentoo from each path name.
I don't know what your /mnt/gentoo/boot/<kernel_file_name> really is, you will have to fill that in.

Also check in grub.conf to make sure you are loading the <kernel_file_name> you think you are.


I have fixed my timestamp issues but am still out of luck. Just providing the update.
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


Joined: 09 Dec 2006
Posts: 4341
Location: Goose Creek SC

PostPosted: Wed Nov 25, 2009 9:01 pm    Post subject: Reply with quote

so it seems, you made a new kernel but did not use it
boot cd
mount partitions
Code:
cp /mnt/gentoo/linux/arch/x86/boot/bzImage /mnt/gentoo/boot/kernel-2.6.30-gentoo-r8


I don't lilo you may need to enter chroot and rerun it??

next time in chroot run:
Code:
fsck /dev/sda3
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 9:13 pm    Post subject: Reply with quote

DONAHUE wrote:
so it seems, you made a new kernel but did not use it
boot cd
mount partitions
Code:
cp /mnt/gentoo/linux/arch/x86/boot/bzImage /mnt/gentoo/boot/kernel-2.6.30-gentoo-r8


I don't lilo you may need to enter chroot and rerun it??

next time in chroot run:
Code:
fsck /dev/sda3


Ok, tried copying over the new kernel and still no luck. I have reran lilo from within my chroot and posted the results above.

As far as fsck from within my chroot, here is the output:

root@Microknoppix:/# chroot /mnt/sda3 /bin/bash
Microknoppix / # env-update
>>> Regenerating /etc/ld.so.cache...
Microknoppix / # source /etc/profile
Microknoppix / # fsck /dev/sda3
fsck from util-linux-ng 2.16.1
e2fsck 1.41.9 (22-Aug-2009)
/dev/sda3 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

/dev/sda3: recovering journal
/dev/sda3: clean, 203253/1888656 files, 595525/7552444 blocks
Microknoppix / #
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


Joined: 09 Dec 2006
Posts: 4341
Location: Goose Creek SC

PostPosted: Wed Nov 25, 2009 9:17 pm    Post subject: Reply with quote

no is answer unless you want to try the file system that won't load anyway
confirms e2fsprogs present
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 9:21 pm    Post subject: Reply with quote

DONAHUE wrote:
no is answer unless you want to try the file system that won't load anyway
confirms e2fsprogs present


When I said no it did not do anything so I assumed that in order to make it actually check the filesystem, I would just have to say yes. fsck did not appear to do anything since the journal was clean.

I'm not sure how to confirm that e2fsprogs is present so i just reran emerge e2fsprogs. I will not post the output, but I have emerged it again. I will reboot and let you know.

I cannot thank you guys enough for the support you have given me. Thank you very much. :-D
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 9:24 pm    Post subject: Reply with quote

I got the same error :-/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27783
Location: 56N 3W

PostPosted: Wed Nov 25, 2009 10:08 pm    Post subject: Reply with quote

neybis,

Check the kernel file name in /etc/lilo.conf and in /boot

Are you really starting the new kernel.
With lilo you must rerun lilo every time you change its config.

It can boot a kernel that has been deleted from /boot if you fail to rerun lilo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 10:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:
neybis,

Check the kernel file name in /etc/lilo.conf and in /boot

Are you really starting the new kernel.
With lilo you must rerun lilo every time you change its config.

It can boot a kernel that has been deleted from /boot if you fail to rerun lilo.


Thanks for the advice. Trying this now:

knoppix@Microknoppix:~$ su
root@Microknoppix:/home/knoppix# cd /
root@Microknoppix:/# mount /dev/sda3 /mnt/sda3
root@Microknoppix:/# mount -o bind /proc /mnt/sda3/proc
root@Microknoppix:/# mount -o bind /dev /mnt/sda3/dev
root@Microknoppix:/# chroot /mnt/sda3 /bin/bash
Microknoppix / # env-update
>>> Regenerating /etc/ld.so.cache...
Microknoppix / # source /etc/profile
Microknoppix / # ls -l /boot
total 3596
lrwxrwxrwx 1 root root 1 Nov 24 19:28 boot -> .
-rw-r--r-- 1 root root 512 Nov 24 21:41 boot.0800
-rw-r--r-- 1 root root 3615808 Nov 25 15:50 kernel-2.6.30-gentoo-r8
-rw------- 1 root root 50176 Nov 25 15:41 map
Microknoppix / # cat /etc/lilo.conf
boot=/dev/sda
prompt
timeout=50
default=gentoo

image=/boot/kernel-2.6.30-gentoo-r8
label=gentoo
read-only
root=/dev/sda3
Microknoppix / # /sbin/lilo
Warning: LBA32 addressing assumed
Warning: /proc/partitions references Experimental major device 240.
Added gentoo *
2 warnings were issued.
Microknoppix / #


Will reboot and post success.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 10:31 pm    Post subject: Reply with quote

no luck ... :-/
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


Joined: 09 Dec 2006
Posts: 4341
Location: Goose Creek SC

PostPosted: Wed Nov 25, 2009 10:38 pm    Post subject: Reply with quote

boot cd mount partition
Code:
grep -i fs /mnt/gentoo/usr/src/linux/.config
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 10:48 pm    Post subject: Reply with quote

DONAHUE wrote:
boot cd mount partition
Code:
grep -i fs /mnt/gentoo/usr/src/linux/.config


knoppix@Microknoppix:~$ su
root@Microknoppix:/home/knoppix# cd /
root@Microknoppix:/# mount /dev/sda3 /mnt/sda3
root@Microknoppix:/# mount -o bind /proc /mnt/sda3/proc
root@Microknoppix:/# mount -o bind /dev /mnt/sda3/dev
root@Microknoppix:/# grep -i fs /mnt/sda3/usr/src/linux/.config
# CONFIG_SYSFS_DEPRECATED_V2 is not set
CONFIG_INITRAMFS_SOURCE=""
CONFIG_PAGE_OFFSET=0xC0000000
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_ACPI_SYSFS_POWER=y
# CONFIG_NET_SCH_HFSC is not set
CONFIG_WIRELESS_EXT_SYSFS=y
# CONFIG_MAC80211_DEBUGFS is not set
CONFIG_SCSI_PROC_FS=y
# CONFIG_SENSORS_FSCHER is not set
# CONFIG_SENSORS_FSCPOS is not set
# CONFIG_SENSORS_FSCHMD is not set
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_USB_DEVICEFS=y
CONFIG_RTC_INTF_SYSFS=y
# CONFIG_EXT2_FS is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
# CONFIG_EXT4_FS is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
# CONFIG_FUSE_FS is not set
# CONFIG_FSCACHE is not set
CONFIG_ISO9660_FS=y
CONFIG_ZISOFS=y
# CONFIG_UDF_FS is not set
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_NTFS_FS is not set
CONFIG_PROC_FS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_HUGETLBFS=y
# CONFIG_CONFIGFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_NILFS2_FS is not set
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_DEBUG_FS=y
# CONFIG_SECURITYFS is not set
root@Microknoppix:/#
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


Joined: 09 Dec 2006
Posts: 4341
Location: Goose Creek SC

PostPosted: Wed Nov 25, 2009 11:12 pm    Post subject: Reply with quote

explains why ext2fs and reiserfs would not work.
however ext3fs should.
desperation shot:
boot cd
mount partitions
mv /mnt/gentoo/etc/fstab /mnt/gentoo/etc/fstab.moved
try to reboot hard drive
after that fails, feel free to move back
boot cd
mount partitions
mv /mnt/gentoo/etc/fstab.moved /mnt/gentoo/etc/fstab
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Wed Nov 25, 2009 11:42 pm    Post subject: Reply with quote

Ok, so I appeared to get practically identical error messages regardless of the name of fstab. It did look like (if my memory serves me right) that when fstab.moved was used the line:

sd 2:0:0:0: [sda] Attached SCSI disk

was absent. I also noticed that all of the numbers at the beginning of each line now contained 2.* instead of 0.*. not sure what that means or if that makes a difference.

None-the-less, even after moving fstab back, no luck.
Back to top
View user's profile Send private message
DONAHUE
Advocate
Advocate


Joined: 09 Dec 2006
Posts: 4341
Location: Goose Creek SC

PostPosted: Wed Nov 25, 2009 11:47 pm    Post subject: Reply with quote

I'm out of ideas.
I have seen people here dual booting mac books though.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Thu Nov 26, 2009 12:04 am    Post subject: Reply with quote

DONAHUE wrote:
I'm out of ideas.
I have seen people here dual booting mac books though.


Yea me too. I think the key of my error is that no matter what fs I choose, updating LILO.conf and fstab properly along the way, it always gives me an ext3 journal error. i would say the issue is rEFIt related but rEFIt is loading LILO properly and from that point forward it's out of macs hands. I haven't tried ubuntu or something less DIY to verify it's even possible but again, if it's booting knoppix from cd is should theoretically be possible.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27783
Location: 56N 3W

PostPosted: Thu Nov 26, 2009 7:16 pm    Post subject: Reply with quote

neybis,

Recapping back to your first post, the interesting bit is:-
Code:
[0.837991] EXT3-fs: no journal found.
[0.860671] List of all partitions:
[0.860816] 0b00 1048575 sr0 driver: sr
[0.861022] 0800 117220824 sda driver: sd
[0.861229] 0801 204800 sda1
[0.861440] 0802 84803584 sda2
[0.861636] 0803 32079872 sda3
[0.861829] No filesystem could mount root, tried: ext3 vfat msdos iso9660
[0.862288] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)


What is on /dev/sda1 ? With a default Gentoo install it would be your /boot partition.
I notice you did not mount /dev/sda1 as boot before you chrooted a few pasts back and that you have a kernel in /boot anyway.
However ... I'm sure you said you tried grub and there was no signs of the remains of grub, so do you have real root partition or not?
Lilo won't care and as you ran lilo, it will boot from the /boot it found when it was run.

Code:
No filesystem could mount root, tried: ext3 vfat msdos iso9660
suggests that your root fs is none of those. In fact, only ext3 in that list is suitable for a Linux install.
Code:
VFS: Unable to mount root fs on unknown-block(8,3)

Tells that the kernel can talk to the hard drive but does not understand what it finds.
Code:
unknown-block(8,3)
is the kernel node major and minor numbers for /dev/sda3 ... so thats ok.

Taking the error message EXT3-fs: no journal found at face value, it appears your root fs is ext2, as ext2 with a journal is ext3.
You don't (or didn't) have ext2 available, so it didn't mount.

Boot with the liveCD and play with tune2fs.
Code:
tune2fs -l /dev/sda3
will tell you all about the volume.
Code:
tune2fs -j /dev/sda3
will add a journal as an ordinary hidden file, if for some reason you really don't have a journal - don't delete this file.

You could also try to mount the partition as ext2 with the liveCD, or even make ext2 built into your kernel.

Its nothing to do with any files on your root filesystem, such as /etc/fstab, since none of them can be read until the filesystem is mounted.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Thu Nov 26, 2009 11:44 pm    Post subject: Reply with quote

Well may I begin by saying Happy Thanksgiving to everyone! And thank you so much for your support on this day.

For starters let me answer some questions.

sda1 is macs boot partition basically (not sure exactly what to call it for lack of a better term). sda2 is os x. sda3 is my linux main partition. and sda4 is my swap.
I do not have a boot partition which may be why I had problems with grub, however i have not attempted grub on this install. I have reinstalled gentoo possibly 4 or 5 times in attempt to diagnose the issue myself but with no success. Hence why I'm coming to the experts ;-) Also, knowing I was going to encounter problems with grub as I did practically nothing different for each install (other than changing a few minor settings such as filesystem type or leaving all default options without customizing) I did not even attempt grub on this install. I have gone straight to lilo.


Now to the results.
I have determined a few things as far as I can tell.

The first thing I did was make menuconfig and add ext2 support. I recompiled with make && make_modules and copied the kernel into /boot. After rebooting, I found it odd that linux gave the exact same error message. Specifically the line that states what fs's it attempted to mount with. Ext2 was NOT in the list. :-/

So the next thing I did was boot my Knoppix livecd and try to mount the partition as ext2. It worked! Weird. Unmounted and tried to mount the fs as ext3. It worked :-(

I thought well, maybe it would be worth a shot to try to add journaling with the tune2fs -j option. It stated that the device already had journaling.

So now I know that my fs is ext3.

Could the fact that my kernel is not changing its error message even when I add support for various filesystem types have anything to do with my issue?? So far as I can tell I'm loading the correct kernel etc.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Thu Nov 26, 2009 11:59 pm    Post subject: Reply with quote

forgot this tidbit:

root@Microknoppix:/# tune2fs -l /dev/sda3
tune2fs 1.41.3 (12-Oct-2008)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: d480814e-4f17-4260-9b2a-72dac50d6145
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 1888656
Block count: 7552444
Reserved block count: 377622
Free blocks: 6956610
Free inodes: 1685361
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1022
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8176
Inode blocks per group: 511
Filesystem created: Wed Nov 25 00:25:18 2009
Last mount time: Thu Nov 26 23:30:16 2009
Last write time: Thu Nov 26 23:45:40 2009
Mount count: 15
Maximum mount count: 36
Last checked: Wed Nov 25 00:25:18 2009
Check interval: 15552000 (6 months)
Next check after: Mon May 24 00:25:18 2010
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: a3b6ff4d-46ff-4f26-be78-9d829a47f67c
Journal backup: inode blocks
root@Microknoppix:/#
Back to top
View user's profile Send private message
01allein
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2009
Posts: 127
Location: AUSTRALIA

PostPosted: Fri Nov 27, 2009 12:49 am    Post subject: Reply with quote

Have you take a look here ------>> http://www.gentoo-wiki.info/Index:Hardware
------>> http://www.gentoo-wiki.info/Apple_Mac_Pro
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27783
Location: 56N 3W

PostPosted: Fri Nov 27, 2009 2:53 pm    Post subject: Reply with quote

neybis,

That all looks good. Well, its self consistent anyway.

Do you have more than one drive attached to the machine, including USB/Firewire ?
I have known drive ordering to change between liveCD and hard drive boots.
I guess not as your kernel on spotted /dev/sda on boot.

If ext2 did not appear in the file list when you changed kernels, you forgot to run /sbin/lilo before you rebooted.
lilo just used the old kernel - even if it was deleted or overwritten in /boot
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Fri Nov 27, 2009 11:28 pm    Post subject: Reply with quote

ok, well I've attempted probably my seventh install of gentoo with no success although I managed to get grub with no errors. also, I can sync refit's partition table without corrupting my partitions so it seems I've made an improvement.

I am still getting the same error however and am wondering if it's refit related. I could not get bootcamp to recognize my Linux root.

on this build I included the swap as a file as opposed to it's on partition in hopes of using boot camp. I also left out the boot partition as well so my entire Linux install is all in sda3. when I get home from buying super Mario brothers wii I will attempt to add ext2 support following every step including updating grub for a final verdict. I say it's refit and I have no idea how to dual boot on a mac otherwise since bootcamp seems not to recognize the Linux partition either :(. I'll post soon. thanks for all your help.

edit: forgot to mention on this install I followed the MacBook wiki to a T. this specifically stated it supports my second gen MacBook pro. looks like a may need to begin posting on refit's forum :-/

edit: I did have no drives USB or anything of the sort at any time during the install.
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Sat Nov 28, 2009 4:48 am    Post subject: solved!! Reply with quote

I am booting!!! I have yet to determine exactly what was causing the issue but I will post with answers
Back to top
View user's profile Send private message
neybis
n00b
n00b


Joined: 28 Oct 2009
Posts: 54

PostPosted: Sat Nov 28, 2009 7:32 pm    Post subject: [SOLVED] Kernel Panic Reply with quote

So I disabled all of my filesystems built-in to the kernel and I'm still booting. My diagnosis of the problem was that the rEFIt partitioning table was not able to sync with lilo. It seemed on every one of my installs using lilo, that syncing the partition table corrupted my ext3 partition. It could also be that I am only using one partition for everything this time around (using a swap file). I did a lot of things different so sorry if this thread proved unhelpful but all I can say as a best of recommendation is follow the macbook wiki as closely as possible using rEFIt and if anything doesn't work along the way (grub/syncing partition table), there must be a reason for it even if some other method SEEMS to be installing fine (lilo).

If you have a macbook pro third gen I would highly recommend grub over lilo and don't forget to rerun grub-install after syncing your partition tables using refit.

good luck all and thanks for your help! on to installing gnome! :-P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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