Editing linux files from windows

Posted on 2004-11-28
Last Modified: 2010-05-18
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?
Question by:rzvika2
    LVL 3

    Assisted Solution

    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.
    LVL 38

    Accepted Solution

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

    LVL 2

    Assisted Solution

    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


    Assisted Solution

    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

    Author Comment

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now