How to merge partitions with one partition is a Linux root partition
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have a Linux hard drive with two partitions:
/dev/sdb1 16126 234437409 234421284 111,8G f W95 Ext'd (LBA)
/dev/sdb5 16128 161870939 161854812 77,2G 83 Linux
/dev/sdb6 * 161871003 234437409 72566407 34,6G 83 Linux
Both sdb5 and sdb6 are already filled with data.
How do I safely merge those two partitions without loosing data and OS?
partitioning merge
add a comment |Â
up vote
0
down vote
favorite
I have a Linux hard drive with two partitions:
/dev/sdb1 16126 234437409 234421284 111,8G f W95 Ext'd (LBA)
/dev/sdb5 16128 161870939 161854812 77,2G 83 Linux
/dev/sdb6 * 161871003 234437409 72566407 34,6G 83 Linux
Both sdb5 and sdb6 are already filled with data.
How do I safely merge those two partitions without loosing data and OS?
partitioning merge
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
1
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a Linux hard drive with two partitions:
/dev/sdb1 16126 234437409 234421284 111,8G f W95 Ext'd (LBA)
/dev/sdb5 16128 161870939 161854812 77,2G 83 Linux
/dev/sdb6 * 161871003 234437409 72566407 34,6G 83 Linux
Both sdb5 and sdb6 are already filled with data.
How do I safely merge those two partitions without loosing data and OS?
partitioning merge
I have a Linux hard drive with two partitions:
/dev/sdb1 16126 234437409 234421284 111,8G f W95 Ext'd (LBA)
/dev/sdb5 16128 161870939 161854812 77,2G 83 Linux
/dev/sdb6 * 161871003 234437409 72566407 34,6G 83 Linux
Both sdb5 and sdb6 are already filled with data.
How do I safely merge those two partitions without loosing data and OS?
partitioning merge
partitioning merge
asked Feb 24 at 23:42
![](https://i.stack.imgur.com/1NTRG.jpg?s=32&g=1)
![](https://i.stack.imgur.com/1NTRG.jpg?s=32&g=1)
sianipard
1
1
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
1
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19
add a comment |Â
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
1
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
1
1
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009470%2fhow-to-merge-partitions-with-one-partition-is-a-linux-root-partition%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
I would copy the data onto two physically independent backup devices and verify them. Then use gparted to delete both partitions and create a new one in the space. Then copy your data back.
â Organic Marble
Feb 24 at 23:45
1
If you have enough free space on sdb5 to hold all of the data from sdb6, then copy over the data, then use gparted to delete sdb6 and extend sdb5. If there's not enough room on sdb5, then copy sdb6 data off to a flash drive, use gparted to delete sdb6, extend sdb5, and then restore the data from the flash drive.
â heynnema
Feb 24 at 23:59
@heynnema : is it gonna change if sdb6 is my root directory? Sorry if I didn't mention this before.
â sianipard
Feb 25 at 16:20
Yes it will. Then copy off sdb5 to an external HDD or flash drive, use gparted to delete sdb5, and extend sdb6, and copy back the data from the flash drive. Make sure that you have a good external backup of sdb6 just in case something goes wrong. Basically you can do what @OrganicMarble suggested earlier.
â heynnema
Feb 26 at 15:19