Linux - GeneralThis 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.
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.
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
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
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 .
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.