<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d11356004\x26blogName\x3dxception\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://openrent.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://openrent.blogspot.com/\x26vt\x3d-2179510228592399674', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Find the device of a label

If you run Red Hat or Fedora, your /etc/fstab file for the /tmp directory might look like this:

LABEL=/tmp /tmp ext3 defaults 1 2

The "LABEL" command is hiding the true name of the device that provides the mount point for the /tmp file system. How can you tell what the device really is? The "tune2fs" command will reveal this information. The syntax for the tune2fs command is as follows:

# tune2fs -l /dev/hdaX |grep volume
# tune2fs -l /dev/sdaX |grep volume
# tune2fs -l /dev/cciss/c0d0pX |grep volume

The first command is for IDE drives, the second for SCSI drives, and the third for Compaq RAID arrays.

It helps to know, in advance, the partitions that are already defined on your server. If you don't know the partitions, run this command against each one until you find the partition with the label. In practice, this command on an HP Proliant server might look like this:

# tune2fs -l /dev/cciss/c0d0p7 |grep volume
Filesystem volume name: /tmp

Note that the grep returned the LABEL of the filesystem's volume: /tmp. In other words the /tmp LABEL is really the device at /dev/cciss/c0d0p7.