硬盘分区mbr(即doc)和gbt格式

mac2024-06-03  27

命令:

sudo fdisk /dev/sdc

然后输入m,显示可用命令: 

Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Help:   DOS (MBR)    a   toggle a bootable flag    b   edit nested BSD disklabel    c   toggle the dos compatibility flag   Generic    d   delete a partition    F   list free unpartitioned space    l   list known partition types    n   add a new partition    p   print the partition table    t   change a partition type    v   verify the partition table    i   print information about a partition   Misc    m   print this menu    u   change display/entry units    x   extra functionality (experts only)   Script    I   load disk layout from sfdisk script file    O   dump disk layout to sfdisk script file   Save & Exit    w   write table to disk and exit    q   quit without saving changes   Create a new label    g   create a new empty GPT partition table    G   create a new empty SGI (IRIX) partition table    o   create a new empty DOS partition table    s   create a new empty Sun partition table Command (m for help):

其中,先输入o是mbr格式,然后输入n,p, w即可;

先输入p或者直接输入n是gpt格式;

最新回复(0)