How to merge two ext4 partitions, when there is an unallocated space between them?
up vote
0
down vote
favorite
I have two ext4 partitions:
/dev/sda6
is the one on which I have my Ubuntu right now,
/dev/sda5
is a recently created empty ext4 partition.
How to merge them so the data will not be lost?
linux partitioning filesystems gparted ext4
New contributor
add a comment |
up vote
0
down vote
favorite
I have two ext4 partitions:
/dev/sda6
is the one on which I have my Ubuntu right now,
/dev/sda5
is a recently created empty ext4 partition.
How to merge them so the data will not be lost?
linux partitioning filesystems gparted ext4
New contributor
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have two ext4 partitions:
/dev/sda6
is the one on which I have my Ubuntu right now,
/dev/sda5
is a recently created empty ext4 partition.
How to merge them so the data will not be lost?
linux partitioning filesystems gparted ext4
New contributor
I have two ext4 partitions:
/dev/sda6
is the one on which I have my Ubuntu right now,
/dev/sda5
is a recently created empty ext4 partition.
How to merge them so the data will not be lost?
linux partitioning filesystems gparted ext4
linux partitioning filesystems gparted ext4
New contributor
New contributor
edited 2 days ago
Kamil Maciorowski
22.5k155072
22.5k155072
New contributor
asked 2 days ago
Timur
1
1
New contributor
New contributor
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago
add a comment |
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
Since /dev/sda5
is first in disk order, the order of operations should be:
- Delete
/dev/sda5
, so it becomes part of the unallocated space - Move
/dev/sda6
so its starting point is as much up as possible,
which is where/dev/sda5
used to be, so that the unallocated space now
follows it - Resize
/dev/sda6
to the maximum possible so it now includes the whole
of the unallocated space.
I suggest first to take a backup image of the whole disk, because even the smallest
mistake may destroy it.
One tool you may use is gparted.
Boot its
Live CD/USB
for these operations.
add a comment |
up vote
0
down vote
Backup and data in sda6, delete sda6, expand sda5, restore data from deleted sda5 to the newly expanded sda6.
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Since /dev/sda5
is first in disk order, the order of operations should be:
- Delete
/dev/sda5
, so it becomes part of the unallocated space - Move
/dev/sda6
so its starting point is as much up as possible,
which is where/dev/sda5
used to be, so that the unallocated space now
follows it - Resize
/dev/sda6
to the maximum possible so it now includes the whole
of the unallocated space.
I suggest first to take a backup image of the whole disk, because even the smallest
mistake may destroy it.
One tool you may use is gparted.
Boot its
Live CD/USB
for these operations.
add a comment |
up vote
0
down vote
Since /dev/sda5
is first in disk order, the order of operations should be:
- Delete
/dev/sda5
, so it becomes part of the unallocated space - Move
/dev/sda6
so its starting point is as much up as possible,
which is where/dev/sda5
used to be, so that the unallocated space now
follows it - Resize
/dev/sda6
to the maximum possible so it now includes the whole
of the unallocated space.
I suggest first to take a backup image of the whole disk, because even the smallest
mistake may destroy it.
One tool you may use is gparted.
Boot its
Live CD/USB
for these operations.
add a comment |
up vote
0
down vote
up vote
0
down vote
Since /dev/sda5
is first in disk order, the order of operations should be:
- Delete
/dev/sda5
, so it becomes part of the unallocated space - Move
/dev/sda6
so its starting point is as much up as possible,
which is where/dev/sda5
used to be, so that the unallocated space now
follows it - Resize
/dev/sda6
to the maximum possible so it now includes the whole
of the unallocated space.
I suggest first to take a backup image of the whole disk, because even the smallest
mistake may destroy it.
One tool you may use is gparted.
Boot its
Live CD/USB
for these operations.
Since /dev/sda5
is first in disk order, the order of operations should be:
- Delete
/dev/sda5
, so it becomes part of the unallocated space - Move
/dev/sda6
so its starting point is as much up as possible,
which is where/dev/sda5
used to be, so that the unallocated space now
follows it - Resize
/dev/sda6
to the maximum possible so it now includes the whole
of the unallocated space.
I suggest first to take a backup image of the whole disk, because even the smallest
mistake may destroy it.
One tool you may use is gparted.
Boot its
Live CD/USB
for these operations.
answered 2 days ago
harrymc
247k10256542
247k10256542
add a comment |
add a comment |
up vote
0
down vote
Backup and data in sda6, delete sda6, expand sda5, restore data from deleted sda5 to the newly expanded sda6.
New contributor
add a comment |
up vote
0
down vote
Backup and data in sda6, delete sda6, expand sda5, restore data from deleted sda5 to the newly expanded sda6.
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
Backup and data in sda6, delete sda6, expand sda5, restore data from deleted sda5 to the newly expanded sda6.
New contributor
Backup and data in sda6, delete sda6, expand sda5, restore data from deleted sda5 to the newly expanded sda6.
New contributor
New contributor
answered yesterday
oksage
42
42
New contributor
New contributor
add a comment |
add a comment |
Timur is a new contributor. Be nice, and check out our Code of Conduct.
Timur is a new contributor. Be nice, and check out our Code of Conduct.
Timur is a new contributor. Be nice, and check out our Code of Conduct.
Timur is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376175%2fhow-to-merge-two-ext4-partitions-when-there-is-an-unallocated-space-between-the%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you mean to combine them without moving or copying files, or just delete one & enlarge the other?
– Xen2050
2 days ago