Jump to content
  • Advertisement
Gautti

C# Get Removable drive in Linux CentOs

Recommended Posts

I can not get the removable drive although I have connected with Linux CentOs CPU with the c# code. I have written something like this

DriveInfo[] allDrives = DriveInfo.GetDrives();

foreach(DriveInfo d in allDrives)

{

if(d.DriveType == DriveType.Removable)

Debug.Log(d.Volume label);

 

}

I can not debug the volume label here. Anybody please help

Share this post


Link to post
Share on other sites
Advertisement

I don't know C#... Something that might help you: are your drives visible / mounted ? Ie are the disks listed when you type df ?

Common places to search for 'removable' drives are /media /media/{user_name}/* and /mnt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!