You are not logged in.

#1 2009-05-02 23:41:39

jimmy the saint
Member
Registered: 2009-04-10
Posts: 41

[solved] having trouble mounting a virtualbox share at boot

I run Arch with openbox on a virtualbox virtual machine.  I also use sudo.

I can mount a shared folder manually using

sudo mount -t vboxsf -o rw vboxhsare ~/vboxshare

I would like to mount it at boot since I use it frequently.  I tried to add the command to autostart.sh, but sudo asks for a password and it abviously fails without it, because a message "mount: only root can do that."

I attempted to add this line

myname  ALL= NOPASSWD: /bin/mount

to the sudoers file, but it is not working.  What I would like to do is to be able to mount without the need to input a password.  I read the manual but I think I am missing something.  Can someone tell me what I am missing or doing wrong?

Thanks

JTS

Edit: thanks, that worked.

Last edited by jimmy the saint (2009-05-03 17:48:07)

Offline

#2 2009-05-02 23:53:36

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [solved] having trouble mounting a virtualbox share at boot

This is how I do it with VBox PUEL: http://bbs.archlinux.org/viewtopic.php? … 35#p472335

Offline

Board footer

Powered by FluxBB