Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-14-2006, 05:18 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2006
Posts: 6
Rep:
|
i can not boot linux it show can not open fstab
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?
i don't know e2fsck?
how to use?
please help.
Anurak
|
|
|
|
06-15-2006, 02:15 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
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)
hope this helps
|
|
|
|
06-19-2006, 07:55 PM
|
#3
|
|
Member
Registered: Apr 2006
Posts: 33
Rep:
|
Hello,
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]
|
|
|
|
06-19-2006, 08:36 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
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.
|
|
|
|
06-19-2006, 08:51 PM
|
#5
|
|
Member
Registered: Apr 2006
Posts: 33
Rep:
|
Hi,
how should i edit the fstab?
|
|
|
|
06-19-2006, 11:51 PM
|
#6
|
|
Member
Registered: Apr 2006
Posts: 33
Rep:
|
Hi I just viewed my fstab and it seems that its empty and it shows something like this:
~
~
~
~
"fstab" [readonly] 0L, 0C
**by the way i got this when i typed "fdisk -l"
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 3825 20482875 83 Linux
/dev/hda3 3826 3863 305235 82 Linux swap
/dev/hda4 3864 4998 9116887+ c Win95 FAT32 (LBA)
can somebody help me fixing my fstab?pls....Thanks in advance
|
|
|
|
06-20-2006, 02:17 AM
|
#7
|
|
LQ Newbie
Registered: Jun 2006
Posts: 6
Original Poster
Rep:
|
it might help
thank you for naroj I can fix my problem.
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.
Anurak
|
|
|
|
06-20-2006, 07:40 AM
|
#8
|
|
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,538
Rep:
|
good work, and thanks for posting back the solution and whether it worked or not
|
|
|
|
06-21-2006, 09:05 PM
|
#9
|
|
Member
Registered: Apr 2006
Posts: 33
Rep:
|
Hi
Thanks for the help. I Can now edit fstab.
aero
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|