Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I think the right way to fix this problem is the following:
In the kernel config file the CONFIG_SATA_AHCI must be 'y', if you maintain this variable with 'm' the problem occurs. For this you need to put the CONFIG_ATA=y and then put the CONFIG_SATA_AHCI=y. It's all.
In the grub.conf and fstab you don't need to use hdaX, you can keep the sdaX.
I think the right way to fix this problem is the following:
In the kernel config file the CONFIG_SATA_AHCI must be 'y', if you maintain this variable with 'm' the problem occurs. For this you need to put the CONFIG_ATA=y and then put the CONFIG_SATA_AHCI=y. It's all.
In the grub.conf and fstab you don't need to use hdaX, you can keep the sdaX.
Thank you very much, this actually helped to fix my problem, i had to recompile the kernel without the ahci sata support...
I managed to resolve this issue by upgrading linux (to the same version running) using the recover disc.
Using a Centos 5.7 recover disc I did the following.
1. On the welcome screen type: linux upgradeany
2. Followed the instructions on the upgrade wizard, rebooted and logged in as normal.
In preparation for the upgrade I needed to ensure that there was enough space in the /boot partition.
1. I logged into my system using a CentOS 5.7 installation disc, used the command: linux rescue
2. Used the chroot command to login into mounted file system /mnt/sysimage
3. Used the command: rpm -e to remove unnecessary kernels installed on the machine
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.