9p, ubuntu 14 and fstab


Recommended Posts

I am trying to automatically mount an unraid share in my ubuntu KVM vm via 9p.  I can successfully mount it within ubuntu by typing:

 

mount -t 9p -o trans=virtio podcasts /mnt/podcasts -oversion=9p2000.L,posixacl,cache=loose

 

That works great.  But when I try to add it to my /etc/fstab so that it will mount automatically, I get an error from ubuntu every time at reboot telling me that the mount has failed, press S to skip.

 

Here's what I have in fstab:

podcasts /mnt/podcasts 9p trans=virtio,version=9p2000.L,rw 0 0

 

What am I missing?

 

 

 

Link to comment

I'm not sure if certain formatting is required in fstab (i.e. tab instead of space before and in between the 0's at the end of your line).  See this thread from some examples:  http://lime-technology.com/forum/index.php?topic=36348.0

 

also, I think the _netdev was an important switch.  I don't remember why though.

 

John

 

EDIT:  Found the info regarding _netdev:  http://lime-technology.com/forum/index.php?topic=34686.msg337468#msg337468

 

 

Link to comment

Not sure if it was the formatting or the _netdev switch, but it's working now!  Thank you (here's my working /etc/fstab entry for anyone that might be interested:

 

podcasts /mnt/podcasts  9p trans=virtio,version=9p2000.L,nobootwait,rw,_netdev    0  0

Netdev is what solved your issue.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.