Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
On 06/25/2010 12:17 PM, rocwhite168 wrote: Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device sda5 or unknown-block(2,0) Please append ac correct root= boot option; here are the available partitions: Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(2,0) Pid: 1, comm: swapper Not tainted 2.6.31-gentoo-r10 #2 I searched the Internet for a while, but still can't find any solutions. The root partition is definitely sda5, as also specified in the fstab file. One of the things you might consider doing is jumping into the busybox shell and poking around /dev for the names of the devices you have. (I'm assuming you boot with grub - that's what those messages look like to me.) You might be able to insmod all your modules from there, too, and see if you get the devices installed. Roc, in one of your posts, you listed your grub.conf line and, according to the gmane entry, anyway, it looks like it's split across two lines. Could it be that simple? Is your grub.conf entry for the kernel command on just one line? (Genkernel added the entry so I'm obviously grabbing at straws here)
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
rocwhite168 wrote: Bill Longmanbill.longmanat gmail.com writes: Yikes. Sorry, I didn't look back through the thread. Did you notice that you have an extra zero in your CONFIG_PHYSICAL: CONFIG_PHYSICAL_START=0x100 # CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x100 The default is 0x10 for x86. Thanks for your suggestion! I tried and it seems the previous problem disappeared but it throws out another error: Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device sda5 or unknown-block(2,0) Please append ac correct root= boot option; here are the available partitions: Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(2,0) Pid: 1, comm: swapper Not tainted 2.6.31-gentoo-r10 #2 I searched the Internet for a while, but still can't find any solutions. The root partition is definitely sda5, as also specified in the fstab file. Do you have SATA drives or IDE? If you have IDE, try changing your fstab and grub line from sda5 to hda5. That error is caused by that pretty much every time. Keep in mind, it doesn't matter what the drive reports itself as when booted off the CD, it only matters how the kernel YOU built sees it. It can be set up to see it either way. I have IDE and mine still sees it as hda, hdb etc except for my SATA drive that is hooked up to a card. That one is sda. If you have SATA drives, I'm back to clueless but thinking on it. Dale :-) :-)
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
On 06/22/2010 05:35 PM, rocwhite168 wrote: Yes, it's built-in. I have attached a copy of my kernel config file in the original post. I'll bet you don't have HUGETLBFS turned on in your kernel. It's required for ext4. I checked and both HUGETLBFS and HUGETLB_PAGE are enabled. Actually I had my setup posted on the original post. Yikes. Sorry, I didn't look back through the thread. Did you notice that you have an extra zero in your CONFIG_PHYSICAL: CONFIG_PHYSICAL_START=0x100 # CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x100 The default is 0x10 for x86.
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
rocwhite168 wrote: Kaddehkaddehat gmail.com writes: it would help to also put your /etc/fstaband let us know what FS you have root setup asin addition to your /boot/grub/grub.conf 2010/6/20 rocwhite168rocwhite168at 163.com I used genkernel to configure the kernel. It complained every time at shutdown that Code: Bad EIP value. ... do_IRQ: 0.43 No irq handler for vector (irq -1). I had to press the power button to shut down the machine. How should I solve this problem? On the other hand, I'm trying to configure the kernel manually. I did this according to several online tutorials, but it still won't even start up: Root filesystem could not be mounted read/write. Can anyone please have a look at my configuration? Thank you very much! Roc fstab -- /dev/sda1 /boot ext4noauto,noatime 1 2 /dev/sda5 / ext4noatime 0 1 /dev/sda3 /usrext4noatime 0 2 /dev/sda4 /home ext4noatime 0 2 /dev/sda7 /tmpext4noatime 0 0 /dev/sda6 noneswapsw 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 grub.conf -- default 0 timeout 3 #splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 2.6.31-r10 root (hd0,0) kernel /boot/kernel-2.6.31-gentoo-r10 root=/dev/sda5 title Gentoo Linux 2.6.31-r10 -- genkernel root (hd0,0) kernel /boot/kernel-genkernel-x86-2.6.31-gentoo-r10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 initrd /boot/initramfs-genkernel-x86-2.6.31-gentoo-r10 The first entry is for the manual configuration, while the second one is for the kernel generated by genkernel. Thanks, Roc I notice you are using ext4 for the root partition file system. Do you have support for ext4 compiled in the kernel? Not as a module but built into the kernel? Using modules is OK but things that it has to have to get to the point where it can read the root partition and start loading modules has to be built in, unless you want to go to the additional effort to use a initrd. Dale :-) :-)
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
rocwhite168 wrote: Dalerdalek1967at gmail.com writes: I notice you are using ext4 for the root partition file system. Do you have support for ext4 compiled in the kernel? Not as a module but built into the kernel? Using modules is OK but things that it has to have to get to the point where it can read the root partition and start loading modules has to be built in, unless you want to go to the additional effort to use a initrd. Dale Yes, it's built-in. I have attached a copy of my kernel config file in the original post. Thanks, Roc I sort of think this is in there but make sure you did the same for your drive controllers as well. You may also want to try this link. http://forums.gentoo.org/viewtopic-p-4173972.html#4173972 I haven't had to put that on mine but maybe something is different. The most common cause for this is not having the file system or drive controller drivers built in the kernel. Sort of grasping at straws here. ;-) I posted the link in case you want to read the rest of the thread as well. Make sure the option you have in fstab are correct for ext4. I have not used ext4 so I don't know if noatime applies or not. If you are unsure, set it to defaults for the time being. You should be able to change that later. Also, this is one of my grub.conf boot lines: title Gentoo kernel (hd0,0)/bzImage-2.6.30-r8-1 root=/dev/hda6 If nothing else works, copy yours to look like mine but replacing the relevant parts to match your setup, kernel name and where root is. Hope this helps. Dale :-) :-)
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
rocwhite168 wrote: Dalerdalek1967at gmail.com writes: I sort of think this is in there but make sure you did the same for your drive controllers as well. You may also want to try this link. http://forums.gentoo.org/viewtopic-p-4173972.html#4173972 I haven't had to put that on mine but maybe something is different. The most common cause for this is not having the file system or drive controller drivers built in the kernel. Sort of grasping at straws here.I posted the link in case you want to read the rest of the thread as well. Make sure the option you have in fstab are correct for ext4. I have not used ext4 so I don't know if noatime applies or not. If you are unsure, set it to defaults for the time being. You should be able to change that later. Also, this is one of my grub.conf boot lines: title Gentoo kernel (hd0,0)/bzImage-2.6.30-r8-1 root=/dev/hda6 If nothing else works, copy yours to look like mine but replacing the relevant parts to match your setup, kernel name and where root is. Hope this helps. Dale Thanks for your suggestion! I have actually tried adding 'rw' before, but I forgot to mention it earlier... It still didn't work, but with a different error message: UDF-fs: No partition found (1) List of all partitions: 0800 78125000 sda driver: sd 0801 1365121 sda1 0802 1 sda2 0803 sda3 0804 sda4 0805 sda5 0806 sda6 0807 sda7 No filesystem could mount root, tried: reiserfs ext3 ext2 ext4 vfat msdos iso9660 hfsplus hfs ufs udf Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,5) Pid: 1, comm: swapper Not tainted 2.6.31-gentoo-r10 #4 Call Trace: panic+0x4d/0x112 mount_block_root+0x19c/0x1c9 mount_root+0xb6/0xf1 prepare_namespace+0xef/0x169 sys_access+0x1f/0x23 kernel_init+0x16a/0x184 kernel_init+0x0/0x184 kernel_thread_helper+0x7/0x18 Thanks! Roc I did some googling. Seriously grasping at straws here. Do you have SMP enabled? If so, do you really have a multiprocessor or multicore machine? I ask beause I did find where someone else had SMP enabled and it shouldn't have been. I noticed it shows it is enabled in the config you posted earlier. Also, make sure you have the correct CPU selected too. I think you do tho from what I saw in the config. Also make sure you have the correct partitions in fstab too. I know I'm bad to mix those up sometimes or just leave out a / mark. Another thought, are you sure that the drive partitions are sda and not hda? I still use the old drivers and mine are hda but some are using the new drivers which are sda. Just wanting to make certain. Grasping at one more straw. ;-) I'll do some more thinking and put a little more wear and tear on google. Dale :-) :-)
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
On 6/22/10, rocwhite168 rocwhite...@163.com wrote: fstab -- /dev/sda1 /boot ext4noauto,noatime 1 2 /dev/sda5 / ext4noatime 0 1 /dev/sda3 /usrext4noatime 0 2 /dev/sda4 /home ext4noatime 0 2 /dev/sda7 /tmpext4noatime 0 0 /dev/sda6 noneswapsw0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 Where is your proc virtual fs? -- Arttu V.
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
On Tue, 22 Jun 2010 16:00:08 +0300, Arttu V. wrote: fstab -- /dev/sda1 /boot ext4 noauto,noatime 1 2 /dev/sda5 / ext4noatime 0 1 /dev/sda3 /usrext4 noatime 0 2 /dev/sda4 /home ext4noatime 0 2 /dev/sda7 /tmpext4 noatime 0 0 /dev/sda6 none swapsw 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 Where is your proc virtual fs? /proc doesn't need to be in fstab, -- Neil Bothwick Megabyte: (n.) more than you can comprehend and less than you'll need. signature.asc Description: PGP signature
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
On 06/21/2010 10:20 PM, rocwhite168 wrote: Dale rdalek1967 at gmail.com writes: I notice you are using ext4 for the root partition file system. Do you have support for ext4 compiled in the kernel? Not as a module but built into the kernel? Using modules is OK but things that it has to have to get to the point where it can read the root partition and start loading modules has to be built in, unless you want to go to the additional effort to use a initrd. Dale Yes, it's built-in. I have attached a copy of my kernel config file in the original post. I'll bet you don't have HUGETLBFS turned on in your kernel. It's required for ext4.
Re: [gentoo-user] Re: kernel configuration problem -- genkernel: no irq handler; manual config: root filesystem could not be mounted r/w
rocwhite168 wrote: Dalerdalek1967at gmail.com writes: I did some googling. Seriously grasping at straws here. Do you have SMP enabled? If so, do you really have a multiprocessor or multicore machine? I ask beause I did find where someone else had SMP enabled and it shouldn't have been. I noticed it shows it is enabled in the config you posted earlier. Also, make sure you have the correct CPU selected too. I think you do tho from what I saw in the config. Also make sure you have the correct partitions in fstab too. I know I'm bad to mix those up sometimes or just leave out a / mark. Another thought, are you sure that the drive partitions are sda and not hda? I still use the old drivers and mine are hda but some are using the new drivers which are sda. Just wanting to make certain. Grasping at one more straw. I'll do some more thinking and put a little more wear and tear on google. Dale Thanks again for your suggestion! I tried to switch off SMP and recompiled the kernel, but the problem persists. I'm sure I'm using the newer driver so I think the partitions should be called sda. On the other hand, if I can ever succeed in eliminating the irq problem with genkernel, I would be very happy too! It's really frustrating sometimes... Roc I'm not sure what else to try at the moment. I see some others have joined in tho so maybe they will have some ideas. As I pointed out to someone in another thread, sometimes genkernel works and sometimes it doesn't. Once you get a working kernel, updating will be easy enough. I'm thinking. Dale :-) :-)