BleepingComputer.com: How would I make this command run at start up?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How would I make this command run at start up?

#1 User is offline   haun 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 156
  • Joined: 01-September 08
  • Gender:Male
  • Location:Denver, CO

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

#2 User is offline   powerjuce 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 321
  • Joined: 24-February 08
  • Gender:Male

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 User is offline   haun 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 156
  • Joined: 01-September 08
  • Gender:Male
  • Location:Denver, CO

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 User is offline   powerjuce 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 321
  • Joined: 24-February 08
  • Gender:Male

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users