Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.co
!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfe
d.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Sir Chewbury Gubbins
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Question about mount command and location of files
Date: 2 Mar 2007 13:37:50 GMT
Lines: 31
Message-ID: <54qnleF21m7v6U2@mid.individual.net>
References: <54pnb4F21pso3U1@mid.individual.net>
X-Trace: individual.net YIO9ojlo9qflB4eJhUg95A3i+dfFPsP3UrXSFVr0td/M9wY0u4
User-Agent: slrn/0.9.8.1pl1 (Debian)
Xref: number1.nntp.dca.giganews.com alt.os.linux.ubuntu:11311
Chris Fasano the Monkey was never naughty:
>
> Is there a difference between these two tasks:
>
> 1. mkdir under /home
> 2. add files to /home/newdirectory
> 3. mount /dev/hdb to /home/newdirectory
>
> and
>
> 1. mkdir under /home
> 2. mount /dev/hdb to /home/newdirectory
> 3. add files to /home/newdirectory
Yes there is.
in the first case, you create a directory and put files in it. When you
then mount hdb on this mountpoint, files which already exist in that
folder become invisible to the filesystem (they're still there, on hda,
but as the kernel is looking in hdb for contents, they don't display).
In the second, you're mounting the disk on an empty directory so newly
created files are stored on hdb.
Chobos
--
Sir Chewbury Gubbins
http://www.nelefa.org - Gaming and Ramblings from the Shiny part of the world
Abu the monkey was never naughty.
--- Platinum Xpress/Win/WINServer v3.0pr5
* Origin: Omicron Theta BBS (1:261/20)
|