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 rather stupidly messed around my fstab file to automount some file systems. Now when I boot, (even in Rescue mode) I am told that certain filesystems can't mount and I am dropped to a "shell".
I understand this is the linux equivalent of a "msdos prompt" but I dont know any of the commands needed to edit the fstab file. Part of the problem is "...no blank line at the end of the file."
If I could get a text editor running I could probably (though not definitely) have a go at fixing it myself. I'm having to post this from my work computer (Windows!!) so if you need any other info I'll have to check when I get home tonight.
Sorry to be a pain with what is probably a stupid newbie question. (Running Fedora Core 1 by the way)
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i think you do understand.
vi, nano, and pico are text editors you may have access to to edit the file. vi is pretty tough to use. run cat on the file to look at it before overwriting and see if it looks like your old one, if you don't want to try to edit.
run mount
with no options to see where your partition is mounted. then you'll have to cd there to get at the etc/ like cd /mount/sysimage/etc or something like that.
Problem sorted now - couldn't find ftab~ anywhere and when I did I couldn't move, copy or delete anything (wrong permissions) However, I got hold of a knoppix cd and (after a few boots, eventually in failsafe mode) I was able to unmount the original filesystem with fstab on it, then remount in read/write and correct the error.
Just in case you are interested, the original fstab which caused the problem had three spurious characters right at the front (%$¬). Dont know how they got there, but they're gone now and everything boots fine!
As soon as you can I recommend trying to find your way around the console as you'll probably end up there at some point again. That's one of the best things that I got used to when I switched from mandrake to slackware.. not to say I'm in anyway super at it but I can find my way around without x fairly well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.