Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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!
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 :)
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Original Poster
Rep:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.