Overview
USB drive එකක් normal විදිහට format වෙන්නේ නැති වෙලාවට, command line එකෙන් වැඩි control එකක් දෙනවා — File Explorer touch කරන්නවත් බැරි drives fix කරන්නත් පුළුවන්. මේ guide එකෙන් Command Prompt එකේ diskpart වලින් සහ PowerShell වලින් USB flash drive එකක් format කරන ආකාරය, ඊට පස්සේ drive එක verify කරන ආකාරය පෙන්නනවා.
File Explorer format කරන්න බැරි USB drives command line එකෙන් format කරන්න පුළුවන්.
Warning: Format කළාම drive එකේ data ඔක්කොම මැකෙනවා, වැරදි disk එකක් select කළොත් වැරදි device එකක් wipe වෙන්න පුළුවන්. Command එකක් run කරන්න කලින් disk number/size එක double-check කරන්න.
Key Takeaways
- File Explorer එකේ fail වෙන drives diskpart එකෙන් clean කරලා reformat කරන්න පුළුවන්.
- Select කරන්න කලින් correct disk එක එහි size එකෙන් identify කරන්න.
- File system එක තෝරන්න: ඔබේ use එකට NTFS, FAT32 හෝ exFAT.
- PowerShell එකෙනුත් Clear-Disk සහ Format-Volume වලින් එම capability එක තියෙනවා.
Method 1 — diskpart එකෙන් Format කරන්න (Command Prompt)
1. USB drive එක දාන්න. Command Prompt එක administrator විදිහට open කරන්න.
2. diskpart type කරලා Enter කරන්න.
3. Drives list කරන්න: list disk — ඔබේ USB එක එහි size එකෙන් identify කරන්න.
4. ඒක select කරන්න: select disk X (X වෙනුවට correct number එක දාන්න).
5. Wipe කරන්න: clean
6. Partition එකක් හදන්න: create partition primary
7. Format කරන්න: format fs=exfat quick (හෝ fs=ntfs / fs=fat32).
8. Letter එකක් assign කරන්න: assign, ඊට පස්සේ exit type කරන්න.
Tip: Small drives වලට maximum compatibility එකට FAT32, ලොකු files සහ cross-platform use එකට exFAT, 32 GB ට වැඩි Windows-only drives වලට NTFS පාවිච්චි කරන්න.
Method 2 — PowerShell එකෙන් Format කරන්න
1. PowerShell එක administrator විදිහට open කරන්න.
2. Disks list කරන්න: Get-Disk — USB එක size එකෙන් identify කරන්න.
3. Clean කරන්න: Clear-Disk -Number X -RemoveData (X වෙනුවට disk number එක දාන්න).
4. Partition එකක් හදලා letter එකක් assign කරන්න: New-Partition -DiskNumber X -UseMaximumSize -AssignDriveLetter
5. Format කරන්න: Format-Volume -DriveLetter E -FileSystem exFAT -NewFileSystemLabel "USB" (ඔබේ අලුත් letter එක පාවිච්චි කරන්න).
USB Drive එක Errors වලට Check කරන්න
1. Command Prompt එක administrator විදිහට open කරන්න.
2. Check/repair එකක් run කරන්න: chkdsk E: /f (E: වෙනුවට drive letter එක දාන්න).
3. Bad sectors හෝ fixed errors වලට results බලන්න.
Format කළාට පස්සේ drive එකේ health එක check කරන්න.
Troubleshooting
Problem: diskpart "access is denied" කියනවා.
Solution: Command Prompt එක administrator විදිහට run කරන්න. diskpart වලට elevation ඕන.
Problem: ලොකු drive එකකට FAT32 offer වෙන්නේ නෑ.
Solution: Windows FAT32 formatting එක 32 GB ට limit කරනවා. ලොකු drives වලට exFAT හෝ NTFS පාවිච්චි කරන්න.
Problem: Drive එක write-protected.
Solution: diskpart එකේ, disk එක select කරලා attributes disk clear readonly run කරලා නැවත try කරන්න. Drive එකේ physical lock switch එකක් තියෙනවද බලන්න.
Problem: වැරදි disk number එකක් තෝරගත්තා.
Solution: clean කරන්න කලින් හැමවිටම list disk / Get-Disk එකෙන් size එකෙන් confirm කරන්න. System disk එකේ කවදාවත් clean run කරන්න එපා.
Conclusion
diskpart සහ PowerShell වලින් USB drives format කරලා revive කරන්න full control එකක් දෙනවා. මුලින්ම හරි disk එක size එකෙන් identify කරලා, suitable file system එකක් තෝරලා, ඊට පස්සේ chkdsk එකෙන් drive එක verify කරන්න.
About TechHub
මේ guide එක TechHub Knowledge Base එකේ කොටසක්. තව step-by-step IT guides සහ support වලට techhub.com.lk එකට යන්න.















