-   Linux - Newbie (
-   -   Accidentaly deleted fsatb file (

jychin 08-03-2004 08:44 AM

Accidentaly deleted fstab file
i know this sounds stupid but i accidentaly deleted the contents of the fstab file. Now i wont boot. it says something like file system corrupted. what can i do ?? any help would be apprecaited. thanks.

Demonbane 08-03-2004 09:12 AM

Use the rescue mode provided by your distro CD, then create another /etc/fstab.
That's why you shouldn't muck around using the root account.

pakage 05-11-2006 12:59 AM

I have done the same thing.. i backed up the fstab file but the backup too appears to be blank. My machine is still on and i dont plan on rebooting till ive got that fstab file all propper. How do you recreate it with the correct settings in there?


AwesomeMachine 05-11-2006 01:06 AM

Distro CD
Use rescue mode on the distro CD1/DVD, as already stated.

pakage 05-11-2006 01:09 AM

ahk, cool.. sorry..
I thought that the rescue tool simply allowed you to boot with no fstab file and then from there you had to re create it some other way..
Cheers :)

Zmyrgel 05-11-2006 01:40 AM

You can always write your own fstab by hand. It's not hard.

Here's a sample for gentoo installation docs:

/dev/hda1  /boot    ext2    defaults,noatime    1 2
/dev/hda2  none      swap    sw                  0 0
/dev/hda3  /        ext3    noatime              0 1

none        /proc    proc    defaults            0 0
none        /dev/shm  tmpfs  nodev,nosuid,noexec  0 0

/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0

Just modify the above to suit your system and that's it :)

syg00 05-11-2006 02:34 AM

If I still had an active machine, I'd cat /etc/mtab to fstab. Will be missing some things like CD, floppy, mount options ...
Should be enough to get you up though.

Then play all you like with recovery options.

All times are GMT -5. The time now is 12:03 PM.