You can issue a 'df -k' (or 'df -h' if you system supports it).
If you are on /var/spool then look for an entry that says /var.
This will tell you the device that directory sits on. If you
don't see an entry for /var then it probably is part of the root
filesystem, /. Then you just check the device that this sits on.<br>
<br>
i.e.<br>
[user@host ~]$ df -h<br>
Filesystem Size Used Avail Use% Mounted on<br>
/dev/md0
2.0G 121M 1.9G 7% /<br>
/dev/md3
25G 423M 25G 2% /home<br>
/dev/md1 7.9G 885M 7.0G 12% /usr<br>
/dev/md2
40G 895M 39G 3% /var<br>
<br>In this case, the /var is on /dev/md2. Your mileage may differ.<br>
<br>
<br><div><span class="gmail_quote">On 6/10/05, <b class="gmail_sendername">Nathan C. Smith</b> <<a href="mailto:smith@ipmvs.com">smith@ipmvs.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>If I am in /var/spool and I want to see what device this directory exists<br>on, is there a command-line tool to find out? Something like pwd for<br>mounted devices?<br><br>Thanks.<br><br>-Nate<br>_______________________________________________
<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br></blockquote></div><br>