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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-01-2003, 06:28 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
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
|
|
|
09-01-2003, 06:50 AM
|
#2
|
Member
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825
Rep:
|
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.
|
|
|
09-01-2003, 07:00 AM
|
#3
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
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.
|
|
|
09-01-2003, 09:25 AM
|
#4
|
Member
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341
Rep:
|
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.
|
|
|
09-01-2003, 09:55 PM
|
#5
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Original Poster
Rep:
|
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
|
|
|
09-03-2003, 03:21 AM
|
#6
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
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 10:41 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
|
|