Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

How to add a partition of Disk 1, to another partition of Disk 0?

+2
−2

I use Windows 10. How do I add the yellow partition to the red one, to increase the size of red? Green (833 GB) must be left alone, and must not be changed or moved.

enter image description here

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

x-post https://superuser.com/q/1128970/383391 (1 comment)

1 answer

+4
−0

If you ask strictly about partitions, then you can't...

One partition is on one disk, the other partition is on another disk. Therefore, you cannot combine/merge both partitions. One part(ition) of a disk cannot be at the same time also be a part(ition) of a separate disk.

(That is, unless you would utilize some disk controller or low-level storage device driver which presents the two separate disks as a single logical disk to the operating system, like RAID0 or Windows Storage Spaces, for example; but i digress and that would also not preserve your existing partitions...)


However, what you could perhaps do is creating a (directory) junction on drive C:, which would refer/link the root folder of the 2nd/yellow partition. (The 2nd partition would need to be formatted, of course.)

To create a junction, use a cmd console shell with admin privileges and type:

mklink /J <junction_name> <existing_target_directory>

where <junction_name> is the path and name of the junction to be created. For all practical purposes, the junction will appear and function like a directory.

<existing_target_directory> is the full path of the directory the junction will refer/point to.


For example,

mklink /J C:\foo\bar F:\

will create the junction "bar" in the directory "C:\foo", with the content of the root directory of F: appearing in "C:\foo\bar". CD'ing/navigating into "C:\foo\bar" makes the content of "F:\" appear as if it were the content of the directory "C:\foo\bar".

In other words, if there is for example a file F:\baz.txt, it could then also be accessed by the path C:\foo\bar\baz.txt. And if you were to create a file (or directory) C:\foo\bar\somedir\file.dat, it would not be stored on the partition of drive C:, but it would be stored on the partition of drive F: (with its "true" storage location being F:\somedir\file.dat).

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »