ディスクの種類をMicrosoft BasicからLinuxファイルシステムに変更する

ディスクの種類をMicrosoft BasicからLinuxファイルシステムに変更する

装飾的に見えますが、ディスクの種類をMicrosoft BasicからLinuxファイルシステムに変更したいと思います。

    WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 50.0 GB, 50010783744 bytes, 97677312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: gpt
Disk identifier: 5E29C82B-93C9-47D8-B99C-A8DD0C1A2970


#         Start          End    Size  Type            Name
 1         2048       411647    200M  EFI System      EFI System Partition
 2       411648     17188863      8G  Linux swap
 3     17188864     97675263   38.4G  Microsoft basic

ベストアンサー1

はい、これは完全にLinuxの装飾です。

このTypeフィールドは、GPTパーティションテーブルのパーティションタイプGUIDに基づいています。可能なタイプはさまざまです。

Linuxを使用してパーティションタイプGUIDを変更した場合、fdiskパーティションの内容は何らかの形で変更しないでください。しかし、メッセージによると、WARNINGあなたのバージョンはfdisk少し古いように見えるので、注意して最初に重要なデータをすべてバックアップすることをお勧めします。

基本的にあなたがすべきことは次のとおりです。

# fdisk /dev/sda
[...]
Command (m for help): t
Partition number (1-3, default 3): 3
Hex code (type L to list all codes): L

<A long list is displayed...> 
<Find the correct short code matching the "Linux filesystem" type GUID>

Hex code (type L to list all codes: <type the short code here>
Command (m for help): w

バージョンによってfdisk若干の違いがある場合があります。例は、以下を使用して作成されました。

# fdisk --version
fdisk from util-linux 2.29.2

おすすめ記事