* Mount two device on the same directory
@ 2013-03-27 13:17 ishare
2013-03-30 2:04 ` Drew
0 siblings, 1 reply; 2+ messages in thread
From: ishare @ 2013-03-27 13:17 UTC (permalink / raw)
To: linux-newbie
Can I mount two different device on the same dir ?
If I first mount a superblock of vitual filesystem on / ,
then I mount another real device /dev/sda1 also on / ,
then, if I type " ls / " command , Are all files in the two device show up to me?
thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mount two device on the same directory
2013-03-27 13:17 Mount two device on the same directory ishare
@ 2013-03-30 2:04 ` Drew
0 siblings, 0 replies; 2+ messages in thread
From: Drew @ 2013-03-30 2:04 UTC (permalink / raw)
To: ishare; +Cc: linux-newbie
> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-30 2:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27 13:17 Mount two device on the same directory ishare
2013-03-30 2:04 ` Drew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox