Aug
30
|
As usual, setting up in Virtual Box is fairly simple. I’ve installed Ubuntu on it and enabled the Virtual Box’s shared folder feature. To mount the shared folder on the system, I need to run the command below:
mount -t vboxsf <Shared_Folder_Name> <Local_Directory_Name>
However, the problem is I have to type it everytime I reboot the system. So I went out to search for the file that I can place my commands. The funny thing is I don’t know the exact term and I even tried the “Ubuntu equivalent of Windows’ autoexec.bat”.
Finally, I found it. It’s /etc/init.d/rc.local 🙂 Have fun.
Best Wordpress Hosting Providers - 2014
All three hosts offer FREE 1-click Wordpress installs making them the best Wordpress hosting providers. For more web hosting reviews be sure to check out AlreadyHosting.com.
![]() Bluehost Review |
![]() iPage Review |
![]() HostMetro Review |
4 Responses to “Ubuntu equivalent of Windows’ autoexec.bat”
Leave a Reply
You must be logged in to post a comment.
August 30th, 2007 at 8:21 pm
neve: Try Ubuntu with VirtualBox, it’s easy to install and setup.
September 8th, 2007 at 6:11 am
Jauhari: That’s interesting. I’m still new to Linux. Thanks for the tip.
Dale: Thanks, I will give it a try again. I was trying the /etc/fstab the other day, but it didn’t work. So I resolved to /etc/init.d/rc.local.
September 14th, 2007 at 7:10 am
what you mean?
September 27th, 2007 at 7:07 am
As mentioned, anything you want automatically mounted at boot should be set up in /etc/fstab. Running mount commands from /etc/rc.local is not a good idea, especially if the command has a tendency to hang or lag (say, the network is down).
“man fstab” for more information, or see how your existing /etc/fstab is written to get an idea of how it works.