On Sun, 25 Feb 2001, William Villanueva wrote:
> I've never bothered checking before but just recently, I took notice and was
> wondering, how do I know what partition a particular directory has been
> mounted in (if that's the correct term)?
[...some part deleted for brevity...]
> In which partition are the directories such as /sbin, /etc, /lib, /opt, /tmp
> located?
hi william,
in a pinch, you can issue 'df <directory>" to find out what partition a
directory is in. df will also report what parent directory the directory
in question belongs to as well as a few other bits of info.
example: (note that actual format output is different)
$ df /home
Filesystem Mounted on
/dev/sda7 /home
$ df /tmp
Filesystem Mounted on
/dev/sda5 /
$ df /usr/sbin
Filesystem Mounted on
/dev/sda6 /usr
another tip... if you want 'df' to report something more understandable
instead of blocks, you can issue it with the -h switch, like so:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb3 7.2G 4.8G 2.1G 69% /
/dev/hdd1 3.0G 1.7G 1.2G 58% /u1
/dev/hda1 1.2G 1.2G 86M 94% /opt
/dev/hda5 5.0G 4.6G 435M 92% /pub
/dev/hdd2 3.3G 1.8G 1.4G 55% /home
(note: output is fabricated but gives you the basic idea)
-xen
--
eric pareja ([EMAIL PROTECTED]) ~-=[O]=-~ Here, have a clue. Get the picture.
PGP key at http://gra.ph/~xenos/xenos.pusa.pgp -|PLUG|- http://gra.ph
"Any technology distinguishable from magic is insufficiently advanced."
- Emperor Cleon in "Foundation's Fear" by Gregory Benford
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]