본문 바로가기

PC/Mac OS

설치 전 디스크 완전 초기화

반응형


터미널을 통한 디스크 초기화 방법

코어스토리지 자체를 삭제하는 방법이다



아래 명령어를 사용했던 이유는

디스크의 모든 파티션이 사라져서

복구 하기 위해 찾아보던 중

알아낸 방법이다



이때 사용되는 명령어는 

diskutil cs delete [UUID]


UUID를 확인하기 위해 아래 명령어 입력

diskutil cs list

그럼 아래 처럼 Logical Volume Group을 보면

UUID를 확인 할 수 있다

KangTAEui-iMac:~ magicmon$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 85B783B2-9CD6-4C14-BC99-40CE098AAE22

    =========================================================

    Name:         Internal Drive

    Status:       Online

    Size:         1120333979648 B (1.1 TB)

    Free Space:   114688 B (114.7 KB)

    |

    +-< Physical Volume 0816CF26-8218-41ED-A1DA-149575BB5A19

    |   ----------------------------------------------------

    |   Index:    0

    |   Disk:     disk0s2

    |   Status:   Online

    |   Size:     120988852224 B (121.0 GB)

    |

    +-< Physical Volume 0395C06D-CF9A-482D-A6E8-1A02E978C5CB

    |   ----------------------------------------------------

    |   Index:    1

    |   Disk:     disk1s2

    |   Status:   Online

    |   Size:     999345127424 B (999.3 GB)

    |

    +-> Logical Volume Family E2EBBC6C-CCAE-435D-8473-4AA2146231AC

        ----------------------------------------------------------

        Encryption Status:       Unlocked

        Encryption Type:         None

        Conversion Status:       NoConversion

        Conversion Direction:    -none-

        Has Encrypted Extents:   No

        Fully Secure:            No

        Passphrase Required:     No

        |

        +-> Logical Volume A244B9A9-EF63-462A-9F56-0679CAE1156C

            ---------------------------------------------------

            Disk:                  disk2

            Status:                Online

            Size (Total):          1111824400384 B (1.1 TB)

            Conversion Progress:   -none-

            Revertible:            No

            LV Name:               Macintosh HD

            Volume Name:           Macintosh HD

            Content Hint:          Apple_HFS

KangTAEui-iMac:~ magicmon$ 



위에서 확인 한 UUID를 통한 디스크 초기화를 실행시킨다

KangTAEui-iMac:~ magicmon$ diskutil cs delete 85B783B2-9CD6-4C14-BC99-40CE098AAE22

The Core Storage Logical Volume Group UUID is  85B783B2-9CD6-4C14-BC99-40CE098AAE22

Started CoreStorage operation

Ejecting Logical Volumes

Destroying Logical Volume Group

Erasing disk2s2

Initialized /dev/rdisk2s2 as a 1.1TB case-insensitive HFS Plus volume with a 16330k journal Mounting disk

Finished CoreStorage operation





출처

http://blog.naver.com/hankboy/220221196779

반응형