From: Brian Candler Date: 2012-09-03T16:51:04+09:00 Subject: Re: Ruby module to get df -h output Peter Hickman wrote in post #1074298: > So as far as my system is concerned /dev/disk3s1 only exists when it > is mounted. While the drive is inserted, type "umount /dev/disk3s1" and you will be in a position where the disk exists but is not mounted. Ejecting via a GUI filemanager is probably the same. > But the the OP didn't > want to know if "/var/www/html" was mounted (or that the mount point > existed) just that "/dev/cciss/c0d1p1" was mounted, the example that > the OP gives would be true if "/dev/cciss/c0d1p1" was mounted to *any* > mount point not just "/var/www/html". Correct - which you can't tell by looking at whether /dev/cciss/c0d1p1 exists. But as you say, only the OP knows what solution they actually need. Regards, Brian. -- Posted via http://www.ruby-forum.com/.