File Directory Ruby

File.stat("/dev/disk0s1").rdev_major
File.stat("/dev/tty").rdev_major