🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Get Removable drive in Linux CentOs

Started by
1 comment, last by _Silence_ 5 years, 3 months ago

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

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

This topic is closed to new replies.

Advertisement