vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| hi, I only can boot my linux with a kernel and initrd made with genkernel all. when i make my kernel with make menuconfig and then use make && make install my kernel won't boot when i'm using vmlinuz, my grub.conf is like this, my partitions are all in ext3 default 3 timeout 30 fallback 0 splashimage=(hd0,1)/boot/grub/boot.xpm.gz title=Windows Xp Pro root (hd0,0) chainloader (hd0,0)+1 title=Gentoo 2.4.25 root (hd0,1) kernel (hd0,1)/boot/kernel-2.4.25-gentoo-r2 root=/dev/hda3 vga=792 initrd (hd0,1)/boot/initrd-2.4.25-gentoo-r2 title=Gentoo 2.6.6 (genkernel) root (hd0,1) kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 initrd (hd0,1)/boot/initrd-2.6.6 title=Gentoo 2.6.6 (kernel-2.6.6) root (hd0,1) kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 title=Gentoo (vmlinuz) root (hd0,1) kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792 root@matrix sokar # ################ ## my partitions ################ root@matrix sokar # df -h Filesystem Size Used Avail Use% Mounted on /dev/hda3 1.4G 698M 644M 52% / /dev/hda5 5.6G 535M 4.8G 10% /home /dev/hda7 6.9G 3.6G 3.0G 55% /usr /dev/hda8 1.7G 1.2G 506M 70% /var none 252M 0 252M 0% /dev/shm /dev/hda2 145M 23M 115M 17% /boot root@matrix sokar # ################# #my fstab ################## NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/hda2 /boot ext3 noauto,noatime 1 1 /dev/hda3 / ext3 noatime 0 0 /dev/hda6 none swap sw 0 0 /dev/hda5 /home ext3 noatime 0 0 /dev/hda7 /usr ext3 noatime 0 0 /dev/hda8 /var ext3 noatime 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 user,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 the error that i get is vfs : kernel panic , could not mount root on hda2 in my kernel i added ext3 and ext2, changed all kinds of stuff but nothing helps, surfed my ass off with google but nothing gives me a solution, anybody who can help me with this? |
| |||
| Joeri De Grande wrote: > hi, > > I only can boot my linux with a kernel and initrd made with genkernel all. > when i make my kernel with make menuconfig and then use make && make install > my kernel won't boot when i'm using vmlinuz, my grub.conf is like this, my > partitions are all in ext3 > > title=Gentoo 2.6.6 (genkernel) > root (hd0,1) > kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 > initrd (hd0,1)/boot/initrd-2.6.6 So this kernel is working okay, > title=Gentoo (vmlinuz) > root (hd0,1) > kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792 > root@matrix sokar # .... and this one isn't. > /dev/hda3 1.4G 698M 644M 52% / > /dev/hda2 145M 23M 115M 17% /boot > > /dev/hda2 /boot ext3 noauto,noatime > /dev/hda3 / ext3 noatime > > the error that i get is > vfs : kernel panic , could not mount root on hda2 No it isn't. You've likely made a typo - it should be hda3. > in my kernel i added ext3 and ext2, changed all kinds of stuff but nothing > helps, surfed my ass off with google but nothing gives me a solution, > anybody who can help me with this? Have you compiled support for ext3 and your IDE controller into your vmlinuz kernel, and not as modules? -- Ben M. |
| |||
| Ben Measures wrote: > Joeri De Grande wrote: >> hi, >> >> I only can boot my linux with a kernel and initrd made with genkernel >> all. when i make my kernel with make menuconfig and then use make && make >> install my kernel won't boot when i'm using vmlinuz, my grub.conf is like >> this, my partitions are all in ext3 >> >> title=Gentoo 2.6.6 (genkernel) >> root (hd0,1) >> kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 >> initrd (hd0,1)/boot/initrd-2.6.6 > > So this kernel is working okay, > >> title=Gentoo (vmlinuz) >> root (hd0,1) >> kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792 >> root@matrix sokar # > > ... and this one isn't. > >> /dev/hda3 1.4G 698M 644M 52% / >> /dev/hda2 145M 23M 115M 17% /boot >> >> /dev/hda2 /boot ext3 noauto,noatime >> /dev/hda3 / ext3 noatime >> >> the error that i get is >> vfs : kernel panic , could not mount root on hda2 > > No it isn't. You've likely made a typo - it should be hda3. > >> in my kernel i added ext3 and ext2, changed all kinds of stuff but >> nothing helps, surfed my ass off with google but nothing gives me a >> solution, anybody who can help me with this? > > Have you compiled support for ext3 and your IDE controller into your > vmlinuz kernel, and not as modules? > sorry, was indead a typo, it was /dev/hda3 i did add ext2 and ext3 support for it, because i use a journal (ext3) and my ide controller which is ICH5 (intel) is supported [not as a modul, i'm at the end of my knowledge, please can anyone help me to boot that kernel. i've added my current config for 2.6.6 and 2.6.7 my boot triggered a new one, a bit differend. VFS: Cannot open root device "hda3" or hda3 Please append a correct "root=" boot option Kernel panic: VFS : Unable to mount rootfs on hda3 this was my previous new one VFS: Cannot open root device "hda3" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic: VFS : Unable to mount rootfs on unkown-block(0,0) this is after a new compile of kernel 2.6.7 |
| |||
| Joeri De Grande enlightened us with: > --nextPart51818357.X1iSjZAcjR > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8Bit Stop posting this multipart crap. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| Sybren Stuvel wrote: > Joeri De Grande enlightened us with: >> --nextPart51818357.X1iSjZAcjR >> Content-Type: text/plain; charset=iso-8859-1 >> Content-Transfer-Encoding: 8Bit > > Stop posting this multipart crap. > > Sybren Sorry dude, didn't know KNode printout attachments standard if they are plain/text. Instead of complaining give us a hand. The world biggest problem, people think they are the best, they like to whine about other people, but when they make a mistake, no, then you have to leave them alone, they are the biggest losers of this planet. at the end they pull the shortest end. |
| |||
| Joeri De Grande enlightened us with: > Sorry dude, didn't know KNode printout attachments standard if they > are plain/text. As far as I've seen, it doesn't. > Instead of complaining give us a hand. Not enough experience with KNode, sorry. And I think I help enough people here. > The world biggest problem, people think they are the best, they like > to whine about other people, but when they make a mistake, no, then > you have to leave them alone, they are the biggest losers of this > planet. at the end they pull the shortest end. Who are you talking to? If you spent a little more time investigating my posts, and less time whining about a single remark. To be blunt: I've been helping people *daily* for a few *years* already. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| So anyway, it was like, 13:55 CEST Jun 24 2004, you know? Oh, and, yeah, Joeri De Grande was all like, "Dude, > Sorry dude, didn't know KNode printout attachments standard if they > are plain/text. Instead of complaining give us a hand. ^ ^ | | where I lost interest in | '-- reading your entire kernel | config file to help you out | '-- where you should have quit The tirade at the end wasn't even required to put me off, personally. hth, hand. -- Time flies like an arrow, fruit flies like a banana. Perth ---> * 15:57:02 up 4 days, 23:08, 7 users, load average: 1.14, 1.05, 1.01 Linux 2.6.7 x86_64 GNU/Linux Registered Linux user #261729 |
| |||
| Joeri De Grande wrote: > Sybren Stuvel wrote: >>Joeri De Grande enlightened us with: >> >>>--nextPart51818357.X1iSjZAcjR >>>Content-Type: text/plain; charset=iso-8859-1 >>>Content-Transfer-Encoding: 8Bit >> >>Stop posting this multipart crap. > > Sorry dude, didn't know KNode printout attachments standard if they are > plain/text. Instead of complaining give us a hand. > > The world biggest problem, people think they are the best, they like to > whine about other people, but when they make a mistake, no, then you have > to leave them alone, they are the biggest losers of this planet. at the end > they pull the shortest end. You might be suprised to learn that the people of this newsgroup aren't obliged to solve your problems. You should have taken Sybren's advice and moved on. If *you* come here with *your* problems, then *you* are the one who needs to accomodate. Look at that last paragraph and apply it to yourself. Your pride has probably lost you the help from this newsgroup. -- Ben M. |
| |||
| > title=Gentoo 2.6.6 (kernel-2.6.6) > root (hd0,1) > kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 > > title=Gentoo (vmlinuz) > root (hd0,1) > kernel (hd0,1)/boot/vmlinuz root=/dev/hda3 vga=792 > root@matrix sokar # > > ################ > ## my partitions > ################ > root@matrix sokar # df -h > Filesystem Size Used Avail Use% Mounted on > /dev/hda3 1.4G 698M 644M 52% / > /dev/hda5 5.6G 535M 4.8G 10% /home > /dev/hda7 6.9G 3.6G 3.0G 55% /usr > /dev/hda8 1.7G 1.2G 506M 70% /var > none 252M 0 252M 0% /dev/shm > /dev/hda2 145M 23M 115M 17% /boot > root@matrix sokar # OK...this is what I think will fix it. change your kernel line to: kernel (hd0,1) /kernel-2.6.6 root=/dev/hda3 vga=792 --this is removing the "/boot" because hd0,1 should be the second partition on your first drive hda, right? This would be pointing at /boot as / so no need to again add /boot to kernel line which would make grub think to look at /boot/boot/kernel-2.6.6 which it will not find cause it does not exist there. Remeber according to your fstab your '/' and your '/boot' or on different partitions. hda3 and hda2 accordingly. Hope this helps...if you have more then one drive on you system you may need to play with tab completion within grub on bootup to verify you have correct drive. -- ========================================== cappycdn ' at ' yahoo ' dot ' ca ========================================== |
| ||||
| cappy wrote: >>title=Gentoo 2.6.6 (kernel-2.6.6) >>root (hd0,1) >>kernel (hd0,1)/boot/kernel-2.6.6 root=/dev/hda3 vga=792 > > OK...this is what I think will fix it. > change your kernel line to: > kernel (hd0,1) /kernel-2.6.6 root=/dev/hda3 vga=792 > --this is removing the "/boot" because hd0,1 should be the second partition > on your first drive hda, right? This would be pointing at /boot as / so no > need to again add /boot to kernel line which would make grub think to look > at /boot/boot/kernel-2.6.6 which it will not find cause it does not exist It will exist if the OP followed the Gentoo Handbook correctly. -- Ben M. |