LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   execute mount (or any) command on startup (http://www.linuxquestions.org/questions/linux-software-2/execute-mount-or-any-command-on-startup-57210/)

frieza 04-28-2003 05:35 PM

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 :D, 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 :)

markus1982 04-28-2003 06:00 PM

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!

Tinkster 04-28-2003 06:14 PM

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

frieza 04-29-2003 06:09 PM

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
:D killed two birds with one stone!


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