Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How would I make this command run at start up?


  • Please log in to reply
3 replies to this topic

#1 haun

haun

  • Members
  • 156 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Denver, CO
  • Local time:10:57 PM

Posted 15 November 2009 - 06:38 PM

i am using Virtual Box to run Xubutu and I have a shared folder setup that works, but the problem is that i have to enter it into the terminal every time i start up the machine.

this is the code:
mount -t vboxsf shared /home/ian/Desktop/Shared

Annnnd you're, asking, me...

BC AdBot (Login to Remove)

 


#2 powerjuce

powerjuce

  • Members
  • 321 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:57 AM

Posted 15 November 2009 - 07:31 PM

You can add this line into the /etc/fstab file:

shared /home/ian/Desktop/Shared vboxsf users,defaults,umask=000 0 0

To do so, follow these steps.
  • Press Alt+F2 (Or whatever key combo to launch the run application window)
  • Enter "gksu gedit /etc/fstab" (without the quotes). Then hit enter.
  • Enter you password when prompted.
  • Simple copy and paste
    shared /home/ian/Desktop/Shared vboxsf users,defaults,umask=000 0 0
    into the next available line.
  • Save, and close the file.
  • Reboot, and you should see the folder created.
That should auto-mount the drive with full permissions to use.

I hope that helps

~powerjuce

#3 haun

haun
  • Topic Starter

  • Members
  • 156 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Denver, CO
  • Local time:10:57 PM

Posted 15 November 2009 - 09:37 PM

That didnt really work, in "Places" it shows the Shared mount, but says "only root is allowed to mount from host"
Annnnd you're, asking, me...

#4 powerjuce

powerjuce

  • Members
  • 321 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:57 AM

Posted 16 November 2009 - 07:08 PM

Hey haun

Repeat the steps (if u deleted something).
After step 5 however type in.
sudo mount -a
that should mount the drive.

Reboot and the drive should still be there.

~powerjuce




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users