LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 08-12-2005, 10:30 AM   #1
mahaila
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Centos/red hat/ubuntu
Posts: 17

Rep: Reputation: 0
help backup server corrupted /etc/fstab


I have just started working in a new office when the Backup server failed.
I am not skilled in Linux (version Gentoo) so i apologise if i say the wrong thing.

/etc/fstab was corrupted when i checked the server.

1st problem,
I have noway of knowing how /etc/fstab was configured as there were no notes or documentation left for me to reference.

the machine is an intel server with two Disks 1 40GB the other 200GB

hda
hdb

A colleague told me to try a default /etc/fstab file but this gave me the same response that i first saw i.e


(partial screen output)

--------------------------------------------------------------------------------

inittrd-tools: 0.1.74
mount: fs type devfs not supported by kernel
umount: devfs: not mounted
mount: fs type devfs not supported by kernel
umount: devfs: not mounted
INIT: version 2.78-knoppix booting
Welcome to KNOPPIX (HD-Installation)


Enabling DMA acceleration for: hda [WDC WD400EB-11CPF0]
Enabling DMA acceleration for: hdb [WDC WD2000JB-00DUA3]
Enabling DMA acceleration for: hdc [SAMSUNG CD-R/RW SW-248F]
Found hardware profile in /etc/modules02.4.27.
Copying hardware profile to /etc/modules .
Running Linux Kernel 2.4.27.
Running from HD, checking filesystems...
Activating swap....
Checking root file system...
fsck 1.35 (28-Feb-2004)
fsck.ext2: Is a directory while trying to open /
/:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2
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>



fsck failed. Please repair manually and reboot. Please note that the root file system is currently mounted read-only. To remount it read-write:


# mount -n -o remount,rw /

CONTROL-D will exit from this shell and REBOOT the system

root@Knoppix:/#



-------------------------------------------------------------------
that is what the screen shows.

I have mounted the root filesystem and when i checked the /etc/fstab file it said it had a size of 0 bit, i therefore created a fstab file and guessed what values should be there i.e

/dev/hda1 /boot ext2 noauto,noatime 1 1
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0

This had no effect i ran fsck and it did do a fix to some blocks but when i tried i still get the origin screen shown above

Is there anyway i can interogate the server to get an idea of what was in its /etc/fstab file ?

worst case scenario is that i will have to build a new server which i have not done in production before (just a workstation) i will use redhat ES 4, as i said before this server was the backup server so all the scripts that were run on this box are somewhere on it!!!! (it ran scripts to copy files from the other servers to a tape drive attached to this unit)


Can someone tell me where i might find them? (they must have been cron jobs.

I am coming into work on saturday/Sunday to see if i can get it up if anyone has some good advice i would really appreciate it as I am more windows biased with some solaris knowledge .

Last edited by mahaila; 08-12-2005 at 11:15 AM.
 
Old 08-12-2005, 10:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 08-12-2005, 11:17 AM   #3
mahaila
LQ Newbie
 
Registered: Jul 2005
Location: London
Distribution: Centos/red hat/ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
sorry the first message got posted in error
 
Old 08-12-2005, 11:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the first??? you posted it 4 times! that's just not possible by "mistake"
 
Old 08-12-2005, 12:27 PM   #5
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
it is.. and I've done it. but it's highly unlikely. and quite probably entirely impossible if you don't have a terrible dial-up connection.
 
Old 08-12-2005, 01:11 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Closed.
 
  


Closed 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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
help backup server corrupted /etc/fstab mahaila Linux - General 18 08-13-2005 01:02 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 01:12 PM
help backup server corrupted /etc/fstab mahaila Linux - General 2 08-12-2005 01:12 PM
Yet another corrupted /etc/fstab Dag Linux - General 2 06-08-2004 11:17 AM
Corrupted /etc/fstab nxny Linux - General 15 09-01-2003 09:06 AM

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

All times are GMT -5. The time now is 02:53 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