Editing linux files from windows

Hi!
I'm very new to linux.
In my last linux session, before rebooting, I've mounted some hd and added to fstable file three lines.
After rebooting it said to me that there are some errors in the file system.
I would like to edit the fstable back to its previous content.
How can I do so from windows?
Thanks!
rzvika2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jeilerCommented:
Your probably better off to boot to a linux cd (either from your distribution or something like Knoppix).  Then mount your harddrive and make any changes you need.
0
wesly_chenCommented:
> rebooting it said to me that there are some errors in the file system
Could you continue to login as root (so you can run fsck)?
If yes, then type root password and get shell prompt.
Type
mount -o rw,remount /
and edit /etc/fstab.

If not, please provide which Linux you use. Fedora/RedHat, Mandrake, or SuSe?
Different Linux have different approach.

Wesly
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikygeeCommented:
You should reboot in single mode
When you see the lilo (grub maybe) prompt, type init=/bin/sh
remount the root partition with mount -oremount /
After it has finish booting edit and modify /etc/fstab with vi

bye
0
XumxumCommented:
before you can login to your linux machine you have to enable sshd
find your sshd config file (usualy /etc/ssh/sshd ) and ad to listen adresses your Ip adress
and also type setup and in the system services menu enable sshd so it would start every time you reboot your machine. And you also need an ssh client that you can log in to your machine and execute command. One small program and good is putty, enter 'putty'
in google and you will find a putty.exe , download it and you can use it.

If you want to edit the file localy, login as root, and start mc(midnigth commander), If you don't have it installed , use other editor like vi(or vim) like vim /etc/fstab
press 'i' to enter insert mode, then edit, then press 'ESC' and finaly press ':w' to save the changes and ':q' to exit
hope that works
0
rzvika2Author Commented:
Thank you all,
actually, I've reboot and used the rescue mode, but it was appear that I haven't had the fstable file.
I've installed the Fedora3 again (took very quikly ;-) )
Thank you all!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.