{"id":5643,"date":"2022-12-15T16:43:07","date_gmt":"2022-12-15T07:43:07","guid":{"rendered":"\/blog\/?p=5643"},"modified":"2023-09-21T09:26:23","modified_gmt":"2023-09-21T00:26:23","slug":"uefi_par-bat","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=5643","title":{"rendered":"UEFI_PAR.BAT"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@ECHO OFF\nREM *****************************************************************\nREM Change the code page to UTF-8.\nREM *****************************************************************\nCHCP 65001 1> NUL 2> NUL\n\nREM *****************************************************************\nREM * DISKPART\ub85c UEFI \ud30c\ud2f0\uc158\uc744 \uc7a1\ub294\ub2e4.\nREM *****************************************************************\nSET PAR_EFI_SIZE=100\nSET PAR_MSR_SIZE=16\nSET PAR_C_DRIVE_SIZE=71680\nSET PAR_D_DRIVE_SIZE=0\n\nREM *****************************************************************\nREM \ub514\uc2a4\ud06c \ubc88\ud638\ub97c \ud070\uac12\uc73c\ub85c \uc8fc\uc5b4 \uc0ac\uace0\ub97c \ubbf8\uc5f0\uc5d0 \ubc29\uc9c0\nREM *****************************************************************\nSET AVAILABLE_DISK_NO=999\n\nREM *****************************************************************\nREM \uc791\uc5c5\ud560 \ub514\uc2a4\ud06c \ud655\uc778\nREM *****************************************************************\nECHO LIST DISK > UEFI_PAR.TXT\nDISKPART \/S UEFI_PAR.TXT\nDEL \/Q \/F UEFI_PAR.TXT\n\nECHO.\nSET \/P AVAILABLE_DISK_NO=\"DISK LIST \uc785\ub2c8\ub2e4. \uba87\ubc88 \ub514\uc2a4\ud06c\uc5d0 \ud30c\ud2f0\uc154\ub2dd\uc744 \ud560\uae4c\uc694 ?\"\nECHO **\uc120\ud0dd\ud55c DISK \ubc88\ud638\ub294 %AVAILABLE_DISK_NO% \uc785\ub2c8\ub2e4.\n\nECHO.\nSET \/P YN=\"\uacc4\uc18d \uc9c4\ud589 \ud560\uae4c\uc694 (y\/n)?\"\nIF \/I \"%YN%\" == \"y\" GOTO RUN_DISKPART\nEXIT \/B\n\n:RUN_DISKPART\nREM *****************************************************************\nREM \ub514\uc2a4\ud06c\ub97c \ucd08\uae30\ud654\ud558\uace0 GPT\ub85c \ubcc0\ud658\ud55c\ub2e4.\nREM *****************************************************************\nECHO SELECT DISK %AVAILABLE_DISK_NO% > UEFI_PAR.TXT\nECHO CLEAN >> UEFI_PAR.TXT\nECHO CONVERT GPT >> UEFI_PAR.TXT\n\nREM *****************************************************************\nREM EFI \ud30c\ud2f0\uc158\uc744 \uc0dd\uc131\ud558\uace0 S:\ub4dc\ub77c\uc774\ube0c\ub85c \ub9cc\ub4e0\ub2e4.\nREM *****************************************************************\nECHO CREATE PARTITION EFI SIZE=%PAR_EFI_SIZE% >> UEFI_PAR.TXT\nECHO SET ID=C12A7328-F81F-11D2-BA4B-00A0C93EC93B >> UEFI_PAR.TXT\nECHO FORMAT FS=FAT32 QUICK LABEL=EFI >> UEFI_PAR.TXT\nECHO ASSIGN LETTER=S >> UEFI_PAR.TXT\n\nREM *****************************************************************\nREM \uc2dc\uc2a4\ud15c \uc608\uc57d \ud30c\ud2f0\uc158 \uc0dd\uc131 (\uc708\ub3c4\uc6b07:128MB, \uc708\ub3c4\uc6b010:16MB)\nREM *****************************************************************\nECHO CREATE PARTITION MSR SIZE=%PAR_MSR_SIZE% >> UEFI_PAR.TXT\n\nREM *****************************************************************\nREM SYSTEM \ud30c\ud2f0\uc158\uc744 \uc0dd\uc131\ud558\uace0 \ud3ec\ub9f7 \ud6c4 W:\ub4dc\ub77c\uc774\ube0c\ub85c \ub9cc\ub4e0\ub2e4.\nREM *****************************************************************\nECHO CREATE PARTITION PRIMARY SIZE=%PAR_C_DRIVE_SIZE% >> UEFI_PAR.TXT\nECHO FORMAT FS=NTFS QUICK LABEL=SYSTEM >> UEFI_PAR.TXT\nECHO ASSIGN LETTER=W >> UEFI_PAR.TXT\n\nREM *****************************************************************\nREM DATA \ud30c\ud2f0\uc158\uc744 \uc0dd\uc131\ud558\uace0 \ud3ec\ub9f7 \ud6c4 Y:\ub4dc\ub77c\uc774\ube0c\ub85c \ub9cc\ub4e0\ub2e4.\nREM *****************************************************************\nIF %PAR_D_DRIVE_SIZE% == 0 (\n    ECHO CREATE PARTITION PRIMARY >> UEFI_PAR.TXT\n) ELSE (\n    ECHO CREATE PARTITION PRIMARY SIZE=%PAR_D_DRIVE_SIZE% >> UEFI_PAR.TXT\n)\nECHO FORMAT FS=NTFS QUICK LABEL=DATA >> UEFI_PAR.TXT\nECHO ASSIGN LETTER=Y >> UEFI_PAR.TXT\n\nREM *****************************************************************\nREM DATA\uc758 \uc0ac\uc774\uc988\uac00 0\ubcf4\ub2e4 \ud06c\uba74 RECOVERY \ud30c\ud2f0\uc158\uc744 \uc0dd\uc131\ud55c\ub2e4.\nREM *****************************************************************\nIF %PAR_D_DRIVE_SIZE% GTR 0 (\n    ECHO CREATE PARTITION PRIMARY >> UEFI_PAR.TXT\n    ECHO FORMAT FS=NTFS QUICK LABEL=RECOVERY >> UEFI_PAR.TXT\n    ECHO ASSIGN LETTER=R >> UEFI_PAR.TXT\n)\n\nREM *****************************************************************\nREM \uc544\ub798 \uba85\ub839\uc740 EFI\ud30c\ud2f0\uc158(S:)\uc5d0 BCD\ub97c \uc124\uce58\ud55c\ub2e4.\nREM BCDBOOT C:\\WINDOWS \/S S: \/L KO-KR \/F ALL\nREM *****************************************************************\nDISKPART \/S UEFI_PAR.TXT > UEFI_PAR.LOG\nDEL \/Q \/F UEFI_PAR.TXT<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[40],"tags":[],"class_list":["post-5643","post","type-post","status-publish","format-standard","hentry","category-os_win"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5643"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5643\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}