성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Reordering on an Alpha processor ;...
[정성태] 공유 감사합니다. ^^ 참고로, WPF에서 WindowsF...
[Tom Lee] 답변 감사합니다. 나름의 해결책 연구해보고 여기에도 공유해봅니다...
[정성태] 아래의 글을 보면, MoveWindow 하면 될 듯한데요. ^^...
[Tom Lee] 안녕하세요 올려주신 글 참고하여 WPF 어플리케이션 안에 Uni...
[정성태] A graphical depiction of the steps ...
[정성태] 질문을 주셔서 출판사 측에 문의를 했습니다. 약 한 달 정도 후...
[Thorondor
] @정성태 개인 블로그인데도 거의 커뮤니티 급 인 것 같아요. 요...
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>USB 메모리의 용량이 비정상적으로 보여진다면?</h1> <p> 8GB 용량의 USB 디스크가 2MB로 표시된다면서 지인으로부터 해당 현상이 발생한 USB 장치를 하나 건네 받았습니다. 오호~~~ 재미있군요. ^^<br /> <br /> 실제로 윈도우 탐색기를 통해 확인해 보니 정말 2MB 정도의 용량만 표시되었습니다.<br /> <br /> <img alt='usb_storage_1.png' src='/SysWebRes/bbs/usb_storage_1.png' /><br /> <br /> 이걸 보고, 순간 의심을 한 것은 바로 파티션이었습니다. "컴퓨터 관리" 관리 콘솔을 띄우고 "Disk Management" 영역에서 해당 USB의 현황을 보니 정말 그 문제가 맞았습니다.<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='usb_storage_2.png' src='/SysWebRes/bbs/usb_storage_2.png' /><br /> <br /> 보시는 바와 같이 중간 부분만 FAT 형식의 파티션으로 나뉘어져 있는데... 참으로 희한하군요. 저렇게 파티션을 일부러 나누려고 해도 힘들 것 같습니다. ^^;<br /> <br /> 더욱 재미있는 것은, 저 상태에서 앞/뒤 파티션의 확장이라든지 해당 파티션을 지우는 기능이 비활성화되었다는 점입니다. 따라서, 이 문제를 해결하려면 좀 더 저수준의 동작이 필요했습니다. 바로 diskpart.exe를 사용하는 것! (diskpart는 Windows 2000부터 제공되는 유틸리티로 기존의 fdisk를 대체하는 프로그램입니다.)<br /> <br /> 그럼, (관리자 권한으로) diskpart.exe를 실행하고 "list volume" 명령을 통해 우리가 변경하려는 볼륨을 "select volume [number]" 명령어로 선택해 줍니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\WINDOWS\system32><span style='color: blue; font-weight: bold'>diskpart</span> Microsoft DiskPart version 6.3.9600 Copyright (C) 1999-2013 Microsoft Corporation. On computer: THEMYTH8 DISKPART> <span style='color: blue; font-weight: bold'>list volume</span> Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 F DVD-ROM 0 B No Media Volume 1 C NTFS Partition 98 GB Healthy Boot Volume 2 D New Volume NTFS Partition 42 GB Healthy Volume 3 E New Volume NTFS Partition 97 GB Healthy Pagefile Volume 4 Recovery NTFS Partition 300 MB Healthy Hidden Volume 5 FAT32 Partition 100 MB Healthy System <span style='color: blue; font-weight: bold'>Volume 6 G FAT Removable 2272 KB Healthy</span> DISKPART> <span style='color: blue; font-weight: bold'>select volume 6</span> Volume 6 is the selected volume. DISKPART> <span style='color: blue; font-weight: bold'>list volume</span> Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 F DVD-ROM 0 B No Media Volume 1 C NTFS Partition 98 GB Healthy Boot Volume 2 D New Volume NTFS Partition 42 GB Healthy Volume 3 E New Volume NTFS Partition 97 GB Healthy Pagefile Volume 4 Recovery NTFS Partition 300 MB Healthy Hidden Volume 5 FAT32 Partition 100 MB Healthy System <span style='color: blue; font-weight: bold'>* Volume 6 G FAT Removable 2272 KB Healthy</span> DISKPART> <span style='color: blue; font-weight: bold'>list disk</span> Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 238 GB 1024 KB * Disk 1 Online 14 GB 0 B <span style='color: blue; font-weight: bold'>* Disk 2 Online 7728 MB 0 B</span> </pre> <br /> "select volume [number]" 명령을 실행한 후에는 반드시 자신이 원하는 volume이 선택되었는지를 "list volume" 명령어로 확인하는 습관을 들이는 것이 좋습니다. 위에서 보는 바와 같이 선택된 볼륨에 대해서는 "*" 표시가 붙게 됩니다.<br /> <br /> 이 상태에서 2272KB 용량으로 할당된 FAT 파티션을 다음과 같이 삭제할 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > DISKPART> <span style='color: blue; font-weight: bold'>delete partition</span> DiskPart successfully deleted the selected partition. DISKPART> <span style='color: blue; font-weight: bold'>list partition</span> There are no partitions on this disk to show. </pre> <br /> 그리곤, "list partition" 명령으로 파티션이 삭제되었음을 확인해 줍니다. 자... 그 다음은 디스크 용량에 꽉차게 새로운 파티션을 만들어 주면 됩니다. 다음과 같이!<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > DISKPART> <span style='color: blue; font-weight: bold'>create partition primary</span> DiskPart succeeded in creating the specified partition. DISKPART> <span style='color: blue; font-weight: bold'>list partition</span> Partition ### Type Size Offset ------------- ---------------- ------- ------- <span style='color: blue; font-weight: bold'>* Partition 1 Primary 7727 MB 1024 KB</span> </pre> <br /> 그럼, 7727MB... 거의 8GB 용량의 파티션이 잡힌 것을 확인할 수 있습니다. 여기까지 되었으면 탐색기나 "컴퓨터 관리자" 관리 콘솔에도 정상적으로 USB 디스크가 나오게 됩니다. 물론, 포맷도 할 수 있고.<br /> <br /> 저는 그냥 diskpart에서 포맷까지 함께 해버렸습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > DISKPART> <span style='color: blue; font-weight: bold'>format fs=FAT32 QUICK</span> </pre> <br /> 문제 해결 끝!<br /> <br /> <hr style='width: 50%' /><br /> <br /> 참고로, format 명령어 시에 다음과 같이 오류가 발생할 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > DISKPART> format fs=NTFS QUICK 0 percent completed DiskPart has encountered an error: The parameter is incorrect. See the System Event Log for more information. </pre> <br /> 이런 오류가 발생하는 경우는, 해당 디스크에 파티션이 없는 경우라고 보시면 됩니다. "list partition" 명령어로 확인해 보시고, 이후 파티션 생성을 해주면 정상 동작합니다.<br /> </p><br /> <br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
3622
(왼쪽의 숫자를 입력해야 합니다.)