LinuxQuestions.org
Visit Jeremy's Blog.
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 04-28-2003, 05:35 PM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
execute mount (or any) command on startup


how do i set my linux box to execute a command (such as mounting a volume) on startup, don't say put the entry in the fstab because i know that already , but i'm trying to mount a pc card, and the fstab is read before the pcmcia services start up, so i need a different approach to automount it, thanx in advance
 
Old 04-28-2003, 06:00 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
well either you create a small script and put it in the appripiate run level /etc/rc[345].d or you put it in the local boot file which might be named differently depending on your distro.

in RH its's /etc/rc.local if i remember correctly!
 
Old 04-28-2003, 06:14 PM   #3
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
Haven't got any of your distro's handy,
but in Slack I'd edit my
/etc/pcmcia/ide.opts
(or scsi.opts, if this were what I got)
file to get a pcmcia hard-drive mounted :)

Cheers,
Tink
 
Old 04-29-2003, 06:09 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Original Poster
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
editing the /etc/rc.local worked actually, that provided the answer to another question i hadn't asked which is how to execute the 'trackpat drag' command at startup also
killed two birds with one stone!
 
  


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 I execute a cmd on a startup ?? lab123 Linux - Networking 1 09-13-2005 12:42 PM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 06:31 AM
xinitrc in libranet? how do i execute a command on x startup? bleargh Linux - Software 6 12-11-2004 11:00 PM
execute file at startup? khucinx Programming 1 06-09-2004 11:27 AM
Programs execute at startup Greg21 Linux - Newbie 5 06-05-2003 03:07 PM

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

All times are GMT -5. The time now is 02:48 AM.

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