Kernel Panic
Got this problem to a working systems
kernel Panic: Unable to mount root on fs 03:01 Please assist me in how to overcome this problem. I think I am booting from the right place as it was working. Dont want to format it again as got heaps of stuff there. Thanks in advance |
Make sure that:
1. your root partition is bootable(if not, toggle it bootable using fdisk or cfdisk) 2. the file system you use is compiled directly into the kernel, not as a loadable module |
Does the bootable flag matter at all for linux ? I know windows doesn't boot up without bootable flag, but my linux seems to work fine without such flag...
|
Quote:
|
If the "bootable" flag is not set, the system won't boot, even if the boot partition is the first one. I am 100% sure, as it happened to me twice to forget to set it on the first partition, and after a reboot nothing moved anymore, until I set it :)
|
Quote:
Here is "fdisk -l" from my desktop: ---------------------------- Device Boot Start End Blocks Id System /dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS /dev/sda2 2551 4374 14651280 83 Linux /dev/sda3 4375 4617 1951897+ 82 Linux swap /dev/sda4 4618 19457 119202300 5 Extended /dev/sda5 4618 6441 14651248+ 83 Linux /dev/sda6 6442 19457 104550988+ 83 Linux ------------------------------- Hmmm, running "fdisk -l" from slackware on the laptop shows that nothing seems to have boot flag set. Ubuntu is sda1, slakware is sda5, and debian is sda6: ------------------------------------ Device Boot Start End Blocks Id System /dev/sda1 1 1216 9767488+ 83 Linux /dev/sda2 1217 1338 979965 82 Linux swap /dev/sda3 1339 9729 67400707+ 5 Extended /dev/sda5 1339 2554 9767488+ 83 Linux /dev/sda6 2555 3770 9767488+ 83 Linux /dev/sda7 3771 9729 47865636 83 Linux bash-3.1# ------------------------------------- They all can boot though. |
Quote:
You can use the Slackware install cd1 to boot the system. Just pass the correct information on the 'boot:' prompt. The 'boot' screen gives you an example. You can use the 'F1', 'F2' keys to see the options. Code:
~ boot: root=/dev/hda1 noinitrd ro #select correct device for '/' If you don't have a working system or other problems you can still use the cd1 to boot the system to correct the problem. The easiest way would be to use the install cd1 to boot the system as if you were going to install. Make sure that you don't need a initrd. If the filesystem is not compiled into your kernel then you will need one. Read the '/boot/README.initrd' after you have 'chroot' to see how to create initrd. After you get to the login then from the cli (command line); Code:
~#mkdir /slacktemp #temporary mount point In the future, please provide information about your kernel, system or any other relative information for your problem. |
Thanks for the replies
I think after trial and error basis on hdb2 it says error occured furing root file system checkand prompted me to enter into single user mode to fix the prob... when I entered it asked for my root password. So I am thinking bare.i root=/dev/hdb2 is my drive. If it is what do I have to fix. Kernel 2.4.31 cheers |
If your box tells you an error occurred during root file system check, and drops you into single user mode, that is where you have to fix your root partition (the example below assumes that your damaged fs is on /dev/hdb2):
Code:
fsck -y /dev/hdb2 Eric |
Man that worked.....so thankful... holi shit man... all my data back now..
Will never forget. for kind assistance cheers |
All times are GMT -5. The time now is 03:50 AM. |