LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accidentaly deleted fsatb file (https://www.linuxquestions.org/questions/linux-newbie-8/accidentaly-deleted-fsatb-file-212880/)

jychin 08-03-2004 07:44 AM

Accidentaly deleted fstab file
 
hi...
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 08: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-10-2006 11:59 PM

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?

Cheers

AwesomeMachine 05-11-2006 12:06 AM

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

pakage 05-11-2006 12: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 12:40 AM

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

Here's a sample for gentoo installation docs:
Code:

/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 01: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 07:50 AM.