• Advertisement

Archived

This topic is now archived and is closed to further replies.

Another FileSystem-ish Question

This topic is 5996 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!]

Share this post


Link to post
Share on other sites
Advertisement
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

Edited by - Dactylos on September 23, 2001 7:39:10 PM

Share this post


Link to post
Share on other sites

  • Advertisement