Skip to content

How i format my disk in Cosmos? #3026

Answered by blackneeed
FelekDevYT asked this question in Q&A
Discussion options

You must be logged in to vote

for (int i = 0; i < YourCosmosVFSInstance.Disks[0].Partitions.Count; i++)
{
YourCosmosVFSInstance.Disks[0].DeletePartition(i);
}
YourCosmosVFSInstance.Disks[0].Clear();
YourCosmosVFSInstance.Disks[0].CreatePartition(SIZE_OF_PARITION_IN_MB);
YourCosmosVFSInstance.Disks[0].FormatPartition(0, "FAT32", true);

Keep in mind. this deletes all partitions on first disk, clears it, creates a partition, and formats it

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FelekDevYT
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants