Question: How do I mount drives and edit files?
See original GitHub issueArea of Cosmos - What area of Cosmos are we dealing with?
User kit
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
User Kit 20190508
I want to be able to scan drives but when I try to run this:
foreach (DriveInfo d in allDrives)
{
Console.WriteLine("Drive {0}", d.Name);
Console.WriteLine(" Drive type: {0}", d.DriveType);
if (d.IsReady == true)
{
Console.WriteLine(" Volume label: {0}", d.VolumeLabel);
Console.WriteLine(" File system: {0}", d.DriveFormat);
Console.WriteLine(
" Available space to current user:{0, 15} bytes",
d.AvailableFreeSpace);
Console.WriteLine(
" Total available space: {0, 15} bytes",
d.TotalFreeSpace);
Console.WriteLine(
" Total size of drive: {0, 15} bytes ",
d.TotalSize);
}```
The program just halts, it doesn't crash it just stops and lags. Am I missing something?
I am running it as an ISO in Hyper-V.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Unable to edit files in mounted partition
Firstly, I was interested in simply mounting that drive automatically on boot, which I managed by going to disks > selecting the drive...
Read more >Mounting a hard drive as a folder in Windows?
I've found that it is easy enough in Windows 10 to switch between mounting to a folder or a drive letter, without loosing...
Read more >Cannot add folder/edit a mounted drive - linux mint
Today, after it was working yesterday on Linux, I am now unable to edit/change any of those files, nor am I able to...
Read more >How to move/edit files from CLD to another partition?
As stated, I just mount the other OS partition to a dir on the system I am already on. then move or copy...
Read more >Unable to edit files in mounted partition - Linus Tech Tips
Firstly, I was interested in simply mounting that drive automatically on boot, which I managed by going to disks > selecting the drive...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To initialize the filesystem see https://github.com/CosmosOS/Cosmos/wiki/FAT-FileSystem#initiating-the-fat-driver
Thank you very much for your help! It works perfectly after I formatted it with windows 10’s file formater. Thank you for helping my inexperienced self through this.