Last active
September 21, 2021 22:40
-
-
Save joshuaaguilar20/8c0e54d3304d84fb5b3520c3f8130769 to your computer and use it in GitHub Desktop.
Diskutil how to create multiple partions on USB disk. How to Create multiple partions USB disk. Mac/Linux. Simple. Native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find dev you want to partion | |
diskutil list | |
#/dev/disk5 | |
#erase disk and format with fat32 | |
sudo diskutil eraseDisk FAT32 GPT /dev/disk5 | |
#use diskutility | |
sudo diskutil partitionDisk /dev/disk5 GPT JHFS+ New 4gb | |
#creates new 4gb partion to add iso to. | |
#GPT is Partition Scheme | |
#GPT is an option for the Partition Scheme. There are three you can use: | |
#GPT: GUID Partition Table | |
#APM: Apple Partition Map | |
# MBR: Master Boot Records | |
#multiple partions for different format FileType Name | |
diskutil partitionDisk /dev/disk2 GPT JHFS+ First 10g JHFS+ Second 10g JHFS+ Third 10g | |
#split partions | |
diskutil splitPartition /dev/disk2s6 JHFS+ Test 10GB JHFS+ Test2 0b | |
#merge partions | |
diskutil mergePartitions JHFS+ NewName {first disk identifier in range} {last disk identifier in range} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment