How do I delete a partiton and allocate the space to my main Ubuntu partition?
I have a partition table that looks like this in gparted:
I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!
partitioning gparted
New contributor
add a comment |
I have a partition table that looks like this in gparted:
I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!
partitioning gparted
New contributor
add a comment |
I have a partition table that looks like this in gparted:
I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!
partitioning gparted
New contributor
I have a partition table that looks like this in gparted:
I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!
partitioning gparted
partitioning gparted
New contributor
New contributor
New contributor
asked 10 hours ago
marienbadmarienbad
1061
1061
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.
New contributor
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
add a comment |
Boot with live USB/DVD in gparted.
Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that
swapoff -a
and delete 'sda2'.resize 'sda1'.
Create new swap partition.
Then mount the Ubuntu partition.
sudo mount /dev/sda1 /mnt
Find the UUID of Ubuntu and swap partitions.
sudo blkid -o full -s UUID
Edit /etc/fstab file
sudo gedit /mnt/etc/fstab
Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab
Save and close.
Reboot
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
marienbad 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%2faskubuntu.com%2fquestions%2f1117407%2fhow-do-i-delete-a-partiton-and-allocate-the-space-to-my-main-ubuntu-partition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.
New contributor
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
add a comment |
Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.
New contributor
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
add a comment |
Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.
New contributor
Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.
New contributor
New contributor
answered 10 hours ago
Neil HeffernanNeil Heffernan
211
211
New contributor
New contributor
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
add a comment |
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
1
1
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1
– Charles Green
9 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?
– marienbad
8 hours ago
add a comment |
Boot with live USB/DVD in gparted.
Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that
swapoff -a
and delete 'sda2'.resize 'sda1'.
Create new swap partition.
Then mount the Ubuntu partition.
sudo mount /dev/sda1 /mnt
Find the UUID of Ubuntu and swap partitions.
sudo blkid -o full -s UUID
Edit /etc/fstab file
sudo gedit /mnt/etc/fstab
Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab
Save and close.
Reboot
add a comment |
Boot with live USB/DVD in gparted.
Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that
swapoff -a
and delete 'sda2'.resize 'sda1'.
Create new swap partition.
Then mount the Ubuntu partition.
sudo mount /dev/sda1 /mnt
Find the UUID of Ubuntu and swap partitions.
sudo blkid -o full -s UUID
Edit /etc/fstab file
sudo gedit /mnt/etc/fstab
Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab
Save and close.
Reboot
add a comment |
Boot with live USB/DVD in gparted.
Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that
swapoff -a
and delete 'sda2'.resize 'sda1'.
Create new swap partition.
Then mount the Ubuntu partition.
sudo mount /dev/sda1 /mnt
Find the UUID of Ubuntu and swap partitions.
sudo blkid -o full -s UUID
Edit /etc/fstab file
sudo gedit /mnt/etc/fstab
Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab
Save and close.
Reboot
Boot with live USB/DVD in gparted.
Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that
swapoff -a
and delete 'sda2'.resize 'sda1'.
Create new swap partition.
Then mount the Ubuntu partition.
sudo mount /dev/sda1 /mnt
Find the UUID of Ubuntu and swap partitions.
sudo blkid -o full -s UUID
Edit /etc/fstab file
sudo gedit /mnt/etc/fstab
Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab
Save and close.
Reboot
edited 8 hours ago
answered 8 hours ago
VeeJayVeeJay
1,6211718
1,6211718
add a comment |
add a comment |
marienbad is a new contributor. Be nice, and check out our Code of Conduct.
marienbad is a new contributor. Be nice, and check out our Code of Conduct.
marienbad is a new contributor. Be nice, and check out our Code of Conduct.
marienbad is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2faskubuntu.com%2fquestions%2f1117407%2fhow-do-i-delete-a-partiton-and-allocate-the-space-to-my-main-ubuntu-partition%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