터미널에서 파티션 (coreStorage 논리 볼륨)을 어떻게 삭제합니까? Apple_HFS OS X

마지막으로 디스크 유틸리티를 사용하여 HDD의 파티션을 변경하지 않는 이유를 마침내 이해했습니다 (요세미티 DP 테스트에 중요 할 수도 있음). 이제는 데이터와 CoreStorage 객체를 암호화했기 때문에 파티션을 변경하지 않는다고 말합니다. diskutil명령 줄에서 사용하도록 막연하게 말하지만 약간 불편합니다. 나는 이 문제를 해결하는 방법에 대한 훌륭하지만 불완전한 대답 과 함께 매우 비슷한 질문을 발견했습니다 . 그렇다면 작은 파티션을 어떻게 떨어 뜨릴 수 있습니까?

나는 diskutil corestorage list(아래 출력) 에서 내 통증 분할을 보지 못합니다 . 이것은 걱정입니다.

또한 (이전 질문에서도) 디스크 이름이 불안정한 경우도 있습니다. 때때로 디스크 유틸리티는 디스크의 원래 원래 이름 (도시바…), 때로는 새 작은 파티션의 이름을 나열합니다. 요세미티가 아닌 매버릭스에서이 파티션을 만들었습니다. 요세미티가 왜 이것을 망칠까요?

내 관련 터미널 출력 :

d2m66h2j:~ laszlosandor$ diskutil list; echo; diskutil cs list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            289.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:          Apple_CoreStorage                         29.3 GB    disk0s4
   5:                 Apple_Boot Recovery HD             650.0 MB   disk0s5
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS OS X Test              *28.8 GB    disk1

CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group B6308EC8-297D-44BD-9212-6BD867F6331B
    =========================================================
    Name:         OS X Test
    Status:       Online
    Size:         29349998592 B (29.3 GB)
    Free Space:   204955648 B (205.0 MB)
    |
    +-< Physical Volume 3325F333-C8E3-46EE-9357-5E0C21A600D1
    |   ----------------------------------------------------
    |   Index:    0
    |   Disk:     disk0s4
    |   Status:   Online
    |   Size:     29349998592 B (29.3 GB)
    |
    +-> Logical Volume Family E8CB0EB7-A2B7-48AA-AA13-5DE30867901B
        ----------------------------------------------------------
        Encryption Status:       Unlocked
        Encryption Type:         None
        Conversion Status:       NoConversion
        Conversion Direction:    -none-
        Has Encrypted Extents:   No
        Fully Secure:            No
        Passphrase Required:     No
        |
        +-> Logical Volume 2F7B1893-07E8-4194-840B-F2552042E055
            ---------------------------------------------------
            Disk:                  disk1
            Status:                Online
            Size (Total):          28809494528 B (28.8 GB)
            Conversion Progress:   -none-
            Revertible:            Yes (no decryption required)
            LV Name:               OS X Test
            Volume Name:           OS X Test
            Content Hint:          Apple_HFS


답변

나는 매우 추천 완전히이를 시도하기 전에 시스템을 백업, 하나 더 제외이 같은 프로그램을 사용하여 전체 드라이브를 복제, 더 나은 아직 설정되어 있지, 또는으로 TM을 사용하여 카본 복사 Cloner를을 .

논리 볼륨을 마운트 해제하십시오.

sudo diskutil unmount force /dev/disk1

논리 볼륨 그룹과 그 내용을 모두 제거하십시오.

sudo diskutil cs deleteLVG B6308EC8-297D-44BD-9212-6BD867F6331B

에서 diskutil의 man 페이지 :

  delete | deleteLVG lvgUUID | lvgName
           Delete a CoreStorage logical volume group. All logical volume families with their
           logical volumes are removed, the logical volume group is destroyed, and the now-
           orphaned physical volumes are erased and partition-typed as Journaled HFS+.

현재 분리 된 파티션 disk0s4을 시작 볼륨으로 병합합니다 disk0s2(참고 : disk0s3복구 파티션 하나도 지워지고 병합됩니다). disk0s5다른 복구 파티션은 영향을받지 않아야합니다.

sudo diskutil mergePartitions HFS+ "Apple_HFS Macintosh HD" disk0s2 disk0s4

다시, 맨 페이지에서 :

 Merge two or more partitions on a disk.  All data on merged partitions other than the first
                will be lost.  Data on the first partition will be lost as well if the force argument is
                given.

                If force is not given, and the first partition has a resizable file system (e.g. JHFS+), the
                file system will be preserved and grown in a data-preserving manner; your format and name
                parameters are ignored in this case.

부팅 볼륨 구조를 확인하십시오.

diskUtil VerifyVolume /

파티션 맵을 확인하십시오.

diskutil verifyDisk disk0

복구 모드 로 부팅 하거나 필요한 경우 인터넷 복구 로 부팅 하십시오 (오류가 표시되는 경우).

당신 남아 있어야 합니다 :

/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            319.7 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

답변

나는 이것이 오래된 기사라는 것을 알고 있지만 최근에 나에게 일어 났으며 요세미티 파티션을 제거하는 가장 쉬운 방법은 다음과 같습니다.

  1. 다른 OS를 부팅하십시오.
  2. 디스크 유틸리티 열기
  3. 요세미티 파티션을 선택하십시오
  4. 지우기 탭을 선택하고 지우십시오.
  5. 주 드라이브를 선택하고 파티션 탭으로 이동하면 Yosemite 파티션을 삭제하고 원래 크기로 다시 크기를 조정할 수 있습니다.

답변

같은 문제가 발생하여 조금 더 쉽게 고칠 수있는이 기사를 찾았습니다.

을 실행 diskutil coreStorage list하고 논리 볼륨 uuid를 찾으십시오.

그런 다음 uuid 를 실행하십시오.diskutil coreStorage revert

당신의 경우에 diskutil coreStorage revert 2F7B1893-07E8-4194-840B-F2552042E055

http://awesometoast.com/yosemite-core-storage-and-partition-woes/