Hardware

What Is a NAS? Network Attached Storage Explained for Home Use

A NAS (network attached storage) is a storage device that plugs into your network instead of into one computer, and serves files to every device on that network. Inside it's a small computer with one or more drives, running an operating system whose main job is file sharing over standard protocols such as SMB and NFS.

The storage industry body SNIA defines it as "a storage device that connects to a network and provides file access services to clients", typically "an engine that implements file services and one or more storage devices." Everything else a NAS does, from backups to media streaming, is built on top of that.

How a NAS works

A typical home or small-office NAS has a low-power processor, some RAM, between one and several drive bays, at least one Ethernet port and its own operating system, managed from a web browser. Synology's DSM, QNAP's QTS and the open-source TrueNAS are common examples.

You create shared folders on it, give users access, and your devices connect over the network:

  • SMB is the protocol Windows uses for file sharing, and macOS and Linux speak it too. Microsoft describes it as a protocol that lets an application "read, create, and update files on the remote server". A NAS share shows up in Windows as \\nas\share.
  • NFS is the traditional Unix and Linux file-sharing protocol; SNIA's definition names it alongside SMB.

Because the NAS shares files, several computers can open the same folder at once, and the NAS itself keeps track of the file system. That's the key difference from the other ways of adding storage.

NAS vs external drive vs SAN vs cloud

External USB driveNASSANCloud storage
Connects toOne computerYour networkA dedicated storage networkThe internet
SharesA whole diskFiles and foldersBlocks (a disk-like device)Files
Used byOne device at a timeMany devices at onceServers, mostly in data centresAny device with internet
Speed limitThe USB link and the driveYour network linkThe storage networkYour internet connection
Ongoing costNoneElectricity, replacement drivesSpecialist hardware and staffMonthly subscription

SNIA defines a SAN as a network whose primary purpose is moving data between computers and storage devices, "usually (but not necessarily) identified with block services". With block storage, the computer sees what looks like a raw disk and formats it itself; with a NAS, the NAS owns the file system and hands out files. Home users almost never need a SAN.

The speed row matters more than people expect. A NAS can never deliver files faster than the network link between it and your computer. Gigabit Ethernet tops out at 1,000 megabits per second, which is 125 megabytes per second before protocol overhead, whatever drives are inside. Faster network ports (2.5 or 10 gigabit) raise that ceiling, but only if both the NAS and the computer have them.

What people use a NAS for

  • Backing up computers to one place automatically, without plugging in a drive.
  • Shared folders for a household or small office, with per-user permissions.
  • Photo and video libraries that every device can reach, often with media-server apps on the NAS.
  • Replacing cloud storage to avoid a subscription or keep files at home.
  • Running small services: some NAS operating systems have app catalogues or can run containers alongside file sharing.

How to connect to a NAS

Windows

In File Explorer, type \\nas-name\share (or \\192.168.1.10\share) into the address bar. To give it a drive letter that comes back after a restart, use Command Prompt:

net use Z: \\nas-name\share /persistent:yes

net use Z: /delete removes it again. Run net use /? for the full syntax, including /user: for a different account on the NAS.

macOS

In the Finder, choose Go > Connect to Server and enter an address in the form smb://DNSname/sharename or smb://IPaddress/sharename, which are the formats Apple lists for SMB servers. You can leave off the share name and pick it after signing in.

Find the NAS's address

The NAS gets an IP address from your router like any other device. Its admin page or your router's list of connected devices shows it. Giving the NAS a fixed address (a DHCP reservation on the router) stops mapped drives from breaking when the address changes; the article on public vs private IP addresses explains why that address only works inside your home network.

RAID in a NAS

With two or more drives, a NAS usually combines them with RAID so that one drive can fail without losing data. Synology's documentation lists the trade-offs: RAID 1 mirrors two drives and gives you the capacity of one; RAID 5 needs at least three drives and gives (N - 1) drives of space; its own Synology Hybrid RAID (SHR) is designed to combine drives of different sizes with less wasted space. Four 4 TB drives in RAID 5 give 12 TB usable and survive one drive failure. The full comparison is in RAID levels explained.

Is a NAS a backup?

A NAS can hold backups of your computers. It is not a backup of itself. If files are deleted or encrypted by ransomware on a computer that has the NAS share mapped, the damage reaches the NAS too, and RAID will faithfully keep both drives identical. A fire, flood, theft or power surge can take out the NAS and the computers in the same building at once.

CISA's backup guidance recommends the 3-2-1 rule: 3 copies of any important file (1 primary and 2 backups), on 2 different media types, with 1 copy stored offsite. A common home setup that meets it: files on the computer, a backup on the NAS, and a second backup of the NAS to a cloud service or to a USB drive kept somewhere else. Some NAS systems also offer snapshots, point-in-time copies of shared folders you can roll back to; check whether yours does and whether a client computer can delete them. For how ransomware works and why offline copies matter, see what ransomware is.

Keep the NAS off the open internet

Don't make your NAS reachable by forwarding its file-sharing port on the router. SMB uses TCP port 445, and Microsoft's guidance for organisations is to block TCP port 445 inbound from the internet at the firewall, which protects devices inside the network by preventing access from the internet. The same reasoning applies at home. If you need files while away, use a VPN into your home network or the NAS maker's remote-access feature, keep the NAS firmware updated, and turn off services you don't use. The article on port forwarding explains what forwarding a port actually exposes.

Do you need a NAS?

A NAS makes sense when more than one device needs the same files, when you want automatic backups without plugging anything in, or when you'd rather pay once for drives than monthly for cloud storage. If you only have one computer and just need more space, an external drive is simpler, cheaper and faster for that one machine. If you have no time to look after a device, cloud storage moves the maintenance to someone else, at the cost of the subscription and of keeping your files on another company's servers.

Frequently asked questions

Can I use an old PC as a NAS?
Yes. A NAS is a computer that shares its drives over the network, so any PC with enough drive connections and a network port can do the job, either with Windows file sharing or with a dedicated NAS operating system such as TrueNAS or OpenMediaVault. Compare its power draw with a purpose-built box, since a NAS usually runs around the clock.
Is a NAS faster than an external USB drive?
Usually not for a single computer. A NAS is limited by the network link, and gigabit Ethernet carries at most 1,000 megabits per second, roughly 125 megabytes per second before protocol overhead. A USB drive plugged straight into the computer isn't limited by the network at all, so for one machine it is usually the faster option. The NAS wins when several devices need the same files.
Do I need RAID in a NAS?
Not necessarily. RAID lets the NAS keep running when a drive fails, which matters if you want the files available without interruption. It does not protect against deletion, ransomware, theft or fire, so it is not a substitute for a separate backup. A single-drive NAS with a good backup is safer than a RAID NAS with none.
Can I reach my NAS from outside my home?
Avoid forwarding the file-sharing port (TCP 445 for SMB) on your router; Microsoft advises blocking inbound port 445 from the internet. Use a VPN into your home network, or the NAS vendor's own remote-access service, so that the file-sharing protocol is never directly exposed to the internet.

Sources