question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How do I mount drives and edit files?

See original GitHub issue

Area 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
quajakcommented, Jun 26, 2020
0reactions
CaydendWcommented, Jun 26, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found