[ Pobierz całość w formacie PDF ]
.As you run chkntfs /? from the command line, the following syntaxis shown:Displays or modifies the checking of disk at boot time.CHKNTFS volume [.]CHKNTFS /DCHKNTFS /T[:time]CHKNTFS /X volume [.]CHKNTFS /C volume [.]volume Specifies the drive letter (followed by acolon), mount point, or volume name./D Restores the machine to the default behavior;all drives are checked at boot time andchkdsk is run on those that aredirty.Continuedwww.syngress.com 189_XP_05.qxd 11/9/01 2:35 PM Page 209Working with System Tools " Chapter 5 209/T:time Changes the AUTOCHK initiation count downtime to the specified amount of time inseconds.If time is not specified,displays the current setting./X Excludes a drive from the default boot-timecheck.Excluded drives are not accumulatedbetween command invocations./C Schedules a drive to be checked at boottime; chkdsk will run if the drive is dirty.If no switches are specified, CHKNTFS will display if thespecified drive is dirty or scheduled to be checked on nextreboot.A few remarks on the syntax:You can only use one switch (parameter) per command, butyou can list more than one volume per command.The /T switch refers to the fact that you can prevent autochkfrom being run.You can use this switch to set a countdowntime the time you are given to intervene before autochkstarts.This switch controls the setting of the Hive Key:My Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\AutoChkTimeOut.The /X switch modifies the BootExecute key.For example /XD: will add the string autocheck autochk /k:D.The /C switch modifies the BootExecute key.For example /CE: will add the string autocheck autochk /m \??\D:.Only the last chkntfs on a volume is effective, the previousone will be replaced.The chkdsk run by autochk will also produce output; however, thisis not displayed on the console (monitor).Instead it is first saved in atemporary log file and then written to the application event log.ByContinuedwww.syngress.com 189_XP_05.qxd 11/9/01 2:35 PM Page 210210 Chapter 5 " Working with System Toolschecking the Event Log, you can find out if chkdsk has run and what theresult was.We mentioned the dirty bit and that the system will set it when thefile system returns an error on a volume.Within Windows XP there is acommand-line utility, called fsutil, that enables advanced users to con-trol a number of file system settings; one is setting the dirty bit.To setthe dirty bit on volume D:, you should issue the following command:fsutil dirty set D:.To check the setting of the dirty bit, use fsutil dirtyquery D:.Note that fsutil is not available for other operating systems (yet).Tobe able to use these command-line utilities, you need to be at leastmember of the Administrator group.You can find more information onthese commands in the following Microsoft s KnowledgeBase articles:Q191603: Modifying the Autochk.exe Time-out ValueQ160963: CHKNTFS.EXE: What You Can Use It ForControlling Fragmentationof the Pagefile and MFTYou can curb the fragmentation of a pagefile two ways: through tools such asDiskeeper or by re-creating the pagefile.Let s take a look at the latter.However,you will only be able to re-create the pagefile if Windows XP has more than onevolume available.Because you need to remove the pagefile on your primaryvolume, you need a second volume on which you can create a temporary pagingfile.Therefore, you have to open the Virtual Memory dialog box (see Figure 5.6):1.Right-click My Computer on the desktop.2.Select the Advanced tab.3.Click Settings in the Performance frame.4.Select the Advanced tab.5.Click Change in the Virtual Memory frame.www.syngress.com 189_XP_05.qxd 11/9/01 2:35 PM Page 211Working with System Tools " Chapter 5 211Figure 5.6 Setting the Paging File Size in the Virtual Memory Dialog boxThe list box at the top of the dialog box shows the available volumes and thepagefile that exists on that volume.In the case of Figure 5.6, only one volumeexists, preventing the capability to defragment the pagefile.If you have other vol-umes, you need to take the following steps to defragment your paging file:1.Select the drive on which you want to make a temporary paging file.Paging file and Pagefile, as it is called in Disk Defragmenter, refer to thesame thing.2.Select Custom size in the Paging file size for selected drive frame andenter an Initial size and Maximum size.For both use, the Recom-mended size as stated in the frame Total paging file size for all drives.3.Click Set.This will create the paging file.4.Select the volume with the primary paging file [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • personata.xlx.pl