Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-23-2004, 03:07 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Question How do I get Fedora to automatically run a command during startup?

I have a simple question...

When Fedora is loading, I want it to do this automatically:

mount -t ext2 /dev/hdb4 /opt

What is the EASIEST way to accomplish this? Autofs, or what?
Old 03-23-2004, 03:23 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Add an apropriate entry to


Old 03-23-2004, 05:03 AM   #3
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
The best way is to edit /etc/fstab like Tinkster said. But the easiest ways is to edit rc.local. Search for it. I forgot where it is in Fedora system. Just add command you want to load at the start up.


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
How can a command/program be run automatically on boot? chuanweizuo Linux - Hardware 1 11-28-2005 11:36 AM
How to run a command automatically on start up TKD SUSE / openSUSE 6 11-03-2005 05:41 AM
Automatically run scripts on startup? Phaethar Fedora 10 09-24-2004 03:35 AM
How can I run a command automatically at startup? luwigie Linux - General 8 08-26-2004 10:05 PM
How can the linux OS run script automatically at startup? tommylkc Linux - Newbie 1 06-26-2002 04:09 AM

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