LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-03-2005, 04:12 AM   #1
franklampard
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
\etc\fstab problem


Iam having redhat linux 9.0 running on my machine... and also GRUB boot loader... everything was working fine...

But suddenly iam having a strange message during boot loading...saying that

" the first two lines of fstab is not correct "
and it is asks me to enter root password to correct it or just press CTRL+D to reboot

If i gave my root password it only opens a shell prompt... and even if i tries to open fstab using vi editor i couldnt able to do that....

I dont know what to do other than reinstalling the OS
 
Old 10-03-2005, 04:42 AM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
Any reason you're using Red Hat 9.0 instead of Fedora Core 3 or 4? Just curious.
What's the error you get when you try to edit the /etc/fstab with vi?
Do you have a live CD that you can use to edit the /etc/fstab with?
 
Old 10-03-2005, 04:42 AM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hello,
if its not letting you access /etc/fstab that way then why don't u try with the 1st cd of that distro........go to linux rescue mode..and then check out the entries of /etc/fstab

regards
 
Old 10-03-2005, 09:14 AM   #4
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
Post your fstab file here so we can see what is wrong with the first two lines.

Hint: you can use lynx to access the internets and you don't even need X running.
 
Old 10-03-2005, 05:26 PM   #5
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 415

Rep: Reputation: 86
Re: \etc\fstab problem

Quote:
Originally posted by franklampard
Iam having redhat linux 9.0 running on my machine... and also GRUB boot loader... everything was working fine...

But suddenly iam having a strange message during boot loading...saying that

" the first two lines of fstab is not correct "
and it is asks me to enter root password to correct it or just press CTRL+D to reboot

If i gave my root password it only opens a shell prompt... and even if i tries to open fstab using vi editor i couldnt able to do that....

I dont know what to do other than reinstalling the OS
try "cat /etc/fstab" and see what is the error.


Is "/usr" on a different partition than "/" ?
vi is usually "/usr/bin/vi" so if /usr is a different partition then it doesn't get mounted because the system has run "sulogin"

you can try to mount it manually
"mount /dev/sda3 /usr" (replace sda3 with yours)
and then run "vi /etc/fstab" to correct the error
 
Old 10-03-2005, 05:40 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If the root device failed to mount, your system at that point may be the initrd (ram disk) with the programs that exist in its bin and sbin directories. There may be a /bin/vim or /bin/vim-minimal. You probably want to look at the directories to make sure.

If you don't see your normal /etc/fstab file, you may need to manually mount the root device and chroot to it. I always execute "/bin/bash -l" at this point to run my normal root startup scripts. After that, the regular vim is available.

Last edited by jschiwal; 10-03-2005 at 05:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
Please help - fstab problem mickeyboa Fedora 16 02-25-2005 06:12 PM
fstab problem imdeemvp Slackware 3 09-29-2004 04:37 AM
/etc/fstab problem mokojin Slackware 8 08-31-2004 01:34 PM
/etc/fstab problem intraining Linux - General 5 04-28-2003 08:30 AM


All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration