Re: Mount two device on the same directory

Drew <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <CACJz6QtJQRx++qFHnV3KaqWsJWg3PRAreaXJcHkRK8LXN0Sjpg@mail.gmail.com>
>   then, if I type " ls / " command , Are all files in the two device show up to me?

My understanding is that whichever filesystem was mounted last, that
will be the one responding to ls.

For example, when you mount a usb stick to /mnt/mydevice, the
directory contents are replaced with the contenst of the usb stick you
mounted.

To see what I mean:

mkdir /mnt/mydrive
touch /mnt/mydrive/somefile
ls /mnt/mydrive/
mount /dev/(whatever the device is) /mnt/mydrive
ls /mnt/mydrive/

somefile should appear in the listing before mount but not after mounting.


-- 
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie

"This started out as a hobby and spun horribly out of control."
-Unknown
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.