How to Build NAS With CentOS
Building a Network Attached Storage server allows file sharing between all the computers on a network. With Linux distros, including CentOS, you can also share files between computers in the network that run on other operating systems, including Windows and Mac OS X. Install Red Hat Enterprise Linux software and run NFS on the CentOS machine to turn it into a NAS computer.
Things You'll Need
- Red Hat Enterprise Linux software ISO
Open a terminal session, then type **dd if=/dev/dvd of=/location/of/disk/space/RHEL5.iso** and press **Enter** to install the Red Hat Enterprise software you downloaded as an ISO image.
Type **mv /location/of/disk/space/RHEL5.iso /export/directory/** and press **Enter**.
Enter **/export/directory *(ro,no_root_squash)** and then **/sbin/service nfs start**.
Type **mkdir /home/sharing** and press **Enter**.
Enter **vi /etc/exports**. Add **/home/sharing 192.168.0.3/255.255.255.255(rw,sync)** to the end of the file. Save and close the file.
Enter **vi /etc/hosts.allow**. Add **portmap: 192.168.0.0/255.255.255.0** to the end of the file and press **Enter**.
Type **/etc/init.d/portmap start** and press **Enter**. The NAS server is now ready. You will need to set up the clients to share with according to the directions for the operating systems they run.