HOWTO+-+FreeNAS+TIPs

How to add a new driver in FreeNAS

Remount the compact flash UFS filesystem as rw code format="bash" mount -u /cf code

Copy your driver into /cf/boot/kernel For example the driver for the Realtek RLT8111E network card is (tested in FreeNAS 0.7.2 and working)

Then edit the file /cf/boot/loader.conf and the the line: code format="bash" if_re_load="YES" code

If the name of the driver was mydriver.ko the above line should be code format="bash" mydriver_load="YES" code

=
============================================== Here you can download FreeNAS 0.7.2.5543 with driver for RTL8111E Ethernet adapter.



You can use this small Windows NT/2000/XP command line tool that makes it possible to write disk images onto raw disks, like CF cards. [|physdiskwrite]

=
==============================================

Q. How do I mount a NFS share and store files on FreeNAS?

A. The mount_nfs command mounts a share from a remote server using NFS protocol. You can easily mount NAS share using the following syntax:

code mkdir /gregNFS mount_nfs 192.168.0.32:/mnt/TerraBoy /gregNFS code

B. You can copy a directory and all of its contents, recursively... code cp -iprv /gregNFS/Movies/ /mnt/KyrNAS/Movies/ code

C. You can delete a directory and all of its contents, recursively... code rm -r /mnt/KyrNAS/Movies/ code

=
==============================================

Q. How do I mount a SMB share and store files on FreeNAS?

A. The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol. You can easily mount NAS share using the following syntax:

code mkdir /gregSMB mount_smbfs -I 192.168.0.32 //admin@freenas/TerraBoy /gregSMB code

B. You can copy a directory and all of its contents, recursively... code cp -iprv /gregSMB/Movies/ /mnt/KyrNAS/Movies/ code

C. You can delete a directory and all of its contents, recursively... code rm -r /mnt/KyrNAS/Movies/ code

=
==============================================

Q. I want to have a user with read only capabilities and another user with read/write capabilities. How?

A. Navigate with WEBGUI to "Access|Users" and create two new users.

UserA: admin PassA: freenas Group: admin

UserB: guest PassB: guest Group: guest

B. Navigate with WEBGUI to "Services|CIFS/SMB|Settings"

C. Add the following lines at "Auxiliary parameters" memo box code read list = guest, @guest write list = admin, @admin code

D. Press Button "Save and Restart" in order to restart CIFS/SMB service.