Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-26-2016, 07:14 AM   #1
LQ Newbie
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Not able to edit init script under initrd in centos 7(32 bit)

Hi all,

I am trying to edit init script under initrd image, But I am not able to edit it.

I followed below steps :

mkdir /tmp/initrdmount
# Copied the image from the centos 7.2(32 bit) source code and uncompressed -->\CentOS-7-i386-Everything-1511\isolinux\initrd
cp Desktop\CentOS-7-i386-Everything-1511\isolinux\initrd.img /tmp/initrd.img.gz
gunzip -v /tmp/initrd.img.gz

cd /tmp/initrdmount
cpio -i < /tmp/initrd.img

Under /tmp/initrdmount --> init script available.
I am not able to view/edit this file.

If any one have any Idea then Please help or give suggestion to edit init script. It will help me lot.

Thanks in advance.
Old 07-26-2016, 07:27 AM   #2
LQ Newbie
Registered: Jul 2016
Distribution: Debian
Posts: 14

Rep: Reputation: Disabled
Have you tried checking the ownership/permission of the file?

ls -o
Old 07-26-2016, 09:58 AM   #3
Senior Member
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,111

Rep: Reputation: 147Reputation: 147
Welcome to the forum.
Old 07-26-2016, 11:10 AM   #4
LQ Veteran
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
Hello and welcome to the forum

Please note that this forum is for introductions only. I have requested a moderator move this thread to an appropriate forum.



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
centos init.d script PIPESTATUS gillecaluim Linux - Newbie 1 10-10-2014 12:18 PM
Changing the init script of an initrd is not seemingly working amishera Linux - Newbie 1 05-07-2013 04:00 PM
How do I edit an init.d script after chkconfig --add ? dadoprso Linux - Server 3 10-18-2012 05:43 PM
[SOLVED] init script, centos/rhel, lighttpd, specify user s2cuts Linux - General 2 10-02-2009 07:31 PM
CentOS 4 (Fedora Core) init script - create PID file cejennings_cr Linux - Newbie 1 07-10-2006 08:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration