| 
					
				 | 
			
			
				@@ -667,13 +667,13 @@ namespace Emby.Server.Implementations.IO 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public virtual List<FileSystemMetadata> GetDrives() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // Only include drives in the ready state or this method could end up being very slow, waiting for drives to timeout 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return DriveInfo.GetDrives().Where(d => d.IsReady).Select(d => new FileSystemMetadata 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // check for ready state to avoid waiting for drives to timeout 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // some drives on linux have no actual size or are used for other purposes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return DriveInfo.GetDrives().Where(d => d.IsReady && d.TotalSize != 0 && d.DriveType != DriveType.Ram).Select(d => new FileSystemMetadata 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Name = d.Name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 FullName = d.RootDirectory.FullName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 IsDirectory = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }).ToList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |