I am able to mount my drive manually like this (ubuntu):

sudo mount -t vboxsf C_DRIVE /mnt/saga_c

But when I try and add it to my fstab it does not mount when I restart the machine. Is there something wrong with my /etc/fstab line:

C_DRIVE         /mnt/saga_c     vboxsf   defaults         0   0

Do I need something in addition to the vboxsf? Or is there something else I am doing incorrectly?

link|improve this question

73% accept rate
1  
I'd try adding an explicit auto to the mount options. It can't hurt and quoth mount(8): "Some of these options could be enabled or disabled by default in the system kernel." – msw May 29 '10 at 20:17
feedback

2 Answers

up vote 5 down vote accepted

Try removing the "defaults 0 0" part. Just a hunch.

Found this (put this instead of the defaults):
rw,uid=1000,gid=1000

Report back. :)

link|improve this answer
Have to leave right now but I will try it tonight and get back. Thanks! – stephenmm May 29 '10 at 21:59
This is how my fstab looks now and it seems to be working. Thanks! C_DRIVE /mnt/saga_c vboxsf auto,rw,uid=1000,gid=1000 0 0 – stephenmm May 30 '10 at 21:06
feedback

This is what worked for me on Ubuntu 11.10 Server:

/etc/fstab line:

sites   /home/rob/sites vboxsf  auto,rw,uid=1000,gid=33 0 0

uid 1000 = my user, gid=33 www-data (apache group on ubuntu..)

/etc/rc.local

mount /home/rob/sites
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.