Welcome to the most active Linux Forum on the web.
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 01-08-2009, 01:14 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
Custom Task During Bootup

We are running RHEL 5.2 on vmware. What we are trying to do is to have a custom task that gets executed during the boot process. This custom task will -

1) make partition(s) on a new slave drive (hd space allocated manually outside of the original image) - fdisk would work (as is part of distro)
2) make filesystem - mkfs.ext3 on target partition(s)
3) create directory and allow access - like chmod 777
4) mount target partition
5) copy certain files/directories onto the target partition from a separate source partition.

I am thinking about putting a script in rc3.d to achieve these tasks. However, it seems to me that most tasks in executed by the init process during boot time are programs/services whereas I am just looking to execute a script during the boot process. I am wondering if there is another place where I can place my script or the init program is where I should have it.

Thanks in advance.
Old 01-08-2009, 01:15 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Old 01-08-2009, 01:36 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hi repo. That makes sense. Then my script gets executed every time the box boots up or when it boots into a different runlevel. Let me give that a try. Thank you for your help!


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
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 10:39 AM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 04:15 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 04:05 AM
gnome fails to load on login after bootup - unless bootup first in win xp doubletruncation Fedora 6 12-07-2005 09:32 AM
custom geforce video card--custom module? bandofmercy Linux - Hardware 3 10-14-2004 07:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 PM.

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