1827702 Members
3239 Online
109967 Solutions
New Discussion

LVM files

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor

Re: LVM files

Hi:

Without bothering to mount '/usr' you could use '/sbin/awk' to edit and replace your errant '/etc/inittab':

# awk '{if ($0~/^ems/) {print "#"$0}}' /etc/inittab > /etc/inittab.new

# /sbin/mv /etc/inittab.new /etc/inittab

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: LVM files

Hi (again):

Sorry for the apparent double-post. I tried to edit after I clicked submit.

# /sbin/awk '{if ($0~/^ems/) {print "#"$0}}' /etc/inittab > /etc/inittab.new

# mv /etc/inittab.new /etc/inittab

The important part is the caret (^) to anchor the matching of the "ems" string to the beginning of a line.

Regards!

...JRF...
Daniel Caçador
Regular Advisor

Re: LVM files

Hi to All!

The problem solved!!!!

Thanks to all!!

Especial to:
A. Clay Stephenson ---> Thank's!!!
Prashant Zanwar
James R. Ferguson
Daniel Caçador
Regular Advisor

Re: LVM files

Thank's!!!