You are on page 1of 135

Computer Repair

lesson

ITMS
(information Technology Management
Specialist School)

Prepared by Bun khieng 1


Introduction to computer Repair
• eKalkarN_kñúgkarsikSakmµvIFICYsCulkMuBüÚT
½rmankMNt;dUcxageRkam
• HARDWARE
– Spare Part
– Installation hardwares
– Check System Hardware
– CMOS BIOS Setup
• SOFTWARE
– Group Software
– Keyword
– Ms DOS ( Microsoft Disk Operating System)
– command Directory
– Command File
– Command Disk
– Other Commands
– command Change color In MS DOS
– NC (Norton Commander)
– NC Command Prepared by Bun khieng 2
– NC Link
Introduction to computer
repair
• Installation Software – Repair hard Disk bad sector
– Install Windows – Repair diskette
– Install Office and applications – Recovery files
– Install font – Regedit , MMC, Winboost
– Add Keyboard
– Anti Virus
– Add Normal
– Install Driver hardware – Convert drive
– Install 2 office on one Windows – Convert FAT
– Setup Internet and E-mail
– Install Winbdows 2 With
– Boot loader The End
– Partition magic +boot Magic
– Partition Expert +boot Magic
– Efidks +boot Magic

Prepared by Bun khieng 3


II. Introduction To Data
• 1.Definition

Data KwCa
B½t’manEdlmanrUbragBitR)akdGacbBa¢ÚneGay computer
mYy Process )an.
Data EckecjCaBIsPav³ 0 nig 1 Edl³

0 tMNageGayKµancrnþ

1 tMNageGayman crnþ

Input
2. Data Processing enAkñúg computer mYyk¾dUcCa computer
Process Output
déTeTotEdr data eFVIdMeNItamRck Input => Process =>
Output .

Keyboard CPU Monitor

Prepared by Bun khieng 4


II. Introduction To Data

3.Data Unit xñat data tUcbMputKW bit


Edl 0=1bit nig 1=1bit
• 1 Byte (B) = 8bits = 1 character = 1 tYGkSr
• 1 Kilobyte (KB) = 1024 Byte = 210 byte
• 1 Megabyte (MB) = 1024 Kilobyte = 210 Kilobyte
• 1 Gigabyte (GB ) = 1024 Megabyte = 210 Megabyte
• 1 Terabyte (TB ) = 1024 Gigabyte = 210 Gigabyte

Prepared by Bun khieng 5


III. Computer Today
eKEckcomputer Ca5 RbePTFM² KW
1. Super computer
2. Mainframe Computer
3. Mini Computer,
4. Micro Computer,
5. WorkStation .
• Super computer, Mainframe Computer and Mini Computer
KwCa Computer mYyRbePTEdlmanel,óWn
rab;lanMHz(Megahertz) manTMhMFM
minGacpøas;BITItaMgmYyeTATItaMg
mYyeTot)aneT eKeRbIvaCa Server FM².
• Micro Computer and Work Station KwCa
ComputermYyRbePTEdlmanel,óWn 4.7 MHz
eTA 4500 MHz
ehIyGacpøas;bþÚrBITItaMgmYy
Prepared by Bun khieng 6
IV. Hardware
Definition

Hardware KWCaEpñkrwgrbs;computer
EdlpMÁúKñaCaeRcInbegáIt)anCacomputer mYy.
Hardware man dUcCa
• Power Supply (PS)
• Mainboard (Motherboard)
• CPU (Central Processing Unit)=Processor
• RAM (Random Access Memory)
• ROM (Read Only Memory )
• HDD (Hard Disk Drive)
• FDD ( Floppy Disk Drive)
• CD-ROM (Compact Disc Read Only Memory)
• CD-RW (Compact Disk Read Write)
• DVD ROM (Digital Video disc Read Only Memory)
• DVD RW(Digital Video disc Read Write)
• Tape drive
• Zip disc Drive(250MB)
Prepared by Bun khieng 7
IV. Hardware
• Expansion Card :
– VGA CARD ( Video Graphic Adapter card)
– Sound card (Sound device)
– Network card (connect Network)
– Modem card (connect Internet)
– USB card (Universal Serial Bus) (use USB Port to connect other hardware)
– TV card (use computer as a TV)
– SCSI card (Small Computer System Interface) (connect Hard Disk
SCSI)..............
• Peripheral Device
– Mouse
– Monitor
– Keyboard
– Printer
– Scanner..........

Prepared by Bun khieng 8


Pictures of Hardware
CD-ROM Mainboard

FAN&HEATSINK

POWER SUPPLY CPU

Floppy disk

Hard Disk

Expansion card

ROM RAM
Prepared by Bun khieng 9
System Unit
Monitor

Keyboard

Mouse

Prepared by Bun khieng 10


Power Supply
1 PowerSupply

KWCahardwaremYyRb
ePTeRbIsMrab;bM
ElgcrnþBI AC(Alternative
Current) eTA DC(Direct
Current)(+12v, -12v, +5v, -
ehIypÁt;pÁg
5v,3.3v)

;eGay hardware
déTeTotkñúg Prepared by Bun khieng 11
POWER SUPPLY
qk minqk

AC Current DC Current COMPUTER


Electricity HARDWARE
110v 12V,5V,3.3V
220v

BOTTON choose entry electric current

115V when we use 110v


230v when we use 220v

Prepared by Bun khieng 12


Power Supply

Prepared by Bun khieng 13


Power Supply
• Power Supply man 2RbePT KW
– Power Supply AT
– Power Supply ATX.
• Power Supply AT: is the Power Supply that has
– Two connector to mainboard
– Power Button
– Not Shutdown Automatically( When you Click Start => shutdown=>
it displays message “it’s now safe to turn of your computer” you can
press Power Button to Shutdown)
• Power Supply ATX: is the power Supply that has
– One Connect to Mainboard
– No power Button
– Shutdown Automatically

Prepared by Bun khieng 14


• Note
– If your computer use power supply ATX but
, it doesn’t shutdown Automatically so you
change it to shutdown automatically :
– ( start =>setting => control panel=> Power
option =>APM=> you tick Enable Advanced
Power management Support =>OK.)

Prepared by Bun khieng 15


Power Supply
• Connector Power supply
– Power supply AT has 8 connectors:
• The same 2 big Connectors:
used to connect to mainboard
• The same 4 big Connectors : Used to connect to (HDD,
CD-ROM, CD-RW, DVD-ROM, DVD-RW, Zip internal,
CPU Fan)

• The same 2 small Connectors:used to connect to


Floppy Drive A: and Drive B:.
Prepared by Bun khieng 16
Power Supply
• Connector Power supply
– Power supply ATX has 7
connectors:
• The same 1 big Connectors:
used to connect to mainboard
• The same 4 big Connectors :
Used to connect to (HDD, CD-ROM, CD-RW,
DVD-ROM, DVD-RW, Zip internal, CPU Fan)
• The same 2 small Connectors:used to connect to Floppy Drive A:
and Drive B:.

Prepared by Bun khieng 17


Power Supply AT connector
Pin Color Function connector
number
1 Orange "Power Good" P8
2 Red (XT No Wire) +5V DC P8
3 Yellow +12V DC P8
4 blue -12VDC P8
5 Black GROUND P8
6 Black GROUND P9
7 Black GROUND P9
8 Black GROUND P9
9 Black GROUND P9
10 yellow +5VDC P9
11 RED +5VDC P9
12 RED +5VDC P9

Prepared by Bun khieng 18


Power SupplyATX 20 PINS
• Detail connector
Pin Name Color descrioption
1 3.3V orange +3.3VDC
2 3.3V orange +3.3VDC
3 Com Black Ground

4 5v Blue +5V
5 Com black Ground
6 5v Blue +5vDC
7 Com black Ground
8 Pwr_ok green Power ok(+5v&+3.3v is ok)

9 5VSB violet +5V standby vol(max=10mA)

10 12V yellow
Prepared by Bun khieng
+12VDC 19
Power Supply ATX 20 PINS
• Detail
11 3.3v
orange +3.3vDC

12
-12v blue -12VDC

13
Com black Ground

14 Ps_on
green Supply on (active low)

15 Com
black Ground

16 Com
black Ground

17 Com
black Ground

18 -5v
yellow -5VDC

19 5v
yellow +5VDC

20 5v
yellow +5VDC

Prepared by Bun khieng 20


Power supply ATX 24 pins
Pins name color description

1 +3.3V
+3.3VDC
2 +3.3V
+3.3VDC
3 Com GROUND
4 5v +5VDC
5 Com GROUND
6 5v +5VDC
7 Com GROUND
8 Pwr on Power on(+5&+3.3v)
9 +5VSB +5 VDC Standby Voltage (max 10mA)
10 +12V1 +12VDC
11 +12V1 +12VDC
12 +3.3V +3.3VDC
Prepared by Bun khieng 21
POWER SUPPLY ATX 24 pins
13 +3.3v +3.3VDC
14 -12v -12VDC
15 Com GORUND
16 Pw on Power Supply On (active low)
17 Com GORUND
18 Com GROUND
19 Com GROUND
20 N/A NOT ONNECT
21 5v +5VDC
22 5v +5VDC
23 5v +5VDC
24 Com GROUND
Prepared by Bun khieng 22
• Function power supply
– Convert AC=>DC
– Supply power to hardwares
• Categories of power supply
– AT(not shutdown Auto)
– ATX(shutdown Auto)
• Connector of Power supply
– Three categories
• Test power supply(ATX)
– String (green +black)

Prepared by Bun khieng 23


RAM (Random Access Memory)
• Definition
– RAM is the memory that allow CPU read data from
or Write data to. RAM can store data temparorily.
– RAM store data when computer is on but it clear data
when we turn off computer.

Store Store
read
RAM CPU Write
RAM

Store data temporarily


Prepared by Bun khieng 24
Picture of RAM

Prepared by Bun khieng 25


Kind of RAM
• There two kinds of RAM
– SRAM (Static Random Access Memory)
– DRAM(Dynamic Random Access Memory)
• SDRAM( Sychronous DRAM)
• DDR RAM(Double Data Rate RAM)
• DDR2
• DDR3
• DDR SD
• EDO (Extended Data Output)
• FPM (Fast Page Mode)
• VRAM (Video RAM)

Prepared by Bun khieng 26


Kind of RAM
• SDRAM

Prepared by Bun khieng 27


Kind of RAM
• DDR ( Double Data Rate RAM)

Prepared by Bun khieng 28


Kind of RAM

• EDO, FPM, VRAM

Prepared by Bun khieng 29


Properties of RAM
• Size of Store data: use to store data temparorily that has
(1MB, 2MB,4MB, 8MB, 16MB, 32MB, 64MB, 128MB,
256MB, 512MB, 1024MB, 2048MB.)
• PC is the speed that used to send to and getting data from
CPU. It has (Pc100, pc133, pc166, pc200,……………., Pc
4300.
Store Store
read
RAM CPU Write
RAM
PC PC

Store data temporarily

Prepared by Bun khieng 30


Slot connect RAM
Slot connect RAM is built on mainboard .
There are 2 kinds of slot : they are
 SIMM( Single Inline Memeory Module)
32 pins
72 pins
DIMM( Dual Inline Memory Module)
168 pins
184 pins

Prepared by Bun khieng 31


Slot connet RAM
SIMM
32Pin 72 Pins DIMM
• 168Pin 184 Pins
bnÞH =1MB 1bnÞH
• 8 • 1 bnÞH =16MB bnÞH
1
=1MB =16MB

bnÞH =1MB 1bnÞH


• 4
• 1 bnÞH =32MB bnÞH
1
=32MB
=2MB
• 1 bnÞH =64MB bnÞH
1
bnÞH =1MB 1bnÞH
• 2
=64MB

=4MB • 1 bnÞH =128MB bnÞH


1
=128MB
bnÞH =1MB 1bnÞH
• 1 • 1 bnÞH =256MB bnÞH
1
=8MB =256MB

bnÞH =2MB 1bnÞH


• 1
• 1 bnÞH =512MB 1 bnÞH
=512MB
=16MB
• 1bnÞH =1024MB 1 bnÞH
bnÞH =4MB 1bnÞH
• 1 =1024MB
Prepared by Bun khieng 32
=32MB • 1 bnÞH =2048MB 1 bnÞH
Slot connect RAM
• SIMM (32pins, 72pins) are used to cinnect to
– EDO
– FPM
– VRAM
• DIMM(168 pins) is used to connect to
– SDRAM

• DIMM(184 pins) is used to connect to


– DDR
– DDR2
– DDR SD

Prepared by Bun khieng 33


How check size of RAM
 Start =>Run =>dxdiag

Prepared by Bun khieng 34


 Right click on My Compter =>Properties

Prepared by Bun khieng 35


• We can see the label on the RAM
• CMOS BIOS SETUP
• POST SCREEN

Prepared by Bun khieng 36


HOW TO TEST RAM
• Test ram
– Monitor display
• Cannot setup program
• Message POST Sreen“widows Protection Error”
• Display “blue Screen background and white
character”
– Monitor not display
• Connect ram (beep code)
• Broken down Ram (beep code)
• Broken down Slot dimm/simm (beep code)
• Ram not sopport mainboard

Prepared by Bun khieng 37


ROM(Read Only Memory)
• Definition
– ROM is the memory that allow CPU read data from
temporarily. There are many kind of ROM. ROM stores
CMOS BIOS SETUP. CMOS BIOS is the software that
used to configure all hardware.

Prepared by Bun khieng 38


CPU (Central Processing Unit)
=Processor
• . CPU (Central Processing Unit)

CPU Ca Hardware EdlmannaTI Process ral;Tinñn½yEdl


)anbBa¢ÚncUlkñúg computer.Rkumh‘unplit CPU CaeRcIn nig
Rkumh‘unk¾manplit CPU RcInCMnan;Edr
dUcCaRkmuh‘un
Intel, AMD, Cyrix, Winchip...........eyIgelIk CPU Rkumh‘un Intel mksikSa

EdlmanCMnan;dUcCa³ (4004, 4040, 8008, 8080 8085, 8086, 8088, 80186,


80188, 80286, 80386, 80486, Pentium, Pentium II &III,Celoron, PentiumIV )

• CPU 80486(486) Ca CPU Edlmanrag4RCug maneCIgcMnYn


3CMu eCIgTImYyCa eCIgEqb.enAelIxñgCPU
maneQµaHRkumh‘un CMnan;CPU nig el,ÓnCPU.
• CPU Pentium(586) Edlmanrag4RCug maneCIgcMnYn

4rW5CMuBIrCYrQmKñaBIr² CIgTImYyCa eCIgEqb.39


Prepared by Bun khieng

• CPU Pentium II&III Ca Edlmanrag4RCug maneCIgcMnYn


CPU
CPU (Central Processing Unit)
• **Note CPU manlkçN³dUcCa
• KWCa el,ÓnEdlbBa¢Ún
-Base Frequency(BUS)orWFSB(Front Side Bus)
data BI RAM mk CPU nig BI CPUmk RAM Edlmanel,Ónkan;Etx<s;
kargar Process kan;EtRbesIr. BUS man 66MHz,100 MHz, 133 MHz,166 MHz,
200 MHz , 233 MHz 266 MHz 333 MHz 400 MHz 533 MHz 800 MHz.............

• -Multiplier Factor KWCaemKuNbBa¢ak;el,ÓnBitR)akdrbs; CPU


EdlmanBI 1x dl; 16x nig bnþbnÞab;eTot.
edIm,IeGaydwgel,ÓnCPU eKyk Base Frequency
KuNCamYynwg Multiplier Factor .]TahrN_ Base Frequency=166 MHz
KuN Multiplier Factor =1.6x esµInwg 266MHz énel,Ón CPU.
• -Cache Memory KWCa GgÁcgcaMbeNÞaHGsnñEd;lmanelI
CPU(build in Cache) mantYnaTIcab;Tinñn½ymYycMnYnEdlCPU
kMBug process . eKEckcache CaBIrKW Cache Level 1(L1) nig Cache Level
2 (L2). Cache Level 1 manenAelI CPU Rsab; nig Cache level 2
manenAelI mainboard
Prepared by Bun khieng 40
• Intel processors
4004 | 4040 | 8008 | 8080 | 8085 | 8086 |
8088 | iAPX 432 | 80186 | 80188 | 80286 |
80386 | 80486 | i860 | i960 | Pentium |
Pentium Pro | Pentium II | Celeron | Pentium
III | XScale | Pentium 4 | Pentium M |
Pentium D | Pentium Extreme Edition | Xeon |
Core | Core 2 | Itanium | Itanium
• List of AMD microprocessors
Am2900 • Am29000 • Am9080 • Am286 • Am386 •
Am486 • Am5x86 • K5 • K6 • K6-2 • K6-III •
Duron • Sempron • Athlon • Athlon 64 • Athlon 64
X2 • Turion 64 • Turion 64 X2 • Opteron

Prepared by Bun khieng 41


How to check Speed of CPU
• Start => run=> dxdiag

Prepared by Bun khieng 42


Check speed of cpu
• Right click on My computer
=>Propertios:
• CMOS BIOS
• POST Screen

Prepared by Bun khieng 43


eCIgsMrab;edat CPU
• edIm,Idwgfa Mainboard
mYy support nwg CPU
CMnan;NamYy
Rkumh‘unNamYy
el,ÓnNamYy
eKcaM)ac;RtUvemIlelIeC
Igedat CPU (Socket CPU)
EdlmandUcCa Socket 1,
Socket 2, Socket 3, Socket 4,Socket
5, Socket 6, Socket 7, Socket 8
Prepared by Bun khieng 44
Socket A Socket B Socket 754
eCIgsMrab;edat CPU
• 1. Sockets Click here to see CPU Socket
• Socket 1 - 80486
• Socket 2 - 80486
• Socket 3 - 80486
• Socket 4 - Intel Pentium
• Socket 5 - Intel Pentium; AMD K5; IDT WinChip C6, WinChip 2
• Socket 6 - 80486
• Socket 7 - Intel Pentium, Pentium MMX; AMD K6
• Super Socket 7 - AMD K6-2, AMD K6-III; Rise mP6
• Socket 8 - Intel Pentium Pro
• Socket 370 - Intel Pentium III, Celeron; Cyrix III; VIA C3
• Socket 423 - Intel Pentium 4
• Socket 463 (also known as Socket NexGen) - NexGen Nx586
• Socket 478 - Intel Pentium 4, Celeron, Pentium 4 Extreme Edition
• Socket 479 - Intel Pentium M, Celeron M
• Socket 486 - 80486
• Socket 563 - AMD low-power mobile Athlon XP-M
• Socket 603 - Intel Xeon
• Socket 604 - Intel Xeon

Prepared by Bun khieng 45


eCIgsMrab;edat CPU
• Socket 754 - AMD single-processor systems using single-channel DDR-
SDRAM, including AMD Athlon 64, Sempron, Turion 64
• Socket 771 - Intel Xeon
• Socket 775 (also known as LGA 775 or Socket T) - Intel Pentium 4,
Pentium D, Celeron D, Pentium Extreme Edition, Core 2 Duo, Core 2
Extreme
• Socket 939 - AMD single-processor systems using dual-channel DDR-
SDRAM, including Athlon 64, Athlon 64 FX, Athlon 64 X2, Opteron 100-
series
• Socket 940 - AMD single and multi-processor systems using DDR-
SDRAM, including AMD Opteron, Athlon 64 FX
• Socket A (also known as Socket 462) - AMD Athlon, Duron, Athlon XP,
Athlon XP-M, Athlon MP, and Sempron
• Socket F (also known as Socket 1207) - Future AMD multi-processor
systems using DDR2-SDRAM, including AMD Opteron, replaces Socket
940
• Socket AM2 - AMD single-processor systems using DDR2-SDRAM,
replaces Socket 754 and Socket 939

Prepared by Bun khieng 46


eCIgsMrab;edat CPU
• Socket 4x4 - AMD dual-processor systems using DDR2-SDRAM,
allows two dual-core microprocessors side by side (2x AM2
sockets are rumoured).
• Socket P - Future Intel-based, replaces Socket 479 for notebooks
(Expected 2007)
• Socket S1 - Future AMD-based mobile platforms using DDR2-
SDRAM, replaces Socket 754 in the mobile sector
• PAC418 - Intel Itanium
• PAC611 - Intel Itanium 2, HP PA-RISC 8800 and 8900
• FCPGA6 - Intel Core Solo, Intel Core Duo, Intel Dual-Core Xeon
and Intel Core 2 Duo
• Slots
• Slot 1 - Intel Celeron, Pentium II, Pentium III
• Slot 2 - Intel Pentium II Xeon, Pentium III Xeon
• Slot A - AMD Athlon
• Slot B - DEC Alpha

Prepared by Bun khieng 47


• CPU
– Company(intel,AMD,Cyrix…..)
– Generation(Pentiun,PentiunII&III,Pentiun
IV..)
– Speed
– Bus
– Socket CPU
– Slot CPU

Prepared by Bun khieng 48


VGA(Video Graphic Adapter)
• VGA(Video Graphic Adapter)

• Ca hardware mYyRbePTsMrab;pþl; Graphic.


VGA
VGAmanTMhMCaeRcIndUcCa³ 1MB, 2MB, 4MB, 8MB ,16MB, 32MB,
64MB, 128MB, 256MB ,512MB .

• eKEck VGA CaBIrKW


– Cab;( VGA Build in board)
VGA

– nig VGA dac;(VGA Card ).


• VGA Cab;(Build 0n board)
– sMKal;eday man Graphic port Cab;nwg mainboard,
– KµanTMhM vga enAnwg Mainboard eT
– TMhMrbs; VGA RtUvkat;ecjBI RAM(
1MB, 2 MB, 4 MB, 8 MB,16 MB,

32 MB, 64 MB, 128 MB,256MB,512MB......) tam CMOS BIOS.


• Note
How to share memory
– VGA > RAM =>Monitor not display
– VGA = RAM =>Monitor not display
– VGA < RAM =>Monitor display
Prepared by Bun khieng 49
VGA(Video Graphic Adapter)
• VGA card(VGA Card)
– sMKal;eday man Graphic port Cab;nwg card
– TMhM VGA enAelI card
– TMhMrbs; VGA minRtUvkat;ecjBI RAMeT.
• eQµaHsMrab;sMKal; VGA
– CGA( Color Graphic Adapter) 2colors
– EGA( Enhance Graphic Adapter) 16 colors
– VGA (Video Graphic Adapter) 256 color
– SVGA( Super Video Graphic Adapter) 16 million colors

Prepared by Bun khieng 50


Check VGA memory
• Start=> run =>dxdiag=>display

Prepared by Bun khieng 51


Check VGA memory
• Right click on desktop =>
properties=>setting=>advanced =>
Adapter.
• CMOS BIOS
• POST Screen

Prepared by Bun khieng 52


Slot on computer
• 5. Component On Mainboard

• enAelI Mainboard rbs; computer man Slot cMnYn 3


RbePT KW slot ISA, PCI nig AGP Edl³
• -ISA(Industry Standard Architecture )KWCa Slot
EdlmanBN’exµA GacbBa¢Ún data )an 8 bit =>16bit .
• -PCI(Peripheral Component Interconnect) KWCa Slot
EdlmanBN’-sGacbBa¢Ún data )an 32 bit =>64bit
• -AGP(Accelerated Graphic Port)
KWCaSlotEdlmanBN’etñatGacbBa¢Úndata)an
128bit .

• ** Note -cMeBaH Slot ISA and Slot PCI eKeRbIsMrab;


connect Expansion Card dUcCa³ VGA Card, sound card, modem card, USB
card, Network card, SCSI card, TV card, IDE card and other expansion
card…………………..

• -cMeBaH SlotPrepared
AGP eRbIsMrab; connect Et VGA card
RbePT AGP b:ueNÑaH. by Bun khieng 53
Expantion SLOT

SLOT PCI

Slot AGP

Prepared by Bun khieng 54


Componant on Mainboard

SLOT
Socket CPU

CPU FAN

Cmos Battery

Slot RAM DIMM

Power ATX port


FDD Port
SATA Port IDE Port

Prepared by Bun khieng 55


Port ON COMPUTER
• Vga port
• PS/2 port
• Paralell port
• Serial port
• Usb port
• Modem port
• Game port PS/2 Port Serial Port Sound Port
Nerwork port
• Sound port
• Network port Firewire
USB Port
• Firewire(IEEE139
4) port

Prepared by Bun khieng 56


Graphic port
Herizontal
Vertical
• Name on mainboard
13 14
– VGA1
– VGA-CON
– VGA-HEADER
• Connect to :
1 2 3
– Monitor
– LCD Projector
Red Green Blue

Prepared by Bun khieng 57


USB Port
• Name on mainboard
– USB1
– USB2
– USB3

1 2 3 4
• Connect to 170 devices:
– Mouse
– Keyboard
+5 VDC – Printer
Data + – Scanner
Ground – Flash Drive
Data -
– Hdd External
– Fdd External
– …………………

Prepared by Bun khieng 58


PS/2 port
N/C
Clock

• Name on mainbaord
– PS/2
• Connect ot :
– Mouse
5v – Keyboard
ground

N/C DATA Key

Prepared by Bun khieng 59


Parallel port

• Name on mainboard
– PRN1
– PRINT
– PRINTER
– LPT1, LPT2,…..
• CONNECT OT:
– Printer
– Link PC to PC
– Modem
PRN1/PRINT/PRINTER
/LPT1, LPT2,…..
Prepared by Bun khieng 60
Serial Port
• Name on mainboard
– Com1
– Com2
– Com3
– Com4
– …….
• Connect to :
– Modem
– Mouse
– Keyboard
Com1
Com2
– Link pc to pc
Com3
Com4
Prepared by Bun khieng 61
Sound port
• Mic
– Microphone
• Line in
– Musical Instruments
– Walkman
• Line out
– Speaker
– Earphone
• Games
– Joystick
– Musical Instruments
Prepared by Bun khieng 62
Network port

• Network port
– Connector RJ45
– BNC connector

Prepared by Bun khieng 63


Parallel Port USB port

Serial Port

LPT/Print/printer/PRN1
USB1/USB2
Graphic Port

COM1/COM2/COMA/COMB

VGA1/VGA-CON/VGA-HEADER
audio Port

AUDIO

GAME
game Port
MAINBOARD
LAN

Network Port

Prepared by Bun khieng 64


Note
• The expansion card are determined by port on the card

SOUND CARD USB CARD


VGA CARD NETWORK CARD

Prepared by Bun khieng 65


JUMPER(JP)
 How to use jumper
 How to configure jumper
 How to set jumper
 How to clear cmos

Prepared by Bun khieng 66


• Definition
– Jumpers allow the computer to close an electrical circuit allowing the
electricity to flow throughout certain sections of the circuit board. Generally,
the jumpers consist of a set small pins which can be covered with a small plastic
box. This box connects the two pins together allowing the electricity to flow
freely between the two pins.
– Jumpers are used to configure computer peripherals such as Hard Drives,
Modems, Sound Cards, and various other components. For example, when
installing a new hard drive, you may need to change the jumper settings
depending if the hard drive is a master drive or a slave drive.
Jumper
Jumper pin

Prepared by Bun khieng 67


DIP Switch
• Dip switches are designed with the
same intentions as jumpers. However,
instead of having to remove the jumper
block and placing it over separate pins,
dip switches are actual small switches
which can be turned to the ON or OFF
position.
• Like jumpers, Dip Switches are used
to configure computer peripherals such
as Hard Drives, Modems, Sound Cards,
and various other components.
Generally, however, Dip Switches are
usually only found on PC Boards such
as the Motherboard, Sound Card, or
other PC Boards.

Prepared by Bun khieng 68


Jumper
• Hardware that has jumper
– Hard Disk
– CD-ROM
– CD-RW
– DVD-ROM
– DVD-RW
– Mainboard
– Expansion Cards
1. Jumper on Hard Disk
They use jumper on HDD to configure the funtion on the HDD when
we connect the HDD to Mainboard. One HDD or more than one HDDs
to the mainboard.
a. Names of Jumper on the HDD
- Master(M): Used to configure First running of HDD
-Slave (S):Used to cofigure the second running of HDD
-Cable Selector(CS): Used to configure the last Running of HDD

Prepared by Bun khieng 69


Jumper
• Example HDD1
HDD2
Slave (WinXP)
Master(Win2000)

It has to run from HDD


IDE Master (Win 2000)
Mainboard

HDD1 HDD2
Master(Win2000) Slave (WinXP)

It has to run from HDD


IDE Slave (Win XP)
Mainboard

HDD2 HDD2
HDD1 HDD1 Slave (WinXP)
CS (WinXP)
Master(Win2000) CS(Win2000)

IDE IDE
It’s function like SLAVE It’s function Like Master
Mainboard Mainboard

Prepared by Bun khieng 70


How to set jumper
• How to set jumper on HDD ,you have to
look for the advice on the HDD.
Advice for jumper
• For Example
– 1. Master

Slave

Cable Selector

– 2.

Slave Master Cable Selector

– 3
Master

Slave

IDE Port Jumpter Power port Cable Selector

Prepared by Bun khieng 71


Jumper on HDD
Slave

• Name on IDE Master


HDD2

– IDE 1 HDD1

• Primary Master
• Primary Slave Primary
IDE1
– IDE 2
• Secondary Master Slave
• Secondary Slave Master
HDD2

HDD1

secondary
IDE2

Prepared by Bun khieng 72


jumper
– If two HDD connect to
• Note deferent IDE we do not
– If two HDDs connect to only need to check jumper.
one IDE we have to check
jumper on HDD before connect. – When we connect CD-
Slave ROM, CD-RW, DVD-
Master
HDD2 ROM, DVDRW,and HDD
HDD1 together we have to
check them like above.
Primary
IDE1
Slave
Master HDD2
HDD1

secondary
IDE2
Prepared by Bun khieng 73
jumper
• If you connect
Slave
another hard disk to HDD2
Master
the comuter to copy
HDD1
data, You can
connect this hdd as
Primary /secondary
slave (only one IDE) IDE1 or 2

Prepared by Bun khieng 74


jumper
• If you connect
another hard disk to
the comuter to copy Slave/Master

data, You can HDD1


Slave/Master
connect IDE 2 (IF 2 HDD2
deferent IDE) IDE1

IDE2

Prepared by Bun khieng 75


Jumper on mainboard
• Jumper on mainboard TXPro II
– JP4:clear CMOS Memory
1 2 3
Normal (mainboard works normally)

Clear CMOS Memory


(mainboard does not work )

– Note: you can see jumper clear CMOS


• it is near the CMOS Battery
• There are 3 or 4 pins of jumper
• Use the words”Normal, Default, Battery on, Clear CMOS”

Prepared by Bun khieng 76


How to clear CMOS
1 2 3 1 2 3
1 2 3

normal
normal 30s
Clear CMOS
Power off all activities

• Note
– We clear CMOS when
• CMOS Error
• Mainboard Error(error1**)
• Can not open CMOS
• Cannot remember hardwares
• POST (Power On Self Test) screen error
• Password CMOS

Prepared by Bun khieng 77


Jumper on mainboard
• Jp6: DIMM Voltage Selector
1 2 3

3.3v (DIMM use 3.3v for RAM)

1 2 3

5v (DIMM use 5v for RAM)

Prepared by Bun khieng 78


Jumer on mainboard
• Jp2: Enable/Disable on board Audio

1 2
Enable (mainboard use sound on board)

Disable (Mainboard does not use


sound on board )

•Jp8: Enable/Disable on board fax modem


1 2
Enable (mainboard use Fax/Modem on board)

Disable (Mainboard does not use Fax /Modem


on board )

Prepared by Bun khieng 79


Jumper on mainboard

• Note
– If sound build on board and mainboard has jumper for
sound when we install sound card we have to disable
sound on board.
– If sound build on board but mainboard has no jumper
when we install sound card it will disable on board
sound automatically.
– If sound build on board but mainboard has no jumper
some maimbord, when we install sound card they all
work but we have to select Driver that we want to use.

Prepared by Bun khieng 80


• Start => setting => control panel=>sound and audio
device=>audio=> ( select driver you want to use )=> ok

Prepared by Bun khieng 81


Jumper on mainboard
• Jp2:LAN Enable/Disable
1 2 3

Enable (Network on mainboard works normally)

Disable (Network on mainboard does


not work )

•Jp5:LAN Power selector


1 2 3

5v (Network use 5 voltage to work)

Standby 5v (Network does not work 5 voltage


not use for it )
Use this jumper to Save power

Prepared by Bun khieng 82


Jumper on mainboard
• Jp7: Enable/disable on board Graphic Adapter

1 2 3
Disable (VGA on mainboard does
not work ) when we install VGa Card

Enable (VGA on mainboard works normally)

Prepared by Bun khieng 83


DIP Switch
• We always use DIP Switch to configure the CPU Speed.
• Example:
ON

OFF
1 2 3 4 5 6

DIP 1 2 3 4 5 6
CPU
Speed
166 MHz ON ON ON ON ON ON

200MHz ON ON ON ON ON OFF

300MHz ON ON ON ON OFF OFF

Prepared by Bun khieng 84


DIP Switch

ON

OFF
1 2 3 4 5 6

DIP 1 2 3 DIP 4 5 6
CPU Multi
BUS 1x ON ON ON
166 MHz ON ON ON 2x ON ON Off
200MHz ON ON off 3x ON Off Off
300MHz ON off off 4x Off Off Off
333MHz off off off 5x Off On Off
366MHz Off On On 6x Off On On
400MHz Off Off on 7x On On off

Prepared by Bun khieng 85


Storage device
• Hdd
– IDE
– SATA
– SCSI
• Fdd
– 5.25inches
– 3.5 inches
• CD-ROM
– CD
– CD-RW
– CD-R
• Dvd
– DVD-ROM
– DVD-RW
– DVD-R
• Flash

Prepared by Bun khieng 86


FDD( Floppy Disk Drive)
definition

– Cahardare mYyRbePT read and write elI diskettes .


• Floppy disk man5 RbePTepSg²KñaKW
– 360 KB(5.25 Inch)
– 1.2MB(5.25 Inch)
– 720 KB(3.5Inch)
– 1.44MB(3.5Inch)
– 2.88MB(3.5 Inch)

FDD 3.5 inch

FDD 5.25 inch

Prepared by Bun khieng 87


How connect Floppy disk bable
3.5 inch

5.25 inch
Drive A:

Drive B:

PORT FDD/FDC

Mainboard

Prepared by Bun khieng 88


Hard Disk Drive
• Hard disk is the hardware that use to store
data perminantly.there are three king of hard
Disk
– IDE hard Disk
– Sata Hard Disk
– SCSI Hard Disk

Prepared by Bun khieng 89


INSTALLATION HARDWARE
 Install power supply
 Install mainboard
 Install RAM
 Install CPU,CPU FAN
 Install HDD, FDD,CD-ROM,CD-RW,DVD-ROM DVD-
RW.
 Install Expansion card and bracket
 Install jumper

Prepared by Bun khieng 90


1. -Install Power Supply: edaycab;
Power Supply P©ab;eTAnwg case .
power Supply man connector 8 ( Power Supply
AT ) nig connector 7 (Power Supply ATX )Edl

– connector FM² 2 dUcKña( Power


Supply AT) nig

connector FM1(power Supply ATX) : sMrab;


connect eTAkan;Mainboard(cMeBaH
power supply AT RtUvcab; ExSexµATl;
exµA.
– connectorFM² 4 dUcKña sMrab;
connect eTAkan; Hard disk , CD ROM , CD
Prepared by Bun khieng
RW , DVD ROM, DVD RW, ZIP Disk , CPU Fan. 91
Installation Hardware
2. -Install Mainboard : edaycab; Mainboard
P©ab;eTAnwg case .
• -Install CPU (Central Processing Unit): edayedat CPU
eTAnwg socket rW Slot SECC .
• -Install CPU Fan: edaycab;P©ab;eTAnwg
Heatsink(EdkRtCak;) ehIy Heatsink
cab;P©ab;eTAnwg CPU. ExS Fan edateTAkan;
Mainboard Rtg; Port eQµaH CPU Fan.
• -Install RAM(Random Access Memory):
edayedateTAkan; Mainboard tam Slot DIMM rW
SIMM .
• - Install HDD(Hard Dsk
edayedateTAnwgExS IDE nig
Drive):
P©ab;eTAnwgExS Power Supply
Prepared by Bun khieng 92
Installation Hardware
• Install CD-ROM: (krNIdUc Hard Disk)
• - Install CD-RW: (krNIdUc Hard Disk)
• - Install DVD-ROM: (krNIdUc Hard Disk)
• - Install DVD-RW: (krNIdUc Hard Disk)
• - Install FDD: edayedateTAnwgExS Floppy
Disk nig P©ab;eTAnwgExS Power Supply
(ExSRkhmTlRkhm rW
RkhmEbrecjGaRs½ynwgExS Power Supply
connect mun) ehIyExS Flopy Disk
mçageTotedayeTAkan; Mainboard Rtg; Port
FDD rW FDC (ExSRkhmCa eCIg TImYy).
Prepared by Bun khieng 93
Installation Hardware
• - Install Expansion Card:
– install VGA Card, sound Card , Network Card, Modem Card, USB Card, TV Card, SCSI
edayedateTAkan;
Card, IDE Card ....................: nig
Slot ISA PCI .

– Install VGA Card: edayedateTAkan; Slot ISA, PCI nig AGP .


• Install Expansion Bracket
– Parallel expansion bracket: edayedateTAkan; Maiboard Rtg; Port
eQµaH (PRN1, Print, Printer, LPT1 , LPT2........)
– Serial expansion bracket: edayedateTAkan; Maiboard Rtg; Port
eQµaH (com1, com2 , ComA, ComB)
– USB expansion bracket: edayedateTAkan; Maiboard Rtg; Port
eQµaH (USB1, USB2)

– Game expansion bracket: edayedateTAkan; Maiboard Rtg; Port


eQµaH(Game )
– Sound expansion bracket: edayedateTAkan; Maiboard Rtg; Port
eQµaH( Game MIDI, Audio)
– Graphic expansion bracket: edayedateTAkan; Maiboard Rtg; Port
eQµaH (VGA1, VGA Header, Prepared by Bun khieng
VGA-con) 94
Installation Hardware
• -Set jumper power on/off ,Reset, ePøIg Hard Disk, ePøIg
Power LED

-Reset Ca Button restart


:

-Power on/off :Ca Button power On/Off

HDD LED
- ePøIgBN’RkhmsMKal;
: Hard

dMeNIrkar.
Disk

-Power LED ePøIgBN’ébtgsMKal;


: Machine

kMBugdMeNIrkar.
-Speaker sMKal;sMelgecjBI
: Mainbord

krNI
( Error code Mainboard)
Prepared by Bun khieng 95
HDD LED SPEAKER PWS

RESET
POWER LED

MAINBOARD

Prepared by Bun khieng 96


CHECK SYSTEM HARDWARE

Why don’t hardware work?


Why doesn’t monitor display?
Solve the problem of hardware
Know the message when POST Screen

Prepared by Bun khieng 97


krNI Error)
1 Check Power Supply(

• krNI Monitor min Display


– Connect DuycUl Power Supply mindit

– Connect DuycUl Mainbord mindit

–kgðar Power Supply KaMg


– Power Suppy
pÁt;pÁg;crnþminRKb;RKan;
– Power Supply xUc

Prepared by Bun khieng 98


Check System Hardware

2 Check RAM( krNI Error)


• krNI Monitor min Display
– RAM Connect mindit ( bnøWsMelg TIt _ _ _
_ _)

–eCIg connect RAM xUc( bnøWsMelg TIt _ _


_ _ _)

– RAM min Support nwg Mainboard


– RAM xUc

• krNI Monitor Display


– Setup Program mincUl
– Message (Windows Protection Error)
Prepared by Bun khieng 99
Check System Hardware

3Check CPU( krNI Error)


• krNI Monitor min Display
– Connect CPU mindit
– eCIg connect CPU(Socket or Slot) xUc
– eCIg CPU vac
– CPU min Support nwg Mainboard

– CPU xUc

• krNI Monitor Display


– Setup Program mincUl
– Message ( System Halt Error)
– tMeNIrkarehIyrlt;eTAvij (CPU ekþAeBk)
Prepared by Bun khieng 100
Check System Hardware

4 Check Mainboard( krNI Error)

–krNI Monitor min Display


• Mainboard qøg Cashe

• Mainboard xUc

• Mainboard eqH Chipset

–krNI Monitor Display


• setup windows Error

• Message ( Error 1 * * ) ]TahrN_ Error 161Ca ( Error ROM


BIOS)

Prepared by Bun khieng 101


Check System Hardware

5 Check VGA( Video Graphic Adapter) ( krNI Error)


– krNI Monitor min Display
mindit
• VGA Connect

ECIg
• xUc
connect VGA

xUc
• VGA

–krNI Monitor Display


•Ebk RBal²emIlminyl;
Color

•GkSrdac;Can;elIKña
Prepared by Bun khieng 102
Check System Hardware

6 Check Monitor( krNI Error)


– Check CPU
– Check RAM
– Check Mainboard
– Check VGA
– Check Power Supply

Prepared by Bun khieng 103


• -POST SCREEN (Power On Self Test):
– It is desplayed When you power on computer.
• System Board Errors: (1xx)

code Description

101 System board interrupt failure (unexpected interrupt)

102 BIOS ROM checksum error (PC, XT); timer error (AT, MCA)

103 BASIC ROM checksum error (PC, XT); timer interrupt error (AT,
MCA)

Prepared by Bun khieng 104


CODE ERROR HARDWARE WHEN POST
SCREEN
• Memory Errors: (2xx)

code Description
20x Memory error

201 Memory test failure; error location might be displayed

202 Memory address error; lines 00-15

203 Memory address error; lines 16-23 (ISA) or 16-31 (MCA)

Prepared by Bun khieng 105


CODE ERROR HARDWARE WHEN POST SCREEN
• Keyboard Errors: (3xx)

code
Description

301 Keyboard did not respond correctly


301 Keyboard locked

303
Memory address error; lines 00-15
304 Keyboard and/or system board interface error;

305 keyboard controller fault Keyboard or system unit

306 Keyboard fuse failed on system board

Prepared by Bun khieng 106


Floppy Drive/Controller Errors: (6xx)

code
Description

601
General diskette or adapter failure
602
Diskette boot sector is not valid
603
Diskette size error
604
Media sense error

605
Diskette drive locked

Prepared by Bun khieng 107


Math Coprocessor Errors: (7xx)

code
Description
701 Math coprocessor presence/initialization error

702 Exception errors test failure

703 Rounding test failure

704 Arithmetic test 1 failure

705 Arithmetic test 2 failure

706 Arithmetic test 3 failure; Test is performed on 80387 only

Prepared by Bun khieng 108


Parallel Printer Adapter Errors:(9XX)
code Description
901 Data register latch error
902 Control register latch error

903 Register address decode error

904 Address decode error

910 Status line wrap connector error

911 Status line bit 8 wrap error

912 Status line bit 7 wrap error

Prepared by Bun khieng 109


Enhanced Graphics Adapter or Video Graphics Adapter
Errors:

code Description
2401 Video adapter test failure
2402 Video display error

2408 User indicated display attribute test failed

2409 Video display error

Prepared by Bun khieng 110


CMOS BIOS SETUP
CONFIGURE HARDWARE

Prepared by Bun khieng 111


CMOS BIOS SETUP
 CMOS (Complementary Metal Oxide Semiconductor)
 BIOS ( Basic Input Output System)
 Setup=configure ,install
 Defintition
 Cmos bios is the software that used to configure hardware and
coordinate hardware and Operating System.
 How to Open CMOS BIOS
 Power on => look for message on the screen (Press :
F1,F2,F3,…………..F12 ,DEL, Ctrl +Alt + Esc, Ctrl +Alt + Enter, Ctrl +Alt
+ F1, Ctrl +S, Ctrl +insert, Ctrl + Enter, Ctrl PU/PD………………)
 To setup
 Inter setup

 Bios setup

 Setup

 Cmos setup

 Ex: PRESS F2 TO SETUP

Prepared by Bun khieng 112


note
 How to open cmos bios
 If computer Brand name: we always use function
key(F1, F2, F3,……….F12)
 IF computer clone : we use key (del and other
key)
 If your computer does not display message: you
want your computer to show message on the
screen, you have to remove IDE cable from the
mainboard computer.

Prepared by Bun khieng 113


BIOS
 Interface of bios
 The interface of bios is deferent to each other.

Cmos bios Cmos bios Cmos bios

Cmos bios Cmos bios Cmos bios

Cmos bios Cmos bios Cmos bios


Cmos bios Cmos bios
Cmos bios
Cmos bios Cmos bios
Cmos bios

Cmos bios Cmos bios


Cmos bios
Cmos bios Cmos bios
Cmos bios
Cmos bios
Cmos bios
Cmos bios Cmos bios
Cmos bios Cmos bios Cmos bios

Prepared by Bun khieng 114


bios
 How to use key to control bios
 The CMOS BIOS use the deferent key to control
CMOS BIOS such as:
 Esc=Quite
 Enter =select

 F10= save

 F2= Change color

 F5 = default value

 +/-/page up/page down= modified value

 ……………………………………..

Prepared by Bun khieng 115


MS DOS
(Microsoft Disk Operating system)
 Prepare hard Disk to store data
 Repair Hard Disk
 Configure partition
 Use command

Prepared by Bun khieng 116


Ms DOS(Miscorsoft Disk
Operating System)
• Definition
– Ms Dos is the operating system that run by typing command .
– FOR computer repair use ms dos to prepare hard disk to store data.
• Kind of ms dos
– Ms dos mode
– Ms dos prompt

Prepared by Bun khieng 117


Kind of Ms dos
– Ms dos mode is the ms dos dos that run not depend on windows
– Ms dos prompt is ms dos run on windows
• How to Open Ms dos
– Ms dos mode
• Use CD boot or diskette boot (power on => CMOS =>BOOT from CD-
ROM=> insert CD BOOT)
– MS DOS PROMPT
– WINDOW 95,98
– Start => Run => command=>ok
– Start=>program=> ms dos prompt
– Power on =>f8=> command Prompt only
– Windows me
– Start => Run => command=>ok
– Start=>program=> Accessory =>command prompt
– Window 2000,XP
– Start => Run => command or cmd=>ok
– Start=>program=> Accessory =>command prompt
– Power on =>f8=>safe mode with command Prompt

Prepared by Bun khieng 118


note
• We always use ms dos mode in
computer repair because the HDD is not
store windows yet, so we have to
prepare HDD to store data with ms DOS
mode the run from CD BOOT or
diskette.

Prepared by Bun khieng 119


FatusMxan;²kñúg MS DOS
• A:\> sMKal; Prompt A • (\) ehAfa Back Slash
(/) ehAfa Slash rW
sMKal; Prompt B

• B:\> orward Slash

• C:\> sMKal; Prompt C


• (>) ehAfa Greater than
(.) ehAfa Dot
D:\> sMKal; Prompt


D • (-) ehAfa Cursor

• (C:) ehAfa drive


Prepared by Bun khieng 120
DIRECTORY
• Directory: Ca RbGb; XaøMg rW ft
eRbIsMrab;pÞúk Éksar rWkmµviFIepSg².
Directory manbIRbePT KW current directory, Parents Directry

nig Root Directory .


• Current Directory : Ca directory EdlkMBugdMeNIkar

rW ehAfa working Directory EdlsMKal;eday (.) .


• Parents Directory : Ca directory Edlmanfñak;xçs;Cag

current Directory EdlsMKal;eday(..)

• Root directory : Ca directory Edl manfñak;xçs;CageK

EdlsMKal;eday (\).
• Subdirectory : Ca directory EdlsßitenAkñúg directory

mYyepSgeTot. Prepared by Bun khieng 121


file
• File : Ca sMNMuÉksar. File manbIRbePT KW File Document
, File Program nig other Program File .

file document Other Program file


File Program
*.doc (file word) *.dll
*.Exe(execute )
*.xls (file Excel)
*.Sys(system) *.drv
*.dmb (file Access) *.ini
*.Com(communication)
*.ppt (file power piont) *.inf
*.Bat(Batch file)
*.log)

Prepared by Bun khieng 122


COMMAND USING WTIH DIRECTORY
•- DIR ( Internal):

eRbIsMrab;emIlTinñn½ykñug drive, Folder


rYmmaneQµaH directory, file, date, time nig size
• Syntax
– [Drive]dir
• exampe: c:\>dir
– [Drive]dir [Drive]
• exampe: c:\>dir d: 
– [Drive]dir [Drive]path[directory]
• exampe: c:\>dir d:\games 
• Note
– ( path=\) is used to tell where the file or folder is.

Prepared by Bun khieng 123


DIR

Prepared by Bun khieng 124


COMMAND USING WTIH DIRECTORY
• MD(Internal)=Make Directroy : sMrab;begáItdirectory
– C:\>md names

• CD(Internal)=Change Directory sMrab;cUlkñúg directory


– C:\>cd names
– C:\names>

• CD .. ( Internal) : cakecjBI directory mþgmYy²


– C:\names>cd..
– C:\>

• CD\ (internal) : cakecjBI directory nig Subdirector


– C:\gmes\ame32\ninja>cd\
– C:\>
• RD(internal)=Remove Directory
– C:\>Rd names

• CLS(internal) : sMGat Screen


– C:\>CLS

Prepared by Bun khieng 125


Make directory
C:\>
• C:\>md names

• C:\>cd names names

• C:\names>md dara chenda

• C:\names>md chenda
dara
• C:\names>md bopha

• C:\names>cd.. bopha

• C:\>

Prepared by Bun khieng 126


Remove directory
• C:\>cd names
• C:\ names> C:\>

• C:\names>rd dara
names
• C:\names>rd chenda
• C:\names>rd bopha chenda

• C:\names>cd..
dara
• c:\>rd names
bopha

Prepared by Bun khieng 127


EXERCISE
• Create and Remove the following directories

C:\>
hardware
names

chenda

dara
chenda
RAM
bopha
CPU
Games

Mario HDD

Ninja

Ury

chenda
Ur1

Ur2
dara

Ur3
bopha

Prepared by Bun khieng 128


COMMAND USING WTIH DIRECTORY
• copy con (internal) : eRbIsMrab;begáIt Files
– C:\>copy con chapter1.doc
The website for Programming with java inclodes the
intired intruction resause kit sollution to all text
exercise in chapter
( ctrl +z or F6)
– C:\>copy con chapter1.xls
There are a lot of the auniversities in Phnm Penh City.
( ctrl +z or F6)

• Type ( internal) : eRbIsMrab;emIlxøwmsar files


– C:\>type Chapter1.doc

• Edit (external) : eRbIsMrab;Ekrxøwmsar Files


– C:\>Edit Chapter1.doc

Prepared by Bun khieng 129


• -Del (internal): eRbIsMrab;lb; Files
– C:\>del Chapter1.doc

– C:\>del *.doc ( lb; files word TaMgGs;)


– C:\>del *.* ( lb; TaMgGs;
file )

• Deltree (External): eRbIsMrab;lb; Directory nig file


(windows 95, 98,Me)
– C:\>deltree games  Y
– C:\>deltree/y games
• RD/s(External)= deltree (windows 2000, XP, 2003, 2005, .......)
– C:\>rd/s games  Y
– C:\>rd/s/q games

• Ren(internal): eRbIsMrab;bþÚreQµaH directory

rW files
– C:\>ren games games32 
– C:\>ren chapter1.doc Chapter1.xls 
– C:\>ren chapter1.doc chapter2.doc 
– C:\>ren Chapter1.doc chenda.ppt 
– C:\>ren *.doc *.ppt
Prepared by Bun khieng 130
• copy (internal): eRbIsMrab; copy files
– C:\>copy chapter1.doc d:
– C:\>copy *.doc D:
– C:\>copy *.* d: 
– C:\>copy d:chapter1.doc e: 
– C:\>copy chapter1.doc d:\games

• eRbIsMrab; copy directory, files nig


xcopy(external):

begáIt directory fµImYyeTot


– C:\>xcopy cuc
games d:\games32  D
– C:\>xcopy chapter1.doc D: 
– C:\>xcopy *.doc D: 
– C:\>xcopy *.* D: 

• -Diskcopy(External): eRbIsMrab; copy kñúg FDD


– A:\>diskcopy chapter1.doc B: 
– B:\>diskcopy Chapter.doc A: 

Prepared by Bun khieng 131


• Attrib(External): eRbIsMrab;lak; direcotory rW files
C:\>Attrib/?
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
[/S [/D]]
+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.

C:\>attrib +a +s +h +r Games  ( lak; directory)

C:\>attrib +a +s +h +r lak;
Chapter1.doc ( file)

C:\> attrib -a -s -h -r Games  ( bgðaj Edllak; directory )

C:\> attrib -a -s -h -r bgðaj Edllak;


Chapter1.doc  ( file

Prepared by Bun khieng 132


• 5. COMMAND CHANGE DRIVE
– C:\>A: 
– A:\>B: 
– B:\>D: 
– D:\>
• 6. COMMAND CHANGE COLOR
-windows 2000, XP, 2003, 2005, ......
C:\>color/? 
Sets the default console foreground and background colors.
COLOR [attr]
attr Specifies color attribute of console output
Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White
C:\>color 71
colorbackground colorcharactor
-windows 95, 98 Me
C:\>copy con config.sys
device=c:windows\command\ansi.sys
(Ctrl+Z or F6)
C:\>copy con autoexec.bat
Prompt $e[1;31m $e[1;41m $p$g 
(Ctrl+Z or F6)
(restart Machine)

Ekr color C:\> edit autoexec.bat  EkrRtg; ( [1;31m & [ 1;41m )

Prepared by Bun khieng 133


• . OTHER COMMAND

kMnt; • dak;
Label(External):

eQµaHsMKal;
-Date (external):

kalbriecäT • C:\>label 
drive

– C:\>date  – Volume in drive C: is Important


– The current date is: Wed 01/01/1997 – Volume Serial Number is E02A-210D
– Enter the new date: (mm-dd-yy) – Volume label (ENTER for none)?

kMnt;em:
– Delete current volume label (Y/N)? n
• Time(External):

ag • Mem(External): emIlcMnu


C:\>time 
The current time is: 7:32:30.81
H Memory
• C:\>mem 
– Enter the new time:
– 655360 bytes total conventional memory

• -Ver(External):
windows
emIl version



655360 bytes available to MS-DOS
634096 largest executable program size
1048576 bytes total contiguous extended
memory
– C:\>ver  – 0 bytes available contiguous extended
– Microsoft Windows XP [Version 5.1.2600] memory
• -Vol – 941056 bytes available XMS memory

emIleQµaHs
– MS-DOS resident in High Memory Area
(External):

MKal; drive
C:\>vol 
Prepared by Bun khieng 134
Volume in drive C is Important
Volume Serial Number is E02A-210D
• 8 COMMAND USING WITH DISK

• -Chkdsk (external) : eRbIsMrab;emIlcMnuH drive


– C:\>chkdsk 
– C:\>chkdsk D:
– D:\>chkdsk 

• -Scandisk(External): eRbIsMrab;CYsCul disk Edl Error


– C:\>Scandisk 

• -Format (External): eRbIsMrab;erobcM track sector sarCafµI


– C:\>format D: 
– C:\>format D:/s/q/c/u

S: ehA File System


Q: Quick Format
C: Scandisk

U: Unsuitable (cab; bad Block)


• rebobeFVIkmµviFI Ms DOS dak;kñúg Diskette( Start Up Disk)
• ( eFVI)ancMeBaH Windows 95, 98, Me)
– -Start  Setting  control Panel  Add/Remove Program Windows setup  Start Up disk dak;
Diskette cUl OKOK

Prepared by Bun khieng 135

You might also like