Pages

វិធីធ្វើ Windows 7 ឬ 8 boot ពី USB flash drive ដោយប្រើ Command line

វិធីបង្កើត Bootable USB flash drive ដើម្បីដំឡើង Windows 7 ឬ 8 ដោយប្រើ Command line
តំរូវការមុន៖



១. ឯកសាររូបភាពរបស់ Windows 7 ឬ 8 ដែលមានកន្ទុយ iso
http://www.softpedia.com/progDownload/Windows-7-Download-118183.html
២. កម្មវិធីឌីសសប្បនិម្មិតដើម្បី Mount ឯកសាររូបភាពរបស់ Windows 7 ឬ 8 មកប្រើ
Ultra ISO
Power ISO
៣. USB flash drive ដែលមានទំហំធំជាង 4 GB
ដំបូងត្រូវ Mount ឯកសាររូបភាពរបស់ Windows 7 ឬ 8
ភ្ជាប់ USB flash drive ជាមួយ Computer
សន្មត់ថា៖
- Drive I ជាឌីសសប្បនិម្មិតដែលត្រូវបាន Mount ឯកសាររូបភាពពី Windows 7 ឬ 8
- Drive M ជា USB flash drive
បើក Command Prompt ជា Administrator ដោយចុចលើសញ្ញា Windows រួចវាយ cmd វានឹងលោតចេញ cmd.exe ខាងក្រោម Programs
ចុចកណ្ដុរខាងស្ដាំលើវា រើសយក Run as administrator
C:\Windows\system32>cd /
C:\>diskpart (ដើម្បីចូល Disk Partition)
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On computer: Hokhmer
DISKPART> list disk (បង្ហាញ disk ដែលកំពុងប្រើ)
Disk ### Status Size Free Dyn Gpt
——– ————- ——- ——- — —
Disk 0 Online 596 GB 70 GB
Disk 1 No Media 0 B 0 B
Disk 2 Online 3854 MB 0 B
(ករណីនេះ Disk 2 គឺជា USB Flash Drive 4 GB ដែលយើងប្រើ ដូច្នេះរើសយក disk 2)
DISKPART> select disk 2
Disk 2 is now the selected disk.
DISKPART> clean (លុបឯកសារចេញពី USB)
DiskPart succeeded in cleaning the disk.
DISKPART> create partition primary (បង្កើតវាជា Primary Partition)
DiskPart succeeded in creating the specified partition.
DISKPART> list part (មើល Disk Partition)
Partition ### Type Size Offset
————- —————- ——- ——-
* Partition 1 Primary 3853 MB 64 KB
DISKPART> select partition 1 (រើសយក Partition 1)
Partition 1 is now the selected partition.
DISKPART> active (ធ្វើវាអោយទៅជា Active Partition)
DiskPart marked the current partition as active.
DISKPART> format FS=NTFS (format USB ជាប្រភេទ NTFS)
100 percent completed
DiskPart successfully formatted the volume.
DISKPART> exit
Leaving DiskPart…
C:\>xcopy I:\*.* M:\ /E /F /H (ចំលងឯកសារទាំងអស់ពី drive I ទៅ M)
C:\>M:
M:\>cd boot
M:\boot>bootsect /nt60 M: /force
(ជំនួស nt52 for windows 64 bit)
Target volumes will be updated with BOOTMGR compatible bootcode.
M: (\\?\Volume{40f56094-640d-11e1-9e7d-1c4bd60e7cd5})
Forced dismount complete, open handles to this volume are now invalid.
Successfully updated NTFS filesystem bootcode.
Bootcode was successfully updated on all targeted volumes.
M:\boot> exit
M:\>exit
Restart Windows រួចចូលទៅប្តូរ Bios setting (ចុច F2, F8, Del ទៅតាមប្រភេទកុំព្យូទ័រ) អោយ Boot ពី USB Flash Drive ។
ចំនាំ៖ ក្រោយពីដំឡើង Windows រួចត្រូវចូលទៅកែ Bios setting អោយ Boot ពី Hard disk វិញ៕