Linux - NewbieThis 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.
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.
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
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.
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.
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.
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
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!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.