LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-01-2012, 12:57 PM   #1
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Rep: Reputation: Disabled
Is it possible to revert the wrong entry made in /etc/fstab


Hi everyone,
I am using Centos 6 machine.In order to understand my machine I have been following one of the book for Centos. Today, unfortunately I have added LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2 in /etc/fstab then I reboot my machine but to my surprise it didn't boot instead black screen appeared.
I also opened /etc/fstab using VI editor but I couldnot erase my entry in /ec/fstab as it is read onlyfile.

Thanks & regards ,
Sangeeta

Last edited by cent_sangeeta; 11-01-2012 at 12:57 PM. Reason: mistakes
 
Old 11-01-2012, 01:12 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Boot to runlevel 1 or runlevel 3 (and login as root) to edit fstab.
 
Old 11-02-2012, 12:37 PM   #3
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bigrigdriver View Post
Boot to runlevel 1 or runlevel 3 (and login as root) to edit fstab.
Hi thanks for your reply. As I turned on my machine I get black screen showing following messages.
---------------------------------------------------
Welcome to Centos
Starting udev: [ok]
getting hostname localhost.localdomain : [ok]
getting up logical volume management: 2 logical volumes in volume
group "vol group" now active [ok]

checking file system
dev/mapper/vol Group -log vol01:clean,261509/23855104
files,4398944/95395840 b1 cks
dev/sda1: clean, 39/51200 files,34888/204800 blocks
sck.ext3:Unable to resolve,'LABEL=/home' [failed]

** An error occured during the file system check
**Droping you to shell; the system will reboot
**when you leave the shell
**Warning -- SELinux is active
**Disabling security enforcement for system recovery
**Run 'setenforce 1' for reenable.
Give root password for maintenance or type control -D to continue :
------------------------------------------------------------
Giving root password ,I also tried to delete my entry in /etc/fstab using vi editor but it didn't allowed me.
Do you mean that I need to run boot loader to edit /etc/fstab.
sangeeta Maharjan
 
Old 11-02-2012, 01:51 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,119

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
After you get the root shell prompt, you need to remount the root filesystem read/write:
Code:
mount -o remount,rw /
Then you can use an editor to change /etc/fstab. When you exit from the shell, the system will reboot.
 
Old 11-04-2012, 10:19 AM   #5
cent_sangeeta
LQ Newbie
 
Registered: Sep 2012
Location: kathmandu,Nepal
Posts: 22

Original Poster
Rep: Reputation: Disabled
Solved

Quote:
Originally Posted by rknichols View Post
After you get the root shell prompt, you need to remount the root filesystem read/write:
Code:
mount -o remount,rw /
Then you can use an editor to change /etc/fstab. When you exit from the shell, the system will reboot.
hi,
Thank you .I just followed you then my machine starts to reboot. Now I am able to carry my regular jobs. It's a big relief to me.

Sangeeta Maharjan.
 
  


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
does wrong type entry in fstab corrupts the partition ? ununun Linux - Hardware 10 06-16-2011 03:53 AM
Revert Ndiswrapper After Installing Wrong Driver on Ubuntu siliconpie Linux - Laptop and Netbook 1 12-11-2008 05:02 AM
entry-level self-made linux workstation ideas feldux Linux - Hardware 3 10-30-2005 03:43 AM
what is wrong with this /etc/fstab entry? d1l2w3 Linux - Hardware 10 02-01-2005 12:15 AM
fstab entry changed by system to wrong device cmbguy Linux - General 2 08-19-2004 10:04 PM


All times are GMT -5. The time now is 01:25 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