RAID, NAS & serversHow to recover a virtual machine without losing your dataBot Blog: data recovery and digital forensics
Written by the people who open the drives. Over 170 articles from our technical team.
Learn what a NAS (network attached storage) is, how it stores data, the signs it is about to fail and how to recover NAS data safely.

Network attached storage (NAS) is a powerful network storage solution. It is designed to make collaboration and data sharing easier at home and in business, mainly through file-level storage, although many models also offer block and object storage over the network.
A NAS lets you centralize and manage data efficiently, giving client devices secure, remote access to it.
A NAS is made up of physical storage drives, a central processing unit (CPU), an operating system and a network interface. It uses communication protocols such as SMB/CIFS (Server Message Block/Common Internet File System), NFS (Network File System) and iSCSI (Internet Small Computer System Interface), as well as RESTful APIs (application programming interfaces) for object storage.
Although a NAS is a great way to improve data availability and performance, it can still fail.
In this article, you’ll learn more about network attached storage: how it works, its storage principles, its components and what they do, the signs that it is about to fail and how to recover your data if something goes wrong.
NAS (Network Attached Storage) is a dedicated data storage solution that allows multiple devices to access and share files over a local area network (LAN) or the internet.
It is an efficient way to centralize data storage and make it accessible to multiple devices, such as computers, laptops, smartphones, tablets and other devices connected to the same network.
A NAS device is usually a dedicated storage server with one or more hard drives or solid-state drives (SSDs), often configured in one or more RAID (redundant array of independent disks) arrays for better fault tolerance and performance.
The basic storage principle of NAS devices is to provide a centralized, shared location for storing and managing data on a local network or over the internet.
This is done with a dedicated storage server, the NAS itself, which is connected to the network and offers storage that various client devices can access.
A NAS is built around one or more hard drives or SSDs, which store the data.
These drives are usually organized in one or more RAID arrays, which offer different levels of fault tolerance and performance.
RAID combines multiple drives to improve data availability and, in some cases, access speed. Bear in mind, though, that RAID is not a backup.
A NAS has its own operating system, usually based on Linux, which manages the storage and provides network services to client devices.
It can be configured to provide different levels of access to data, such as read-only, read/write or restricted access to specific folders, according to users’ needs and security policies.
Client devices, such as computers, laptops, smartphones and tablets, access the NAS over the network using standard protocols. These include NFS for Unix-like systems and SMB/CIFS for Windows.
These protocols let client devices browse the NAS’s shared folders, open files, edit data and save information to the NAS as if they were working on a local drive.
In addition, many modern NAS devices offer extra features such as automatic backup, data encryption, remote access over the internet, media streaming and cloud integration. This makes them versatile and efficient storage solutions for homes and businesses.
File storage on a NAS relies on a file system that organizes the data stored on the NAS’s hard drives or SSDs and controls access to it.
Here are the main aspects of how file storage works on a NAS device:
Block storage on a NAS works quite differently from the traditional file storage we have just looked at.
While file storage gives access to individual files and folders through file sharing protocols, block storage presents storage space on the NAS directly to client systems as block devices.
Here are the main points of how block storage works on a NAS:
Object storage on NAS devices is also different from traditional file and block storage.
In object storage, data is organized into individual “objects”, each containing the data itself, metadata (information about the object) and a unique identifier known as a “key”.
Here is a closer look at how object storage works on a NAS:
As we’ve seen, NAS can offer different types of storage, each with its own distinct characteristics:
In short, file storage is ideal for sharing and collaborating on files, block storage is better suited to performance and granular control, and object storage is scalable and highly flexible for storing large volumes of unstructured data.
The right type of storage depends on the specific needs of the environment and the requirements of the applications.
NAS storage relies on two groups of protocols: communication protocols and file sharing protocols.
Here’s how each of them works:
NAS communication protocols are what allow client devices to connect to and access centralized storage. Here’s how they work:
SMB/CIFS (Server Message Block/Common Internet File System)
SMB is the protocol Windows uses to share files and printers over a network.
CIFS is an early dialect of SMB (SMB 1.0) and has since been superseded by SMB 2 and SMB 3, which are faster and more secure. The protocol works by exchanging messages between the client and the NAS for authentication, browsing and file operations.
It allows Windows devices, as well as macOS and Linux devices, to access and share files on a NAS.
NFS is a protocol used mainly by Unix-like and Linux systems to share files over a network.
It allows client devices to access files on a NAS as if they were part of the client’s local file system.
The NFS client requests files from the NAS using file handles, unique identifiers that typically include the file’s inode number in the file system.
iSCSI is a block storage protocol that allows storage devices to be accessed over IP networks.
It allows a client device (the iSCSI initiator) to access and use block devices provided by the NAS (the iSCSI target).
The iSCSI target is presented to the client as a block device and can be formatted and mounted as a local drive.
RESTful APIs are used to access object storage systems on a NAS.
They allow applications and services to interact with the objects stored on the NAS, with operations such as creating, retrieving, deleting and searching for objects.
RESTful APIs use HTTP methods, such as GET, PUT, POST and DELETE, to handle stored objects.
Each NAS communication protocol has its own purpose and specific usage scenarios.
Besides these, there are other protocols, such as FTP (File Transfer Protocol) and AFP (Apple Filing Protocol), which are used in specific environments or for particular data sharing and access needs on NAS devices.
Which protocol to use depends on the network environment, the client devices and the access requirements for the NAS storage.
The computers on a network may run different operating systems, such as Windows, Linux or Unix.
Each of them expects to access the files on the NAS in its own native way.
That is why the NAS makes its data available on the network through file sharing protocols that each operating system understands natively.
The main file sharing protocols are:
The components of a NAS work together to provide shared, accessible storage for client devices on a local network or over the internet. Here is what they are and what they do.
The physical storage drives are the core component of the NAS. They can be hard drives, SSDs or a combination of both.
They store the data and files that client devices connected to the NAS access and share.
It is also worth mentioning RAM, which provides temporary space for the data and information the processor needs quickly while the NAS is running.
The central processing unit (CPU) is the brain of the NAS, responsible for managing storage and responding to requests from client devices.
The firmware or operating system is the software that controls and manages all NAS operations.
It provides the interface for managing and configuring the NAS and for accessing its storage.
The network interface connects the NAS to the local area network (LAN) or the internet. It usually consists of one or more Ethernet ports for a wired connection.
Yes, there are some warning signs. One is a sudden increase in error messages.
Another is a drop in performance, along with more hard drive activity than usual for no apparent reason.
Constant noise and high hard drive temperatures can also indicate imminent failure.
An increase in error messages on a NAS indicates that it is having hardware, file system or connectivity problems, which may mean it is about to fail.
If the NAS becomes noticeably slower than usual, this may point to failing drives or other hardware problems, and a failure may be just around the corner.
Unexplained spikes in activity and logs filling up with errors may indicate that the NAS is at risk of failing.
If the NAS starts making strange noises, such as clicking, popping or buzzing, the hard drives may have mechanical problems.
If the NAS overheats frequently, this may also point to problems with its cooling system. Both are clear signs of imminent failure.
If the NAS shows error messages or warnings in its management interface or operating system, it’s important to look into the cause.
These warnings, such as a degraded RAID array or S.M.A.R.T. alerts on a drive, often come before a failure.
If you notice any of these signs, back up your most important data immediately and contact a specialist company such as Bot for help.
It is also a good idea to carry out regular preventive maintenance, such as updating the firmware and checking the health of the hard drives, to keep the NAS running properly and your data safe.
If the NAS still works and you have lost files through accidental deletion or another logical problem, you can try recovering them with data recovery software. If the NAS doesn’t boot, the RAID is degraded or a drive is making noises, skip this method and contact a specialist. Here’s how the software method works.
Download and install the NAS recovery software of your choice on your PC (never on the NAS). When you open it, select the “NAS Recovery” option.
The software will list the NAS devices it finds on the network. Choose your NAS and click “Scan”.
In the NAS management interface, go to “Control Panel > Terminal & SNMP” (the path varies by manufacturer) and select “Enable SSH service”. Note the port used for remote access. Then go back to the recovery software and click “Next”. Remember to disable SSH again when you are done.
The software will detect the IP address and port automatically. All you need to do is enter your NAS username and password.
If the IP address or port is wrong, you can correct them manually. Then click “Connect now”.
The software will then connect to your NAS and start scanning it. Wait for the scan to finish.
When the scan is complete, you will see the deleted, lost and existing files on your NAS.
You can use the “Filter” feature or the “Search files or folders” option to find the files you lost.
Select the files you want to recover and click “Recover”.
Finally, choose where to save them. Always save the recovered files to another drive, never to the NAS itself, so you don’t overwrite data that hasn’t been recovered yet.
Recovering data from a NAS is a delicate process, especially when important data is at stake.
The safest way to recover a NAS is to turn to specialists such as Bot.
Our highly specialized team recovers data from NAS devices with state-of-the-art tools and, when drives need to be opened, in a Class 100 (ISO 5) cleanroom with a particle-controlled environment.
We handle a wide range of cases, such as:
If you would still rather try it yourself (which we don’t recommend), here are some tips to do it as safely as possible:
To recover data from a faulty NAS, you should also turn to a specialist service such as Bot.
Our experts work to recover lost data from any system, using the best tools and techniques available.
This applies to all types of NAS and RAID levels, all RAID controllers, all configurations (whether with hard drives or SSDs) and all manufacturers.
Some guides suggest recovering data from a faulty NAS by removing its drives and using the Windows Command Prompt. Before trying it, you should know its limitations.
We don’t recommend this method. Removing the drives incorrectly can damage them or the RAID array, and NAS drives usually use RAID and Linux file systems (such as ext4 or Btrfs), which Windows can’t read; if Windows offers to initialize or format the drive, never accept, because that erases its contents. In addition, the command below only unhides files; it doesn’t recover deleted data.
If you still want to try, here’s how:
attrib -h -r -s /s /d X:\*.*
If the files were only hidden, they will appear again. If they don’t, or if Windows can’t read the drive, stop there and contact a specialist before doing anything else to the drive.
Read next
Bot offers data recovery for NAS (network attached storage) systems from a wide range of manufacturers, operating systems and configurations.
Our specialist team has the expertise to diagnose NAS failures efficiently and recover the data.
This applies to all types of NAS and RAID levels, all RAID controllers, all configurations (whether with hard drives or SSDs) and all manufacturers.
From the oldest to the latest models on the market.
Our services cover NAS recovery in situations such as:
With the most advanced tools and techniques in the world, our experts work to recover your lost data quickly and effectively, whatever system you use.
We also deliver your data securely, via secure transfer or on an encrypted external hard drive.
What’s more, all our labs operate under strict confidentiality and with fully restricted access.
Trust a company with a long track record and excellence in data recovery: start recovering your NAS with us now!
With RAID and NAS, a rebuild or an initialization without a diagnosis can reduce the chances of recovery. Before touching anything, see Bot’s RAID and NAS data recovery, which starts with a free diagnosis.
Bot Blog
Has your device failed and are the files important?
The diagnosis finds the fault and tells you whether recovery is possible. You get the quote before any work starts.