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.
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.
|
|
08-12-2005, 11:30 AM
|
#1
|
LQ Newbie
Registered: Jul 2005
Location: London
Distribution: Centos/red hat/ubuntu
Posts: 17
Rep:
|
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 12:15 PM.
|
|
|
08-12-2005, 11:40 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
08-12-2005, 12:17 PM
|
#3
|
LQ Newbie
Registered: Jul 2005
Location: London
Distribution: Centos/red hat/ubuntu
Posts: 17
Original Poster
Rep:
|
sorry the first message got posted in error
|
|
|
08-12-2005, 12:29 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
the first??? you posted it 4 times! that's just not possible by "mistake"
|
|
|
08-12-2005, 01:27 PM
|
#5
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
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.
|
|
|
08-12-2005, 02:11 PM
|
#6
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Closed.
|
|
|
All times are GMT -5. The time now is 08:59 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
|
|