LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2012, 12:29 AM   #1
utkarshsawant
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Replace /etc/inittab file from RHEL6 dvd


I am doing lab for RHCSA, and trying to replace /etc/inittab from RHEL6 dvd.

I entered my rhel6 box in single user mode and mounted dvd, but I dont find inittab file? any hints?


# mount /dev/dvd /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
# find /mnt -name inittab
#
 
Old 03-04-2012, 01:55 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
block device /dev/sr0 is write-protected, mounting read-only
if it is read ONLY then it is READ ONLY and you can not edit it

you really do not want to boot into "single user" or rescue mode unless there is no other options
inittab will be in the ram until you reboot
as a normal user log in then raise to root and use the mv command
Code:
su -
cd /etc
mv inittab inittab.old
write the one you want with vi
Code:
vi /etc/inittab
 
  


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
RHEL6 and the inittab heavymetalpt Red Hat 2 05-01-2012 03:58 PM
how to recover inittab in rhel6 balvinderhp Linux - Networking 1 09-21-2011 05:54 AM
no inittab, which file then abd_bela Ubuntu 1 01-07-2010 12:53 PM
inittab file muthiahm Linux - Newbie 4 06-10-2004 10:28 PM
no inittab file? Atroxic Linux - Software 2 05-14-2002 06:26 PM


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