Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-03-2004, 07:44 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2004
Posts: 6
Rep:
|
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.
Last edited by jychin; 08-03-2004 at 07:48 AM.
|
|
|
|
08-03-2004, 08:12 AM
|
#2
|
|
Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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.
|
|
|
|
05-10-2006, 11:59 PM
|
#3
|
|
LQ Newbie
Registered: May 2006
Posts: 2
Rep:
|
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
|
|
|
|
05-11-2006, 12:06 AM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian Testing; OpenSuSE 12.1; Fedora 17
Posts: 1,542
Rep: 
|
Distro CD
Use rescue mode on the distro CD1/DVD, as already stated.
|
|
|
|
05-11-2006, 12:09 AM
|
#5
|
|
LQ Newbie
Registered: May 2006
Posts: 2
Rep:
|
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 
|
|
|
|
05-11-2006, 12:40 AM
|
#6
|
|
Senior Member
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006
Rep:
|
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 
Last edited by Zmyrgel; 05-11-2006 at 12:43 AM.
|
|
|
|
05-11-2006, 01:34 AM
|
#7
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|