Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パーティションへのパスがあります。端末コマンドを使用せずにプログラムでそのパーティションの UUID を取得するにはどうすればよいですか? 例がより役に立ちます。
$ diskutil info / | grep UUID
これを C から実行することは、読者の演習として残されています。
ルート以外のパーティションが必要な場合は、. の代わりにマウント ポイントまたはデバイス名 (例: disk0s2) を指定できます/。
/