View previous topic :: View next topic |
Author |
Message |
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 6:43 pm Post subject: After reboot root(hd0,0) no found |
|
|
hi again,
following the documentation and reboot the system, I found that I have error I can't boot, as soon the system boot, say: error 15: File npt found... press any key.....
Filessystem type is ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r6 root=/dev/ram0 real_root=/dev/sda3
editing how can I fix this, need help please |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Tue Oct 12, 2010 6:50 pm Post subject: |
|
|
"(hd0,0) not found" looks like a grub error, not a kernel error
what is your partitioning layout?
what is /boot/grub/grub.conf?
You can always boot from a CD/flash drive, mount the hard drive partitions and edit the files -- or temporarily edit the entries in the grub menu after boot. |
|
Back to top |
|
|
Muso Veteran
Joined: 22 Oct 2002 Posts: 1052 Location: The Holy city of Honolulu
|
Posted: Tue Oct 12, 2010 7:06 pm Post subject: |
|
|
alejandroye, did you include ext2 support in your kernel?
To boot into your setup, use the install CD and just chroot in. _________________ "You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop! |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Tue Oct 12, 2010 7:28 pm Post subject: |
|
|
He uses the genkernel with initramfs, and I think ext2/ext3 is in there by default. Looks like the problem is either a messed partition layout (say, /boot was not mounted correctly during the kernel install, and it installed on the root partition) or misconfigured grub.conf. It seems grub manages to read grub.conf correctly and then cannot find the kernel on the partition to boot from. Maybe one needs to change (hd0,0) to (hd0, something). |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 7:30 pm Post subject: |
|
|
I just boot from CD but when I try to access any folder say " cannot access" I am trying to start again from chroot before but none
what else I can do? |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 7:39 pm Post subject: |
|
|
luscinius wrote: | "(hd0,0) not found" looks like a grub error, not a kernel error
what is your partitioning layout?
what is /boot/grub/grub.conf?
You can always boot from a CD/flash drive, mount the hard drive partitions and edit the files -- or temporarily edit the entries in the grub menu after boot. |
my partition is
/dev/sda1 1 21 168651 83 linux
/dev/sda2 22 350 2642692 82 linux sawap / solaris
/dev/sda1 351 19475 153476977 83 linux
I am booting but I am having problem accessing to the hd |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 7:46 pm Post subject: |
|
|
luscinius wrote: | He uses the genkernel with initramfs, and I think ext2/ext3 is in there by default. Looks like the problem is either a messed partition layout (say, /boot was not mounted correctly during the kernel install, and it installed on the root partition) or misconfigured grub.conf. It seems grub manages to read grub.conf correctly and then cannot find the kernel on the partition to boot from. Maybe one needs to change (hd0,0) to (hd0, something). |
yes, is something like you saying, my partition doesn't say boot and I know the grub is there but I do not know how to access from booting cd
any suggestion? |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Tue Oct 12, 2010 8:18 pm Post subject: |
|
|
Quote: | my partition is
/dev/sda1 1 21 168651 83 linux
/dev/sda2 22 350 2642692 82 linux sawap / solaris
/dev/sda1 351 19475 153476977 83 linux |
Is it the output from fdisk -l?
Why is /dev/sda1 listed twice? Or is it /dev/sda3 what is in the last line?
If /boot is /dev/sda1 and / is /dev/sda3 you can boot from CD and
Code: |
mount /dev/sda3 /mnt/gentoo
ls /mnt/gentoo/boot
|
--- the /boot should be empty
Then
Code: |
mount /dev/sda1 /mnt/gentoo/boot
|
Does /boot have the kernel?
Then you can repeat the procedures in the handbook,
Code: | mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev |
and
Code: | chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile |
Then repeat the handbook steps |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Tue Oct 12, 2010 8:23 pm Post subject: |
|
|
Or if my guess is correct and the kernel is on /dev/sda3 you can try to edit the grub config at boot time and change root (hd0,0) to root (hd0,2)
Then you will at least be able to boot into the system. |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 9:00 pm Post subject: |
|
|
luscinius wrote: | Or if my guess is correct and the kernel is on /dev/sda3 you can try to edit the grub config at boot time and change root (hd0,0) to root (hd0,2)
Then you will at least be able to boot into the system. |
yes you was correct I will change the grub and try to reboot
I love you
I mean, thank you, |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Tue Oct 12, 2010 10:28 pm Post subject: |
|
|
finally the system boot but I got the following error:
No filesystem coud mount root, tried: reiserfs ext3 ext2 vfat msdos iso9660 jfs xfs
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
Pid: 1, comm.: swapper Not tainted 2.6.34-gentoo-r6 #1
Call Trace:
? printk+0xf/0x11
.... more and stop
I really don't know if something wrong when I change the name of the images when I generated the kernal, it say that I can change the name version to whatever |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Wed Oct 13, 2010 12:55 am Post subject: |
|
|
OK, so if you get a kernel panic the grub managed to find the kernel. Do you by chance use ext4 or some other filesystem. You need to make sure that the kernel has support for your hardware (in this case hard drive controller and filesystems) in order to boot. You need to boot from CD, mount the partitions as I said, chroot and follow the handbook instrucions for the kernel compilation and installation.
https://forums.gentoo.org/viewtopic-t-497930.html
Also, a useful command is it would show the modules used by the kernel for the PCI hardware. Boot from CD and run it. |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2581 Location: Here and Away Again
|
Posted: Wed Oct 13, 2010 1:52 am Post subject: |
|
|
Yeah, like above, make sure you have the support for the filesystem(s) you need.
Just kind of adding to what luscinius said, it's a good practice to do:
Then, maybe in another terminal:
Code: |
cd /usr/src/linux/
make menuconfig
|
And search for the kernel drivers/modules listed for each apparatus.
To search within menuconfig, use the / key.
While not adding much, I still hope this helps! ^^ _________________ Kindest of regardses. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed Oct 13, 2010 2:06 am Post subject: |
|
|
Quote: | Unable to mount root fs on unknown-block(1,0) |
Your kernel is trying to access the drive using obsolete EIDE driver, rebuild it without IDE, enable libata. See http://kmuto.jp/debian/hcl/ if in doubt which driver is correct. |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Wed Oct 13, 2010 2:56 am Post subject: |
|
|
Thank you guys, but it has been hard to install this gentoo.
I used lspci and I get the driver for sata AHCI sata controler, but when I go menuconfig I found is selected , so I tried to compile the karnel again:$make && make modules_install. I get the error; warning:cannotfindentrysymbol_start...... command no found........ make:*** [include/config/kernel.release] Error 127
any clue?
thank you |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Wed Oct 13, 2010 3:08 am Post subject: |
|
|
So if you are using make menuconfig you are not installing a genkernel, are you?
Maybe try and then Code: | make && make modules_install |
These commands have to be issued from /usr/src/linux when you are in a chroot'ed environment. |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Wed Oct 13, 2010 3:16 am Post subject: |
|
|
luscinius wrote: | So if you are using make menuconfig you are not installing a genkernel, are you? |
yes, I am not using genkernel
Quote: | Maybe try and then Code: | make && make modules_install |
|
I did it but I am getting the same error, and I am in /usr/src/linux |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2581 Location: Here and Away Again
|
Posted: Wed Oct 13, 2010 3:30 am Post subject: |
|
|
Without reading too much into it, I'd suggest trying:
This shows you the drivers/modules the hardware is using.
Opening another terminal after, or before that helps too, do menuconfig in the other terminal and hit / to open the search dialogue.
Then, you can just copy the driver or module name from the other terminal and paste it in the other to search for it and see if it is enabled.
This is what helped me immensely to get the stuff enabled I needed to boot without Genkernel.
Note that you may need to edit the search-string a bit from what it is within lspci. For example, searching for ATIIXP_IDE does not give you any results I would presume, but you can tell where it is pointing by removing the _IDE part.
Also confirm that your /etc/fstab and /boot/grub/grub.conf are correctly configured. _________________ Kindest of regardses.
Last edited by Chiitoo on Wed Oct 13, 2010 3:36 am; edited 1 time in total |
|
Back to top |
|
|
alejandroye n00b
Joined: 05 Jul 2010 Posts: 19 Location: South Florida
|
Posted: Wed Oct 13, 2010 3:32 am Post subject: |
|
|
luscinius wrote: | So if you are using make menuconfig you are not installing a genkernel, are you?. |
Can I change and use genkernel now, it will solve my problem??? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2581 Location: Here and Away Again
|
Posted: Wed Oct 13, 2010 3:38 am Post subject: |
|
|
alejandroye wrote: | luscinius wrote: | So if you are using make menuconfig you are not installing a genkernel, are you?. |
Can I change and use genkernel now, it will solve my problem??? |
It wouldn't really solve your problem I think.
Using Genkernel or not is quite a different thing altogether but yeah, if you can boot by using the liveCD/DVD, you should be able to use Genkernel to build the OS, just follow the handbook. ^^
You might later on want to build your own kernel anyways, though. but I used Genkernel for quite a while myself, too. the manual really has it all there. _________________ Kindest of regardses.
Last edited by Chiitoo on Wed Oct 13, 2010 3:42 am; edited 1 time in total |
|
Back to top |
|
|
luscinius n00b
Joined: 17 Jul 2008 Posts: 63
|
Posted: Wed Oct 13, 2010 3:42 am Post subject: |
|
|
Try Code: | emerge -C gentoo-sources
rm -rf /usr/src/linux/*
emerge gentoo-sources
cd /usr/src/linux |
in a chroot'ed environment.
This will remove the old files in case something is corrupt and re-install the sources. Then you can try to reconfigure it.
Another alternative: if you are using the current gentoo CD, do
Code: | zcat /proc/config.gz > /usr/src/linux/.config | (again in a chroot'ed environment)
and build a genkernel. Essentially, /proc/config.gz is the config for the kernel on the CD you booted from, so it does boot on your hardware. If you have at least genkernel working, you can follow up, boot into your new system and compile a custom kernel for your machine. At least you do not need to chroot every time after mounting everything manually. |
|
Back to top |
|
|
|