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 09-01-2003, 06:28 AM   #1
gmg
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
fstab file


I was trying to enable disk quotas from instructions from a webmin module called virtulmin.

I added the last line to the /etc/fstab file.
Now I get get linux to boot. It gives me the option to enter the root password or reboot.
When I put in the password it drops me in a shell in which i don't have a clue how to change the file back the way it was. I don't have a clue how to even get to the file least of all edit the thing.
Any help would be appreciated. Thanx
Gmg





"LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda2 /home ext3 defaults,usrquota,grpquota 1 1
 
Old 09-01-2003, 06:50 AM   #2
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Try typing mc when you are dropped into the shell. If you're lucky, midnight commander will open. Navigate to the /etc directory and remove the last line of /etc/fstab and see if that helps.
 
Old 09-01-2003, 07:00 AM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
or try
/bin/vi /etc/fstab
this will open vi, an ancient editor. Press i to be able to edit; when you're done editing, press ESC, and then :w (don't forget the colon) which will save the changes.
 
Old 09-01-2003, 09:25 AM   #4
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
ESC then :wq. Ancient?????? Okay, old but useful. I never could get the hang of MC. You shouldn't have to path-name vi either.
A secret. If you plan and log what you are going to do, it makes it easy to reverse the changes. Do I do that? Are you kidding? That would take some sense! Every time I screw up, I am sure I will remember what I did, and log it "later". However, I have gotten a lot better at installing images--a lot better. Before that, I got real good at installation. Some day, I am sure, I will get really good at logging everything.
 
Old 09-01-2003, 09:55 PM   #5
gmg
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Man you guys are a life saver i tried the mc thingy and after about an hour of figuring out how the thing worked I was able to edit the file and I'm back up and running.
I tried the /bin/vi thingy with no luck.

By the way I log everything the problem is finding which scrap of paper I wrote it down on. I probably got at least two packs of postit notes stuck up all over the place. Hey but it makes for interesting wall paper.
Thanx guys
gmg
 
Old 09-03-2003, 03:21 AM   #6
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
Originally posted by gmg

By the way I log everything the problem is finding which scrap of paper I wrote it down on. I probably got at least two packs of postit notes stuck up all over the place
this is GOOD!! while learning this stuff, it is advisable to write down EVERYTHING you do and hang on to it!! good job!!
 
  


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 Help regarding fstab file thinker1 Linux - Security 1 11-01-2005 09:02 PM
changes to fstab file joanduan Linux - Newbie 3 03-10-2005 01:32 PM
fstab file entries what do they mean? bgagnon SUSE / openSUSE 2 11-12-2004 02:23 PM
fstab file Haroon Linux - General 12 09-08-2004 06:09 AM
fstab file being overwritten MacLin Fedora 3 07-26-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 AM.

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
Open Source Consulting | Domain Registration