Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear sir,
After i close computer (run linux) by accident.
not shutdown properly.
after that i reboot
after it reboot for a while .
it show that can not open /etc/fstab
and ask for e2fsck.
i try to login by mantainance.
and open /etc/fstab i found out that in the file no
content at all.
do i need to edit it mannually ?
or i have to do e2fsck?
if you have a liveCD boot it up and use 'e2fsck /dev/deviceFileName' on the root partition that was not shut down properly. if you dont have one download a very simple one such as DSL. 50mb download.
if you can log in on the computer and view the /etc/fstab file but its empty, can u just edit it and add your entries manually? if you dont know how then let us know how your hard drive(s) partitions are layed out and what partition is for what (ie /dev/hdb2 is /boot, etc)
I got the same problem booting up linux.Can somebody help me? The error messages goes like this:
Your /etc/fstab does not contain the fsck passno field.
The superblock could be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem, then the superblock is corrupt.
fsck.ext2: Is a directory while trying to open [FAILED]
aero, use a live CD to edit your /etc/fstab file. search distrowatch.com or wherever to find a live distro to suit your needs (any will do however). check out 'man mount', specifically the paragraph that talks about the 6th field for a mount command or fstab entry (fs_passno section). read this section and edit the /etc/fstab file accordingly, or if you dont know then just add a ' 0' (zero) to the line in your /etc/fstab file that doesnt contain 6 fields.
for the one who have the same problem like me.
just follow the naroj help.
use live CD to boot the computer (in my case use damn small linux).
after finish booting. open terminal
type sudo su press enter to log in as root.
after that you go to /mnt and ls.
you will see all the mount point for the harddisk.
just mount your drive the hold the root file system by
#mount /dev/hda6 /mnt/hda6
(in my case i use hda6 becuase it hold root file system here)
after you mount you edit fstab by vi /mnt/hda6/etc/fstab
after you finish editing fstab. then try to reboot.
the content inside the fstab just search internet for suggestion.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.