LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2003, 10:16 PM   #1
pi314159
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Ubuntu, Slack, Athena Linux (derivative of RedHat)
Posts: 35

Rep: Reputation: 15
Oh where, oh where, did /etc/fstab go?


I installed Slackware 9.1, spent an hour and a half trying to get WinME to reboot in DOS (I'm setting up a dual-boot system), finally got loadlin and my boot menu to work together, and tried to use it to boot into Slackware. Unfortunately, /etc/fstab seems to be missing, giving me a screenful of various error messages; I think they're all probably caused by this (please see below.)

Warning: couldn't open /etc/fstab: No such file or directory
/sbin/e2fsck: Is a directory while trying to open /

The superblock coule not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext3 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock
e2fsck -b 8193 <device>

(then a nice frame of askeriske surrounding the following error message)
An error occurred during the root filesystem check. You will noe be given a chance to log into the system in single-user more to fix the problem. If you are using the ext2 filesystem, running e2fsck -v -y <partition> might help.

IIRC (I would check, but I don't know how from outside Linux!), my disk is partitioned into /dev/hda1 (Windows), /dev/hda2 (extended), /dev/hda5 (swap), and /dev/hda6 (/).

What might have caused this, and how can I fix it? Thank you!

-pi314159
 
Old 11-30-2003, 07:26 AM   #2
hiteshmaisheri
Member
 
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
This might have caused due to the improper shutting down of the pc... using the reset button... which is the common case with with windows... but with linux if u do not shutdown the system properly these kind of messages would be quiete common.... so do shutdown the system using poweroff or shutdown -h now....
 
Old 11-30-2003, 07:28 AM   #3
hiteshmaisheri
Member
 
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
to solve the problem regarding the /etc/fstab it is that u should get a copy of fstab file and edit the file according to your configurations... if u want i can send a copy of the fstab file....
 
Old 11-30-2003, 01:54 PM   #4
pi314159
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Ubuntu, Slack, Athena Linux (derivative of RedHat)
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you, I would appreciate that greatly. Or perhaps you could post it here, so that others can refer to it if they run into the same problem?

So once I edit it, save it to a floppy...what do I do? I'm thinking that I should probably boot from the CD and
mv /dev/fd0/fstab /etc/fstab
...would that work?

Thanks!
 
Old 12-02-2003, 05:24 PM   #5
pi314159
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Ubuntu, Slack, Athena Linux (derivative of RedHat)
Posts: 35

Original Poster
Rep: Reputation: 15
Fixed it! I just booted in with the floppy and recreated /etc/fstab. Not hard.

Thanks!

-pi314159
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
What is fstab? sceadu Linux - Newbie 2 11-02-2004 08:25 PM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM
Help with /etc/fstab wawosz Linux - General 3 04-24-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration