anonimous wrote:

> I found something that I think will tell me if a certain folder is a mounted 
> device, but there was nothing there for extracting the information from 
> /etc/fstab.

If you search the RAA for the keyword "mount", one of the few matches is 
for the "FileSystem" extension:

	http://raa.ruby-lang.org/list.rhtml?name=filesystem

If you download, build and install this extension, you can then write a 
little script like this one to extract information from /etc/fstab:

     require 'filesystem'

     FileSystem.mounts("/etc/fstab") { |m|
       puts m.device
       puts m.mount
       puts m.fstype
       puts m.options
       puts m.dump_interval
       puts m.check_pass
       puts "----------------------"
     }

HTH,

Lyle