LinuxQuestions.org
Review your favorite Linux distribution.
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 05-26-2010, 11:12 AM   #1
wout
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Question how to boot in RHEL 4 with error in /etc/fstab ?


History: Ok, stupid mistake, but I shut down my RHEL 4 system with an error still present in the /etc/fstab file.

Current symptom: When I now try to boot, everything hangs when "Enabling swap space". Highly likely, the reason is the failure to "Mount local filesystems" in the previous step (i.e. "mount point 0 does not exist" = error due to my incorrect line in the /etc/fstab file).

Question: Is there any way that I can still boot my system, such that I can remove the incorrect line in the /etc/fstab file?

Really appreciate your help!
 
Old 05-26-2010, 11:23 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,884

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Boot a liveCD and edit/save /etc/fstab. Then reboot.
 
Old 05-26-2010, 11:23 AM   #3
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
boot a rescue LiveCD, mount your root partition, and then you can fix that error on /etc/fstab
 
Old 05-26-2010, 11:25 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,884

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Boot a liveCD and edit /etc/fstab. Then reboot.
 
Old 05-26-2010, 06:51 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,328

Rep: Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364Reputation: 2364
With RHEL you can also use the install media; at the initial prompt type

linux rescue
 
Old 06-03-2010, 07:19 AM   #6
wout
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Hi all,
Thanks for the ultra-fast response! Solved it indeed with a Ubuntu Live CD and then edited /media/_/etc/fstab .
Case closed and again clear sky in paradise! :-)
 
Old 06-03-2010, 07:24 AM   #7
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Word of advice for future reference - when you make a change to your fstab, run mount -a directly after editing; and check for errors.

Then as you have learnt; if there are errors; comment the errorneous lines out before shutting down or rebooting.

Lastly, be very careful if you're editing any of the primary partition mounts (root, boot, swap especially) since this will break your install on a reboot if incorrect.
 
  


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
How to dual boot RHEL 5.2 and RHEL 5.4 tongar Red Hat 5 03-28-2013 03:20 PM
RHEL 4 Boot Error carlosinfl Red Hat 5 06-07-2009 10:01 PM
Unable to boot to RHEL 4 32 bit after installing RHEL 64 - bit raj_ksrt Linux - Software 1 04-27-2009 09:44 AM
fstab.order alternative in RHEL 5.x jkboys Linux - Software 3 07-14-2008 10:18 PM
Suse won't boot after fstab changes - fstab not editable baking-a-77 Linux - Newbie 10 06-02-2007 10:51 AM


All times are GMT -5. The time now is 04:00 AM.

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