LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-23-2004, 02:07 AM   #1
jlsain
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, 02:23 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

/etc/fstab


Cheers,
Tink
 
Old 03-23-2004, 04:03 AM   #3
melinda_sayang
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 PM.

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
Open Source Consulting | Domain Registration