home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 10270 
 kuehnik_0505@gmx-topmail.de to All 
 Re: Question about mount command and loc 
 02 Mar 07 09:27:08 
 
Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.co
!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59
10.21.MISMATCH!kanaga.switch.ch!switch.ch!newsfeed-du-01.pub.2nd
sunrise.ch!not-for-mail
Newsgroups: alt.os.linux.ubuntu
Date: Fri, 2 Mar 2007 15:27:08 +0100
From: Niklaus Kuehnis 
Subject: Re: Question about mount command and location of files
In-Reply-To: 
Message-ID: 
References: 
  <54pnb4F21pso3U
@mid.individual.net>
 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Lines: 34
Organization: TDC Switzerland AG, http://www.sunrise.ch
NNTP-Posting-Host: 84.227.41.30
X-Trace: 1172845628 news.sunrise.ch 15625 84.227.41.30:5884
X-Complaints-To: abuse@sunrise.ch
Xref: number1.nntp.dca.giganews.com alt.os.linux.ubuntu:11312

On Fri, 2 Mar 2007, Chris Fasano wrote:

> On Fri, 02 Mar 2007 04:26:13 +0000, Blue wrote:
>>
>> Mounting does not shift the files (phyisically). It just allows them to be
>> read.
>
> Thank you.  This explanation is (somewhat) what's causing my
> misunderstanding.  If files aren't physically moved by mounting, then if I
> create a directory under hda1 (home/newdirectory) the /newdirectory is
> physically located on hda.

The directory /newdirectory itself is always physically located on 
hda. The contents of /newdirectory are located on hda if nothing has 
been mounted on that directory. If a device has been mounted on 
/newdirectory, the files in /newdirectory will be located on the 
mounted device.

> So why would any files now created under /newdirectory be physically
> located on hdb just because I mounted /dev/hdb1 to /home/newdirectory,
> since as you say "mounting does not shift files physically?"

Mounting does not copy the files from the device (e.g. hdb1) to the 
mount point (/newdirectory) or vice-versa. Mounting creates an 
address so to say through which the device is accessible.

In Linux, if nothing were mounted, no data would be accessible. 
Through mounting, devices (i.e. partitions) are given a folder (the 
mount point) through which they can be accessed.

[snip]

--
Nik
--- Platinum Xpress/Win/WINServer v3.0pr5
 * Origin: Omicron Theta BBS (1:261/20)

<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca