Aug 30

Linux PenguinAs 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.

written by mangoorange


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.

 #1
#2 
 #3
#1 - Bluehost 
Bluehost Review
#2 - iPage 
iPage Review
#3 - HostMetro 
HostMetro Review


4 Responses to “Ubuntu equivalent of Windows’ autoexec.bat”

  1. 1. mickeyckm Says:

    neve: Try Ubuntu with VirtualBox, it’s easy to install and setup.

  2. 2. mickeyckm Says:

    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.

  3. 3. mickeyckm Says:

    what you mean?

  4. 4. elvis Says:

    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.

Leave a Reply

You must be logged in to post a comment.