LinuxQuestions.org
Visit Jeremy's Blog.
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 03-11-2006, 01:12 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
messed up my fstab file


Hi all, I cant remember how my fstab looked before i started playing with it. When slackware is booting i now get:
Code:
mount: none already mounted or /sys busy
mount: according to mtab, sysfs is already mounted on /sys
.

Here is my fstab:
Code:
/dev/hda5        swap             swap        defaults         0   0
/dev/hda1        /                ext3        defaults         1   1
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/pts         /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
none		/sys		sysfs		defaults	0   0
Anyone know what it used to look like, or why im getting that error? I dont have a floppy drive so i took that out, then i should have left it alone :/

Any help greatly appreciated.
 
Old 03-11-2006, 01:20 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Try leaving out the last line.
 
Old 03-11-2006, 04:23 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
When you edit a file like this, the system typically saves the old version (with a "~" appended)
 
Old 03-11-2006, 05:24 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,116

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
You might want to consider using RCS to keep a running log of your changes. Here's what I do:
Code:
# cd /etc
# mkdir RCS
# ci -i -u fstab
The above creates your initial version. When you want to edit the file:
Code:
# cd /etc
# co -l fstab
# vi fstab (... make your edits ...)
# ci -u fstab
Repeat the above every time you want edit the file. You can then see a listing of all your versions like this:
Code:
# cd /etc
# rcslog fstab
Say your most recent version is "version 1.3" and you want to revert back to an older version 1.2 (because you discovered a mistake in 1.3)
Code:
# cd /etc
# co -u -r1.2
Just remember that "ci" means "check in", "co" means "check out", "-l" means "lock" and "-u" means "unlock"

It's a pretty simple procedure that can save your butt if you screw up (expecially when messing with other files - X11 settings, etc.)
 
Old 03-11-2006, 08:43 PM   #5
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Thank you
 
Old 03-12-2006, 12:34 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Thanks haertig for your tips. This is similar to the CVS.
 
Old 03-12-2006, 12:36 AM   #7
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Haertig, that was cool. Thanks. I didn't new about it. It is similar to CVS.
 
  


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
Need with messed up fstab. Tiyogi Linux - General 11 03-26-2008 01:57 AM
Messed up my fstab, now wont boot! Help, please. MillyFish Linux - Newbie 11 05-13-2004 08:37 AM
RH9 - won't boot - messed up fstab amanu1 Linux - Newbie 1 05-06-2004 08:52 PM
fstab got messed up after adding cd burner drrnsk8ter4 Linux - Software 3 04-24-2004 06:49 PM
messed up my fstab file aditya Linux - Newbie 1 10-07-2002 01:49 AM


All times are GMT -5. The time now is 01:01 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