Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xda84cd12
Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 2048 526335 524288 256M c W95 FAT32 (LBA) /dev/mmcblk0p2 526336 62333918 61807583 29.5G 83 Linux
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x2ac1c561
Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 3907026943 3907024896 1.8T c W95 FAT32 (LBA)
2. 將硬碟分割表設定成 GPT,並建立一個完整的磁碟分割
1 2
# 設定分割表 sudo fdisk /dev/sda
輸入 g 設定成 GPT 分割表
1 2
Command (m for help): g Created a new GPT disklabel (GUID: 2BD8CEBF-23A4-4C49-B0E5-3D8A45B6E883).
輸入 n 建立新磁碟分區
1 2 3 4 5 6 7 8 9 10 11
Command (m for help): n Partition number (1-128, default 1): 1 First sector (2048-3907029134, default 2048): 2048 Last sector, +sectors or +size{K,M,G,T,P} (2048-3907029134, default 3907029134): 3907029134
Created a new partition 1 of type 'Linux filesystem' and of size 1.8 TiB. Partition #1 contains a exfat signature.
Do you want to remove the signature? [Y]es/[N]o: Y
The signature will be removed by a write command.
輸入 p 檢查分區狀況,沒問題後輸入 w 寫入
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Command (m for help): p Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 2BD8CEBF-23A4-4C49-B0E5-3D8A45B6E883
Device Start End Sectors Size Type /dev/sda1 2048 3907029134 3907027087 1.8T Linux filesystem
Filesystem/RAID signature on partition 1 will be wiped.
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.