Link to home
Start Free TrialLog in
Avatar of mprovenc
mprovenc

asked on

Linux won't boot, missing fstab

Following a crash and lots of disc corruption, my machine will no longer boot.
fsck complains about a missing /etc/fstab.  I eventually get into the maintenance mode, and I can see a file called /etc/fstab~, but no fstab.  I can't rename it either because the file system is read-only.

How can I bring back this file ? I have no boot or rescue disk of course...
Avatar of bernardh
bernardh

you can still rename it even if its read-only. do:

   # mv /etc/fstab~ /etc/fstab
ASKER CERTIFIED SOLUTION
Avatar of Tigre
Tigre

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oh boy, you're making it hard for her. all you need to do is boot to single-user mode and remount the file system using:

   mount -n -o remount,rw /

or replace / with other partition like /etc, /usr.

tsk...tsk
Avatar of mprovenc

ASKER

Thanks to everyone !!

I think that last one with the remount option might have done it, however
because we've had so many problems with the hard disk and the network
card (it kept crashing under heavy traffic), the powers that be have told
me to intall NT on this machine and see if it would work better.

I know, that sucks.

Thanks again to everyone !!