LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux not booting after editing fstab... (https://www.linuxquestions.org/questions/linux-newbie-8/linux-not-booting-after-editing-fstab-684104/)

subashk80 11-17-2008 12:33 PM

Linux not booting after editing fstab...
 
I was not getting the windows drives mounted in my login. I am getting it mounted only in root login, so i edited the fstab file as one of my friend said as (\dev\hda7 \media\songs defaults 0 0). But now the linux itself is not booting. It stops with "loading ntfs version 3.1. What should i do ? help me plz!

zQUEz 11-17-2008 12:48 PM

How far in the boot process do you get?
I expect you are getting through some of init before it "stops booting". What you could do is boot from a live cd, or the first cd of an installation, or a resuce cd, and simply drop to the command prompt and edit /etc/fstab removing (or commenting) that line. Reboot and confirm that you can now boot.

As far as the line you entered in fstab, you are missing the 3rd field that defines what fstype it is. I believe this is mandatory (though I could be wrong) which is why you are having problems. For example, your line should be something like: "\dev\hda7 \media\songs vfat defaults 0 0" or "\dev\hda7 \media\songs ntfs defaults 0 0".

sycamorex 11-17-2008 12:58 PM

Quote:

"\dev\hda7 \media\songs vfat defaults 0 0" or "\dev\hda7 \media\songs ntfs defaults 0 0".
Linux uses forward slash - /dev/hda7 /media/songs, etc

AuroraCA 11-17-2008 01:06 PM

If you don't know what type of file system you have on your drive you can use "auto" in lieu of "fat32" or "ntfs"
Code:

\dev\hda7 \media\songs auto defaults 0 0

paulsm4 11-17-2008 01:17 PM

forward slashes, folks:
Quote:

/dev/hda7 /media/songs defaults 0 0
Assuming you're able to log on to the system:
1. Look in /var/log/messages for any related errors
2. Fix (or comment out) the offending fstab entry and reboot

If you're not able to boot and/or log on, then:
1. Try booting from your install CD
2. Post back for details on how to mount your hard disk and fix the problem (when booting in "rescue mode" from install CD)

subashk80 11-22-2008 01:37 PM

hi thz guys i got it right!!


All times are GMT -5. The time now is 12:30 AM.