mount: you must specify the filesystem type
A Red Hat Enterprise Linux 6.2, when abnormal occurred, I input any command ,return bash Input/output error. It may filesystem error.
After reboot linux, it can not startup normally, the screen print:
mount: you must specify the filesystem type
mount: you must specify the filesystem type
mount: you must specify the filesystem type
........
Kernel - panic - not syncing: Attempted to kill init!
How can I debug this error and resolve this issue?
Thanks.
Chen Long
Responses
Hello, It appears that your /etc/fstab is not configured correctly, or not available. In this particular case, you may need to boot from rescue media and manually mount the partition (or volume/filesystem).
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ap-rescuemode.html
An example of what your /etc/fstab should resemble
/dev/rootvg/home /home ext4 defaults,auto_da_alloc 0 2
As you go through the recovery, you will discover if you have an invalid filesystem (corruption) or one that needs maintenance.
Did you try lv_app also?
file -sL /dev/vg_oasrv/lv_root
There is still a possibility your data is there, but this is a fairly advanced recovery at this point and I don't want to risk providing invalid instructions and causing data loss for you. There are ways to recover alternate superblocks and some other tricks. I would recommend opening a case and let the folks that do this often assist you https://access.redhat.com/support/
You can try searching our knowledge base and solutions docs to see if there is one that matches your situation.
Here is an example (which may not apply to you): https://access.redhat.com/solutions/35340
If you are seeing the UID and GID while booted in rescue mode, that is OK (and sometimes expected) that likely means your installation had a user configured that the rescue image does not - and that is not a big deal.
So - it seems as though you corrupted your lv_root. There are additional steps that you can take to try and recover, but like I mentioned before that is not my specialty and I don't want to cause you data loss (and recommend you open a case if you really want to attempt recovery).
You can re-install and preserve the existing data in lv_app - and that may be the quickest/easiest option for you at this point. You may want to make a back of the data in lv_app before you proceed though. And make certain that you do NOT select "format" for that volume if you do re-install.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
