LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-19-2005, 06:44 PM   #1
poliux
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 10
Posts: 20

Rep: Reputation: 0
Recovering fstab


Hi,

Is there a way to recover or create the fstab file?
I accidentally screwed up the fstab file and the system won't boot.
I tried to create one based on the info given by fdisk but with no luck.

Please help.
 
Old 02-19-2005, 06:52 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
post the one you tried to create and you relevant info ( root partition, swap partition, filesystem, etc...).
 
Old 02-19-2005, 07:53 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
usaully when you edit a file it creates a backup of the file you were editing see if theres a fstab~. if so just rename it fstab. or type this in your terminal to get you started.

cat > /etc/fstab << "EOF"
# Begin /etc/fstab
# filesystem mount-point fs-type options dump fsck-order
/dev/xxx / fff defaults 1 1
/dev/yyy swap swap pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
# End /etc/fstab
EOF

xxx is you partition where your distro is installed
fff is your filesystem type

try google for fstab examples also I ripped the above example from the LFS handbook.




Last edited by Boow; 02-19-2005 at 08:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 06:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 06:55 PM
Recovering eggoz Linux - Newbie 1 06-13-2003 12:38 PM
help recovering HD bobsmith Linux - General 6 01-11-2003 01:47 AM


All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration