How to migrate data to a new mounted volume

E

enrio

Hello,

I am running out of space on the system volume, but I have free space
to create a new logical partition on another disk. I would like to
mount such a new volume as C:\Progrqam Files or as C:\Documents and
Settings. That is, I would like to migrate the contents of one of
these folders to the new volume and then mount it in the right place,
so all paths remain unchaged.

I just cannot figure out how to go about it, for Disk Manager says I
can mount a volume on an empty directory, but I am not sure it is
possible to empty these directories while the system is running.

Also, I don't want any programs to remove a thousand registry keys when
they discover files are gone, before the migration is complete.

Is there any advice about this?

Someplace I can read more about it?

Thanks,
Enrique
 
P

Pegasus \(MVP\)

Hello,

I am running out of space on the system volume, but I have free space
to create a new logical partition on another disk. I would like to
mount such a new volume as C:\Progrqam Files or as C:\Documents and
Settings. That is, I would like to migrate the contents of one of
these folders to the new volume and then mount it in the right place,
so all paths remain unchaged.

I just cannot figure out how to go about it, for Disk Manager says I
can mount a volume on an empty directory, but I am not sure it is
possible to empty these directories while the system is running.

Also, I don't want any programs to remove a thousand registry keys when
they discover files are gone, before the migration is complete.

Is there any advice about this?

Someplace I can read more about it?

Thanks,
Enrique

Try this:
1. Rename c:\Program Files to c:\Mount1
2. Copy everything from c:\Mount1 to the root directory of
your new disk.
3. Run these commands:
a) mountvol
b) mountvol x: /d
c) md "c:\Program Files"
d) mountvol "c:\Program Files"
\\?\Volume{d55c6934-1790-11da-b718-806d6172696f}

In Step a) you must make a note of the volume name of your new
disk. It is something like {d55c6934-1790-11da-b718-806d6172696f}

In Step b) you must substitute x: with the drive letter of your new disk.

In Step d) you must insert the correct volume name of your new disk.

You will now see the new disk mounted under "c:\program files".
When satisfied that everything works as it should then you can
delete c:\Mount1.
 
E

enrio

Thanks,
Hello,

I am running out of space on the system volume, but I have free space
to create a new logical partition on another disk. I would like to
mount such a new volume as C:\Progrqam Files or as C:\Documents and
Settings. That is, I would like to migrate the contents of one of
these folders to the new volume and then mount it in the right place,
so all paths remain unchaged.
[...]

Try this:
1. Rename c:\Program Files to c:\Mount1

I got "Sharing Violation" errors, but then I rebooted in "Safe Mode",
and was able to proceed.
2. Copy everything from c:\Mount1 to the root directory of
your new disk.
3. Run these commands:
a) mountvol
b) mountvol x: /d
c) md "c:\Program Files"
d) mountvol "c:\Program Files"
\\?\Volume{d55c6934-1790-11da-b718-806d6172696f}

In Step a) you must make a note of the volume name of your new
disk. It is something like {d55c6934-1790-11da-b718-806d6172696f}

In Step b) you must substitute x: with the drive letter of your new disk.

In Step d) you must insert the correct volume name of your new disk.

You will now see the new disk mounted under "c:\program files".
When satisfied that everything works as it should then you can
delete c:\Mount1.

Now I am through, and everything works.

I deviated from the script above, because I used "Disk Management" to
create the volume in the first place, and I specified the mount point
directly in Disk Management. (Disk Management: Control
Panel,->Administrative tasks->Computer Management->Storage->Disk
Management)

Regards,
Enrique
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top