![](wink.gif)
Another FileSystem-ish Question
Does anyone know a method of enumerating available Floppy and CDROM (SCSI and IDE) drives? Is there a way to do it for only mounted devices and/or all devices regardless of whether or not they''re mounted? Is there a way to check if it''s mounted (for the second option in the last question)?
Thanks in advance
.
[Resist Windows XP''s Invasive Production Activation Technology!]
![](wink.gif)
Well, I guess I''ll just parse /etc/fstab by hand, but I still need a way to test if the devices are already mounted.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
You could either read /proc/mounts if the system supports the proc filesystem, or you could spawn 'df' and parse its output to see which devices are mounted. Those are the only ways I can think of, but then again; I don't know much about programming under linux ![](smile.gif)
Edited by - Dactylos on September 23, 2001 7:39:10 PM
![](smile.gif)
Edited by - Dactylos on September 23, 2001 7:39:10 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement