LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab file (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-file-87912/)

gmg 09-01-2003 06:28 AM

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

carlywarly 09-01-2003 06:50 AM

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.

quatsch 09-01-2003 07:00 AM

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.

Eqwatz 09-01-2003 09:25 AM

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.

gmg 09-01-2003 09:55 PM

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

320mb 09-03-2003 03:21 AM

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!!


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