In this lesson we will learn a little bit about NTFS. We will see how it compares to other file systems and see some of the advances features of NTFS and how we can implement them.
The file system controls how data is stored and accessed on your drives. Most files systems use a hierarchical system of directories containing files. File systems have evolved over the years. In earlier operating systems we had FAT (File Allocation Table), and FAT was a basic way to access our data. FAT improved over the years, but was lacking in some features needed to push the capabilities of the operating systems farther. When Windows NT was in development, the limitations of FAT were apparent, so a new file system was created called NTFS. All modern versions of Windows use NTFS as their default file system on hard drives, but we still use a version of FAT on our removable USB drives. Here is a breakdown of the basics of the file systems, even including HPFS. HPFS was a file system used in OS/2 which was co developed with IBM before they split off and created Windows NT.
There are four basic attributes that can be associated with a file or folder in NTFS. They are Read Only, Hidden, Archive and System. We consider these to be basic attributes because they also exist in FAT. If you display the properties of a file you can see two attributes. Read Only and Hidden.
Read Only will let someone view the file, but not update or make changes. Hidden files are more interesting. You can set a file as hidden and it will disappear. You won't be able to see the file when using Windows Explorer. In the image below we have a file that's hidden and we can't see it.
If you want to prevent this behavior you can set a file or folder as hidden and system. If a file is hidden and system it won't show when you display hidden files. Unfortunately you can't modify the system attribute using Windows Explorer. You have to use the attrib command from a command prompt. In the screenshot below we use the attrib command to see what attributes are set on our files and folders. Then we turn on hidden and system on our file.
Once you set a file as both system and hidden it won't show in Windows Explorer when you turn on hidden files.
These files can still be made visible by showing protected operating system files in folder options.
It's dangerous to run this way since you may accidentally delete an actual system file causing problems. When you turn on system files you will see more then the file you hid.
There are two advanced attributes, Compress and Encrypt. These are only available on NTFS partitions and are only in effect while the data exists on the NTFS partition. If you move data that is either encrypted or compressed to a USB drive formatted with an exFAT file system they will no longer be encrypted or compressed. The advantage of these advanced attributes is how they work in a transparent way. The applications don't need to know how to compress or encrypt the data, the file system takes care of it seamlessly.
You can only select one of the attributes at a time. You can't have a file or folder be both compressed and encrypted. The video below shows how only one can be selected at a time. The confusing thing about this is the choice of checkboxes instead of radial buttons. Usually checkboxes mean more then one can be selected and radial buttons mean only one can be selected. Boo...
Encrypting a file is easy, in the properties of the file click Advanced button and then select Encrypt contents to secure data.
When you encrypt a file or folder, it turns green in Windows Explorer. This lets you easily tell if your data is encrypted.
When you encrypt data using the advanced attribute the data is encrypted with a File Encryption Key (FEK). That FEK is stored with the file twice in two fields. The Data Decryption Field and the Data Recovery Field both contain a copy of the FEK. The Data Decryption Field is encrypted with the Public Key of the user, and the Data Recovery Field is encrypted with the Public Key of the data recovery agent. By default the data recovery agent is the administrator, but this can be changed.
The advantage of this is the data can still be accessed if the original user leaves the organization. As long as the recovery agent can access the FEK the data will still be accessible. This setup also allows you to share encrypted data. You can choose which uses can access the data and a new field will be added to the file that contains the FEK and is encrypted with their Public Key.
When you copy or move data into an encrypted folder the data becomes encrypted. Any new data created in an encrypted folder is encrypted as well.
Compressing a file is easy, in the properties of the file click Advanced button and then select Compress contents to save disk space.
When you compress a file or folder, it turns blue in Windows Explorer. This lets you easily tell if your data is compressed.
When you compress a folder or file the results will vary. Some file types are already compressed so there won't be a big gain when you compress them at the file system level. It's important to understand that this is not the same as zipping your data. If you create a zip file all the data is compressed in a portable format that can be carried to other computers. This level of compression is on the file system and is gone when you remove it from the file system. So if you have 4.5 GB of data and you put it in a compressed folder it may end up taking 3.0 GB of space. This doesn't mean you can copy it to a 4 GB USB flash drive. Once the data leaves the file system the compression is lost.
The inheritance of the compressed attribute on a folder works a little bit differently than it did with encryption. If you move a file from the same partition into a compressed folder it won't inherit the compression. If you copy a file into a compressed folder it will inherit the compression. Also any new file created in a compressed folder will be compressed.
Disk Quotas were introduced in Windows 2000 Server. At the time you could only change the quotas for each drive. Every folder on the drive had the same quota settings. With Windows Server 2003 R2 Microsoft introduce File Server Resource Manager (FSRM) allowing us to control quotas at the folder lever. Before we can manage quotas at the folder level we need to install FSRM. The following video shows you how to install FSRM using the Add Roles and Features wizard.
Once installed you can use FSRM to set up quotas for your folders. In the following video you will see quotas set for users home folders, the public and common shares.
After setting up quotas you will see the network drive sizes reported to the user in Windows Explorer reflect the quota settings.
There are some settings you can change when setting up a quota. You can change the limit and set the limit to a hard or soft limit. If you set it to a hard limit the user will get an out of space message when they try to go above the limit. A soft limit is used to keep track of who is using the most space. You can also configure what happens when users hit a certain percent of their space. You can have it email the user, or admin, to let them know, or have it record to the event viewer.
Data counts against your quota if you own it. Each file and folder in an NTFS volume contains a field designating someone as the owner. If you take ownership of files and folders the quota data won't be accurate.
Distributed File System (DFS) allows you to store data on multiple servers and have it replicate automatically. If you have multiple sites and people travel between the sites you could create a DFS to hold their data. That way they are always accessing the data locally and it replicates automatically to it. The end result is a single namespace that contains shortcuts to other servers, or replicated data.
Before you can get started with DFS you first have to install the roles.
You need to create a namespace to store the data. The single name space allows you to reference the shared data with one name and DFS handles which server you will get the data from. So if you create a namespace called Data you would access it using \\Oakforest.org\Data. DFS would show you the list of linked or replicated folders and when you open one it will send you to the correct spot. This is also handy because it allows you to have your data scattered on multiple servers and pull it all together in one namespace.
Once you have a namespace you can add shortcuts to shares, or you can add replication groups. Shortcuts point to existing shares that can be on any server. In the following video we create two shortcuts, one for \\Server01\Common, and one for \\Server01\Public
A replication group is a list of servers all sharing the same data. Before you can add a replication group to a namespace you have to create the replication group. In the following video we create a replication group that will replicate the users home folders between Server01 and Server02.
Now we can add the replication to the name space. Notice once we do that we can access th data using \\Oakforest.org\DFSShare\Home and it will send us to the correct server.