LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 06-14-2006, 05:18 AM   #1
anurak
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
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
 
Old 06-15-2006, 02:15 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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
 
Old 06-19-2006, 07:55 PM   #3
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
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]
 
Old 06-19-2006, 08:36 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.
 
Old 06-19-2006, 08:51 PM   #5
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
Hi,

how should i edit the fstab?
 
Old 06-19-2006, 11:51 PM   #6
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
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
 
Old 06-20-2006, 02:17 AM   #7
anurak
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 06-20-2006, 07:40 AM   #8
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
good work, and thanks for posting back the solution and whether it worked or not
 
Old 06-21-2006, 09:05 PM   #9
aerojazz
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 15
Hi

Thanks for the help. I Can now edit fstab.

aero
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB not loading / boot.ini file does not show Linux anymore jeetasher Linux - Laptop and Netbook 14 10-23-2005 06:50 PM
RealPlayer 10 installed-doesn't open or show up keithk2 Linux - Software 1 09-29-2005 01:07 AM
fstab entries show non-linear partition numbers Caysho Linux - Newbie 2 01-01-2005 08:25 AM
why won't my fat32 partitions show up in fstab lailoken Linux - Newbie 8 04-21-2004 01:44 PM
Dual boot, Linux-Linux, no windows, fstab? itsjustme Linux - General 8 11-24-2003 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration