Analysis of Windows disk quota setting method

  

Imagine how long your server's hard drive can support if anyone can take up the server's hard drive space. Therefore, it is very important to limit and manage the hard disk space used by users. Whether it is a file service, an FTP service or an E-mail service, it is required to have limited control over the disk capacity used by the user to avoid abuse of resources. Disk Quotas in Windows 2003 can do this easily and efficiently, and it has the advantage of "Original" compared to other quota software.

■ Disk Quota Function

The so-called disk quota means that the administrator can quota the disk space that can be used by each user in the domain, that is, each user can only use the maximum quota. Disk space within range. Disk quotas monitor the usage of individual user volumes, so each user's utilization of disk space does not affect the disk quotas of other users on the same volume. Disk quotas have the following characteristics:

* Disk quotas are only supported on NTFS file systems. Disk quotas are managed on a volume-by-volume basis. This feature must be implemented on NTFS formatted volumes. However, only the NTFS file system of the Windows 2000/XP/2003 operating system can support disk quotas, and disk quotas cannot be set on the NTFS partition of Windows NT 4.0.

* Disk quotas track and control each user's disk usage. This tracking is done using the ownership of the file or folder. When a user copies or stores a new file on an NTFS partition, he owns the file, and the disk quota program counts the size of the file into the user's disk quota space.

* Disk quota does not support file compression. When the disk quota program counts disk usage, it is uniformly counted according to the size of the uncompressed file, regardless of how much disk space it actually occupies. This is mainly because when using file compression, different types of file types have different compression ratios, and two files of the same size may be completely different in size after compression.

* When the disk quota is set, the remaining space mentioned in the partition report refers to the remaining space within the current user's disk quota.

* The disk quota program tracks and controls disk usage for each partition independently, regardless of whether they are on the same physical disk.

* The operating system can monitor disk quotas, it can scan disk partitions, monitor each user's use of disk space, and use different colors to identify users whose disk usage exceeds alarm and quota limits. This makes it easier to manage disk quotas.

* Multiple users logging in to the same computer do not interfere with the capabilities of other users; one or more users do not exclusively occupy disk space on the public server; in the shared folder of the personal computer, the user does not use Excessive disk space.

In summary, it can be seen that disk quota provides a file storage management based on users and partitions, so that administrators can conveniently use this tool to allocate storage resources reasonably and avoid the use of disk space. Loss of control can cause system crashes, which increases the security of the system.

■ Disk Quota Management

The management of disk quotas mainly includes enabling disk quotas and specifying disk quotas for specific users, which are described separately.

1. Enable Disk Quotas

Enable disk quotas to prevent further disk space usage or to record user usage when a user exceeds the disk space specified by the administrator.

Step 1 If you have already created an NTFS volume, you can right-click on the volume you want to enable disk quota in Windows Explorer and select the “Properties" menu item in the shortcut menu. The "Disk Properties" dialog box shown in Figure 1 can be displayed.

Figure 1 “Disk Properties” Dialog Box

Step 2 Click the "Quotas" tab to switch to the "Quotas" tab as shown in Figure 2. Check the "Enable Quota Management" checkbox, and the individual checkboxes under it will become available, where <;reject disk space to users exceeding the quota limit reset, disk usage exceeds quota limit Users will receive a message from Windows "Insufficient Disk Space" and no additional data can be written to the volume without deleting and moving existing files. If this check box is cleared, users can exceed the quota limit and use disk space without restrictions.

Figure 2 "Quotas" tab

“Do not limit disk usage" single option, select this option, the user can use the server disk space without restrictions.

Check “ Limit disk space to ” and “set the warning level to ” single option and enter the disk space used by new users of the allowed volume, and the disk space used by the user is close to the warning value A warning is issued. You can use decimal values ​​(for example, 20.5) in disk space and warning levels, and select the appropriate units (such as KB, MB, GB, etc.) from the drop-down list.

Check the "Log events when users exceed quota limits" option. If disk quotas are enabled, events will be written to the system log of the local computer as long as the user exceeds the quota limit set by the administrator. Administrators can view these events by filtering the disk event type using the Event Viewer. By default, quota events are written to the system log of the local computer every hour.

“The event is logged when the user exceeds the warning level. If the quota is enabled, the event is written to the system log of the local computer as long as the user exceeds the warning level set by the administrator. Administrators can view these events by filtering the disk event type using the Event Viewer.

Step 3 Click the “OK" button to save your settings and enable disk quotas.

In addition to enabling disk allocation on a local server's volume, you can also manage disk quotas on remote computers. Before you manage disk quotas for remote computers, you must first connect the volumes of the remote computer.

Step 1 Double-click "My Network Places" on the desktop to open its window, click the "Map Network Drive" menu item in the "Tools" drop-down menu, as shown in Figure 3. "Map Network Drive" dialog box.

Figure 3 “Map Network Drive& rdquo; Dialog Box

Step 2 Open the “Driver” drop-down list and assign a drive letter to the connection. Type the volume path of the remote computer in the "Folder" text box, in the form:

\\Computer_Name\\Share_File_name

where Computer_Name is the remote computer name or IP address and Share_File_name is the share The name of the folder. Of course, you can also click the “Browse” button to select.

Step 3 Click the “OK" button to save your settings. Once the volume of the remote computer is mapped to a network drive, it can be manipulated by “My Computer'; as easy as operating a local disk. However, the volume on the remote machine must be in the NTFS file system format.
2. Specify disk quotas for specific users

If you need to specify disk quotas for a particular user, such as setting more disk space or less disk space, you can specify disk quotas for that user individually.

Step 1 Under the "Quotas" tab, click the "Quotas" button to display the “local disk quotas" window.

Step 2 Click the “Quotas” button on the menu bar to open the “Quotas” drop-down menu and click on the “New Quota Item” menu item to open “ User & rdquo; dialog. Of course, you can also open the window by clicking the "New Quota Item" button on the toolbar.

Step 3 Click the “Location” button to display the “Location” dialog box shown in Figure 4, and select the domain or workgroup where the user is located.

Figure 4 "Location” Dialog Box

Step 4 Click the “OK" button to return to the “Select User” dialog box. Type the user name for which you want to set a quota in the Enter the object name to select the ” drop-down text box. However, before adding a user, you need to first add the corresponding user to the local computer, otherwise it will display the “Name not found dialog box when adding.

Step 5 If you don't know the exact name of the user, you can use the advanced lookup feature to find the user. Click the “Advanced” button in the “Select User” dialog box to display the “Select User Advanced Options dialog box. Click the “Find Now” button to display all users present on the current computer in the “Search Results” drop-down list box, as shown in Figure 5.

Figure 5 "Select User Advanced Options" dialog box Step 6 Select the user who wants to specify the quota from the list box, click the "OK" button, and return to “ select user & rdquo ; dialog box.

Step 7 Click the “OK" button to display the “Add New Quota Item" dialog box as shown in Figure 6. Under "Set quota limits for selected users", check the “limit disk space" single option and set the space used by the user to access the disk in the text box. Whether you are storing files in a shared folder on the server or uploading files via FTP, disk quotas are useful, that is, the total amount of all files cannot exceed the space specified by the disk quota.

Figure 6 "Add new quota item" dialog box

Step 8 Click the "OK" button to save the settings, the disk quota setting work is completed, the specified user Added to the list of local volume quota entries (Figure 7).

Figure 7 Disk quota setting is successful

If you want to delete the specified quota item, select the list item to be deleted in the “Local disk quota item” window, and then click the mouse. Right click and select the “Delete” menu item from the shortcut menu that pops up.

Copyright © Windows knowledge All Rights Reserved