* Mounting a new partition
@ 2002-07-17 23:49 David Yeu
2002-07-18 0:26 ` Ray Olszewski
0 siblings, 1 reply; 2+ messages in thread
From: David Yeu @ 2002-07-17 23:49 UTC (permalink / raw)
To: Linux Newbie
Just a quick question:
If I create a new partition and mount it over a point which
contains data (lets say /var), will all the data be copied over
to the new partition, or will everything be destroyed?
If the answer happens to be the latter, what's the workaround?
Thanks,
Dave Y.
-
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: Mounting a new partition
2002-07-17 23:49 Mounting a new partition David Yeu
@ 2002-07-18 0:26 ` Ray Olszewski
0 siblings, 0 replies; 2+ messages in thread
From: Ray Olszewski @ 2002-07-18 0:26 UTC (permalink / raw)
To: David Yeu, Linux Newbie
At 06:49 PM 7/17/02 -0500, David Yeu wrote:
>Just a quick question:
>
>If I create a new partition and mount it over a point which
>contains data (lets say /var), will all the data be copied over
>to the new partition, or will everything be destroyed?
No. That is, it will do neither of these things. The existing data will
remains where they are, but they will be inaccessable, because the
directory will now provide access to the mounted partition instead of its
own contents.
>If the answer happens to be the latter, what's the workaround?
The "workaround" for what actually happens is to
(a) temporarily mount the new partition somewhese different (say
at /mnt)
(b) cp the files from the old directory to the new partition
(c) umount from the temporary location
(d) mount the new partition in its new location
(e) re-HUP or restart any processes that had files in the old, now
hidden directory, open (so they write to the corresponding files in the new
partition).
Once you know that everything works, you can delete the files from the old
(now inaccessable) directory, by doing this same sort of multi-step process.
--
-----------------------------------------------"Never tell me the
odds!"--------------
Ray Olszewski -- Han Solo
Palo Alto, California, USA ray@comarre.com
-------------------------------------------------------------------------------------------
-
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:[~2002-07-18 0:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-17 23:49 Mounting a new partition David Yeu
2002-07-18 0:26 ` Ray Olszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox