The df/hdparm command under Linux

  
df [options][name] $ df -h Outputs the disk capacity status of all mounted file systems in a friendly format $ df -m /home Outputs the disk capacity of the home directory in M Status $ df -k Outputs the disk capacity status of all mounted file systems in K. $ df -i Reports free, used or partially used (percentage) index nodes $ df -t ext3 Display only The disk state of the file system of type ext3 is $df -x ext3 only displays the disk state of the file system whose file type is not ext3. $df -T Displays the file system type $df -l in addition to the file system disk size. Display local file system. Hdparm [options][driver] $ hdparm -d /dev/hda Shows that the DMA mode of the hard disk is not turned on, 1 means on $ hdparm -tT /dev/hda Test the write performance of the hard disk $ hdparm -d1 /dev/hda Turn on dma Function $ hdparm -d1 -X68 -c3 -m16 /dev/hda Option Description: -c3: Convert the IO mode of the hard disk from 16 bits to 32 bits. -m16: Change the read function of multiple sectors of the hard disk. -m16 causes the hard disk to read 16 sectors of data in one I/O interrupt. -d1: Turn on DMA mode. -X68: Supports ATA66 data transmission mode. The following are the settings of other modes compared to ATA33....... The parameter is -X66 ATA66....... The parameter is -X68 ATA100... The parameter is -X69 $ hdparm -k1 /dev/hda Save settings

Copyright © Windows knowledge All Rights Reserved