fstab: /etc/fstab:3: Inappropriate file type or format

Status
Not open for further replies.

kefdk

Cadet
Joined
Oct 21, 2017
Messages
2
Hi,

I've tried mounting a NFS share from my Synology NAS to my FreeNAS (have data on both NAS).

When I try to do a "mount -a" I get the message "fstab: /etc/fstab:3: Inappropriate file type or format".

I only added this line to the file:

10.10.1.12:/Media /media/Freja/Media nfs defaults 0 0

Does anyone have an idea why this is giving me the errormessage?

I'm running FreeNAS v. 11-0-U4.

Thank you in advance.

Best regards,

KEF
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Suggest you remove that line from your fstab, as it could prevent your FreeNAS server from booting.

Should you wish to mount a NFS share on your FreeNAS user, do it manually or from a script. Do not edit system files under /etc.

mount -t nfs 10.10.1.12:/Media /media/Freja/Media
 

kefdk

Cadet
Joined
Oct 21, 2017
Messages
2
Hi m0nkey_,

Thank you for your reply. I went away doing this stuff, but this gives me some other issues.

I went away from NFS and went over to SMB instead.
  1. I created my password file in: /root/.nsmbrc
  2. I used this command:
    mount_smbfs -N -I 10.10.1.12 //plex@FREJA/Media /media/Freja/Media
This worked fine. It mounted the folder correctly and I could navigate them.

Now I wanted to do this on boot, so I created a startup.sh script and placed it on /mnt/Data/scripts/startup.sh.
The script looks like this:

Code:
#/bin/sh
# Mount shares
mount_smbfs -N -I 10.10.1.12 //plex@FREJA/Media /media/Freja/Media


I then added this as a postinit script in the FreeNAS setup. I rebooted the server and it does not work. If I make a SSH connection to the server and execute /mnt/Data/scripts/startup.sh then it works fine.

How do I do this right?

Thanks in advance.

Best regards,

KEF
 
Status
Not open for further replies.
Top