Filesystems and Partitions

Filesystems and Partitions

Post by Scott Frankl » Wed, 27 Dec 1995 04:00:00



This is a simple question, but I cannot find the answer in any of my
books.  Apologies if I am recreating an old thread.

How can I tell which partition (or filesystem) a certain directory is
on?  Is it possible to change this or must I copy everything over to a
new directory?

The problem arose when I was trying to install software on my Linux
machine.  I have 3 partitions:  a root partition "/", a dos partition
"/dos", and a large user partition "/usr".  I tried to do all the
unpacking and compiling in /usr/tmp, but this seemed to put everything
on the boot partition which quickly filled up.  Why wouldn't the
directory /usr be on the partition /usr?

I am now doing all compiling as non-root in a home directory which
does indeed lie on the /usr partition.

Last question:  there does exist a /usr/usr directory, which appears
to be on the /usr partition, so I could just work in /usr/usr/tmp.
Why would this have been set up this way?

thank you for any and all help.

scott
--
scott franklin
RLM 14.204
471-3105
442-6451

"The labour we delight in:  physics pain" -- Macbeth

 
 
 

Filesystems and Partitions

Post by Arun Saxen » Thu, 28 Dec 1995 04:00:00



>The problem arose when I was trying to install software on my Linux
>machine.  I have 3 partitions:  a root partition "/", a dos partition
>"/dos", and a large user partition "/usr".  I tried to do all the
>unpacking and compiling in /usr/tmp, but this seemed to put everything
>on the boot partition which quickly filled up.  Why wouldn't the
>directory /usr be on the partition /usr?

It seems like there is a symbolic link from /tmp to /usr/tmp
"ls -ld /usr/tmp"  will show this link if it exists.
This is usually done when /tmp is on its own partition.

Quote:>Last question:  there does exist a /usr/usr directory, which appears
>to be on the /usr partition, so I could just work in /usr/usr/tmp.
>Why would this have been set up this way?

Definitely non-standard, somebody messed up setting this up.

Quote:

>thank you for any and all help.

>scott
>--
>"The labour we delight in:  physics pain" -- Macbeth

Arun Saxena

 
 
 

Filesystems and Partitions

Post by Scott Frankl » Fri, 29 Dec 1995 04:00:00


Thanks to all who pointed out that my problem was due to a link
between /usr/tmp and /var/tmp, which resided on my boot partition.  I
had noticed a hint of this earlier, when as root I worked on /usr/tmp
only to suddenly find myself in /var/tmp with no clue to having gone
from one to the other!  The problem has been corrected.

Thanks again for the fast responses.

scott
--
scott franklin
RLM 14.204
471-3105
442-6451

"The labour we delight in:  physics pain" -- Macbeth

 
 
 

Filesystems and Partitions

Post by Stephen M. Du » Sat, 30 Dec 1995 04:00:00



$How can I tell which partition (or filesystem) a certain directory is
$on?  Is it possible to change this or must I copy everything over to a
$new directory?

   I don't know Linux, but on most if not all Unix flavours, the
output of the "mount" command, with no arguments, shows you what
filesystems you have and where they're mounted.  I only have one
filesystem here so I've fudged the mount output to include another
for the purposes of illustration:

% mount
/dev/root on / read/write on Fri Dec 29 16:21:00 1995
/dev/spool on /usr/spool/news read/write on Fri Dec 29 16:21:06 1995
%

   I have in the above example two filesystems:  root, mounted on
/, and spool, mounted on /usr/spool/news.  There's no fixed correlation
between the name of a filesystem and its mount point; I could, if I
wanted, create a filesystem on /dev/etc and mount it on /tmp, or
create /dev/tmp and mount it on /u/stephen/.News if I so desired.
--

----------------------------------------------------------------------------
Stephen M. Dunn, CNE, ACE, Sr. Systems Analyst, United System Solutions Inc.
104 Carnforth Road, Toronto, ON, Canada M4A 2K7          (416) 750-7946 x251