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. |
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. |
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 |
Distro CD
Use rescue mode on the distro CD1/DVD, as already stated.
|
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 :) |
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 |
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. |