Prev | Current Page 1029 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

Here??™s how to check:
Improper disk settings can result in destroyed data on your hard disk. Perform this
procedure at your own risk. This procedure is for IDE hard drives only (no SCSI)! Also,
be sure to have a current backup and no activity on your hard disk if you change DMA or I/O settings
as described in this section.
1. Test the speed of hard disk reads. To test the first IDE drive (/dev/hda), type:
# hdparm -t /dev/hda
Timing buffered disk reads: 64 MB in
19.31 seconds = 3.31 MB/sec
2. To see your current DMA and I/O settings, as root user type:
# hdparm -c -d /dev/hda
/dev/hda:
I/O support = 0 (default 16-bit)
using_dma = 0 (off)
3. This result shows that both 32-bit I/O and DMA are off. To turn them on, type:
# hdparm -c 1 -d 1 /dev/hda
/dev/hda:
I/O support = 1 (32-bit)
using_dma = 1 (on)
4. With both settings on, test the disk again:
# hdparm -t /dev/hda
Timing buffered disk reads: 64 MB in
2.2 seconds = 28.83 MB/sec
CAUTION
543
Playing Music and Video 20
In this example, buffered disk reads of 64MB went from 19.31 seconds to 2.2 seconds
after changing the parameters described. Playback would be much better now.
 xine won??™t play particular media??”Messages such as no input plug-in mean that
either the file format you are trying to play is not supported or it requires an additional
plug-in (as is the case with playing DVDs).


Pages:
1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041