How Do I Extend the Root Partition Backwards
up vote
0
down vote
favorite
I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.
debian filesystems root gparted
add a comment |
up vote
0
down vote
favorite
I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.
debian filesystems root gparted
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.
debian filesystems root gparted
I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.
debian filesystems root gparted
debian filesystems root gparted
asked 2 days ago
KALI99
86
86
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.
Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs
on your root filesystem to extend it across the new space in the partition.
The link below gives all the steps you need:
https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition
edited: changed left from right.
New contributor
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
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%2funix.stackexchange.com%2fquestions%2f487488%2fhow-do-i-extend-the-root-partition-backwards%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.
Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs
on your root filesystem to extend it across the new space in the partition.
The link below gives all the steps you need:
https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition
edited: changed left from right.
New contributor
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
add a comment |
up vote
0
down vote
accepted
There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.
Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs
on your root filesystem to extend it across the new space in the partition.
The link below gives all the steps you need:
https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition
edited: changed left from right.
New contributor
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.
Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs
on your root filesystem to extend it across the new space in the partition.
The link below gives all the steps you need:
https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition
edited: changed left from right.
New contributor
There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.
Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs
on your root filesystem to extend it across the new space in the partition.
The link below gives all the steps you need:
https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition
edited: changed left from right.
New contributor
edited yesterday
New contributor
answered 2 days ago
frontsidebus
1164
1164
New contributor
New contributor
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
add a comment |
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
1
1
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
– KALI99
2 days ago
Nope I had my directions mixed up :)
– frontsidebus
yesterday
Nope I had my directions mixed up :)
– frontsidebus
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
ok then.. I'll try that. Thank you
– KALI99
yesterday
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f487488%2fhow-do-i-extend-the-root-partition-backwards%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