I have been following the same tutorial that everyone else is referencing. My fstab
entry is exactly like in the tutorial with changes to actual location. I keep getting the error
mount: only root can mount //freenas/Server on /media/Server
This is the most irritating thing I run into time and time again with running Ubuntu. I have had a freeNAS box with a single hard drive in it for almost 4 years. I had my server mounted correctly a month ago but I started from scratch again.
The server is functioning normally as I have another Ubuntu box running XBMC perfectly fine.
I am running Ubuntu 12.10 but get the same message with 12.04.
I have installed cifs-utils
and smbnetfs
from terminal after installing samba from the software center. This is how I got it running last time.
The workgroup in samba matches my network workgroup.
I don't have any credentials to check with the share as it is setup as guest.
I can't browse the network as it keeps giving me a timeout error. I also can't open my share from Nautilus by hitting Ctrl+L and manually typing my server share (//freenas/Server
).
Edit 1: I'm able to browse my network but still am getting the error message?
Edit 2: I'm able to mount the share after testing the individual options one my one. It seems that using codepage=unicode
was causing the problem. My fstab entry now looks like:
//freenas/Media /home/charles/Server cifs guest,iocharset=utf8,uid=1000 0 0
Edit 3: I can only mount using only "guest" for options? Last time I ran into an issue of not being able to open files on other computers that originated from my Ubuntu machine?
Last Edit: I had to force my freeNAS server(Version: 0.7.2.5543) to have the same permissions as Ubuntu, GID=1000
for uid=1000
. Also freeNAS by default creates a guest user account ftp
with a null password. With these three items and adding my freeNAS IP address to /etc/hosts
I'm up and running. Sorry for the super long delay closing this question but I greatly appreciate the help!
fstab entry:
//freenas/Media /home/charles/Server cifs username=ftp,password=,uid=1000 0 0
ls -l
in/media
.uid1000
a typo here or a typo in your actual fstab? It should beuid=1000
.