LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 03: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, 03:42 AM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

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, 03: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, 08: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, 04:26 PM   #5
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
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, 04:40 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 04:43 PM.
 
  


Reply



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 06:15 AM
Please help - fstab problem mickeyboa Fedora 16 02-25-2005 05:12 PM
fstab problem imdeemvp Slackware 3 09-29-2004 03:37 AM
/etc/fstab problem mokojin Slackware 8 08-31-2004 12:34 PM
/etc/fstab problem intraining Linux - General 5 04-28-2003 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 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
Open Source Consulting | Domain Registration