Answers to: how to restore linux redhat when this error msg appearhttp://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear<pre><code>warning can't access (null) exec of unit (null) failed !! :14 unmount /initrd/dev failed :2 kernel panic - not syncing : attempted to kill init! </code></pre> <p>Update 01 - i couldn't fint /etc/fstab and couldn't find /boot/grub/menu.lst i mount my filesystem partition again coz it wasn't mounted and when i do</p> <p>df -i</p> <p>i found /tmp/loop0 mounted on /mmnt/runtime and inodes free is zero it's 100% full i really don't know what is that i go inside it and i found etc , lib , modules , proc , usr , var never mind</p> <p>when i go to my file system i found lib , pin ,var are not a directory i do e2fsck -fpv /dev/sda5 &lt;--- which is my file system is here and it's done when i reboot nothing change same error appear :( what did u suggest me to do ?</p>enWed, 20 Apr 2011 13:39:53 -0400Comment by rfelsburg on khaled's questionhttp://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear#2387<p>Please accept an answer so the question/answer can be finished.</p>rfelsburgWed, 20 Apr 2011 13:39:53 -0400http://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear#2387Answer by Ronhttp://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear/2334<p>WOW!! There are some good answers here, all of which I'd recommend, so I'll just add my little 2 cents here.... check /var/log and also dmesg... the first step of any troubleshooting is data-gathering, followed by the next step of sorting, filtering, and disseminating said gathered information so you can now make a proper assessment and then either proceed to gather more/different data, or fix the issue directly based on information gathered.</p>RonWed, 13 Apr 2011 13:57:11 -0400http://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear/2334Answer by rfelsburghttp://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear/1049<p>We need a little more information.</p> <p>Is this happening when you logout, login, try and mount a volume?</p> <p>Can you give precise info on what you are doing, or trying to do for that matter.</p> <p>However to give a push in the right direction: It looks like filesystem corruption, did you recently have an outage, or have a hard shutdown?</p> <p>Also what filesystem is this? ext3, ext2?</p> <hr> <p>UPDATE 01</p> <p>Essentially your filesystem is corrupt in some parts. It can't find what to mount. When you boot in with the boot disk, can you see /etc/fstab and /boot/grub/menu.lst?</p> <p>When you boot, it's missing a number of files it needs such as /var which you stated looks like a file instead of a directory.</p> <p>The next step would be to boot in with a boot disk, and run fsck on the unmounted</p> <p>e2fsck -fpv</p> <p>The above command will auto-repair the filesystem, and will force it to run even if the filesystem appears clean. The -v flag tells it to be verbose, log all the output in case you need to refer back to it.</p> <p>If it comes across an error that requires further intervention it will print it to the screen.</p> <p>Do the above and then come back and let us know whether it worked. We'll go from there.</p> <hr> <p>UPDATE 02</p> <p>Maybe I was unclear, when you boot with the rescue cd it normally mounts the filesystem to /mnt/sysimage</p> <p>You then have the option of chrooting to /mnt/sysimage which would make it so your filesystem is at / effectively.</p> <p>Assuming you are NOT chrooting to /mnt/sysimage your files would be located at /mnt/sysimage/etc/fstab and /mnt/sysimage/boot/grub/menu.lst</p> <p>Check for those files in those locations. Also check and see if /mnt/sysimage/var is a directory as well.</p> <p>You can try running fsck again as well, but after 3-4 times of running you may have to accept the filesystem is isn't able to be repaired by fsck.</p> <p>Are they present? if not and you have tried fsck'ing the filesystem you may be out of luck. If your filesystem is corrupted the next step after this would be to salvage your user data and go from there.</p>rfelsburgTue, 13 Jul 2010 17:08:10 -0400http://linuxexchange.org/questions/1028/how-to-restore-linux-redhat-when-this-error-msg-appear/1049