How i format my disk in Cosmos? #3026
-
How i format my disk in Cosmos? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
for (int i = 0; i < YourCosmosVFSInstance.Disks[0].Partitions.Count; i++) Keep in mind. this deletes all partitions on first disk, clears it, creates a partition, and formats it |
Beta Was this translation helpful? Give feedback.
-
@blackneeed You know what, this should be in a FAQ, cuz i've seen this more than twice |
Beta Was this translation helpful? Give feedback.
-
@FelekDevYT Can u close this so i dont explode? :D |
Beta Was this translation helpful? Give feedback.
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