Which devices are present should be as simple as looking what files are in /dev... reading the partition tables and identifying filesystems though... why does gparted care unless and until you have chosen to show that drive?
Which devices are present should be as simple as looking what files are in /dev... reading the partition tables and identifying filesystems though... why does gparted care unless and until you have chosen to show that drive?