gparted, df and resizing a hard drive partition Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionWhy do gparted and df -h report different size, used, and avail sizes of a partition?parted not recognizing my current partition on external disk. How to fix without losing data?Gparted claims my internal drive is fullWhy is GParted listing an empty parition as using 43.90 GB?Debian Wheezy live - gparted, dmsg, fdisk etc. do not detect local hard drive but it is shown during installationExpanding a hard drive partition to fill the drive without wiping the partition?How to grow filesystem to use unallocated space in partition?External hard-drive's FAT32 partition not recognized by Windows after size increase with gpartedDoes gparted make good use of badblocks lists?Slow boot time after cloning disk and resizing partitionsWhat is the purpose of `.Trash-1000` in my external hard drive and how can I clean it up?
"Lost his faith in humanity in the trenches of Verdun" — last line of an SF story
Lagrange four-squares theorem --- deterministic complexity
What is this round thing on the pantry door in The Shining
Hangman Game with C++
Exposing GRASS GIS add-on in QGIS Processing framework?
Would it be possible to dictate a bech32 address as a list of English words?
Why limits give us the exact value of the slope of the tangent line?
How to make a Field only accept Numbers in Magento 2
What do you call the main part of a joke?
Is CEO the "profession" with the most psychopaths?
How could we fake a moon landing now?
Find 108 by using 3,4,6
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
How does the math work when buying airline miles?
Did any compiler fully use 80-bit floating point?
What would you call this weird metallic apparatus that allows you to lift people?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
What is the meaning of 'breadth' in breadth first search?
An adverb for when you're not exaggerating
Put R under double integral
Is there any word for a place full of confusion?
How to plot logistic regression decision boundary?
Generate an RGB colour grid
Effects on objects due to a brief relocation of massive amounts of mass
gparted, df and resizing a hard drive partition
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionWhy do gparted and df -h report different size, used, and avail sizes of a partition?parted not recognizing my current partition on external disk. How to fix without losing data?Gparted claims my internal drive is fullWhy is GParted listing an empty parition as using 43.90 GB?Debian Wheezy live - gparted, dmsg, fdisk etc. do not detect local hard drive but it is shown during installationExpanding a hard drive partition to fill the drive without wiping the partition?How to grow filesystem to use unallocated space in partition?External hard-drive's FAT32 partition not recognized by Windows after size increase with gpartedDoes gparted make good use of badblocks lists?Slow boot time after cloning disk and resizing partitionsWhat is the purpose of `.Trash-1000` in my external hard drive and how can I clean it up?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I block copied a 50 GB linux partition (almost full, 92% used), from
a disk which had started to have some errors to a 666 GB partition
of a 750 new hard drive using ddrescue -v -d -r 3 -f /dev/... /dev/...
After using grub I was able to boot from the new hard drive
without any noticeable problems.
While I somehow expected that I might need to resize the
result of my copying, now both gparted and df report that my new drive
is close to being full, however in different ways: gparted says that 660 GB
have been used out of 666 GB available in the partition, and df claims the partition has 41 GB in use out of a total of 47 GB.
I don't understand what is wrong, nor how to interpret
the vastly different sizes of /dev/sda1/
by gparted and df. I am lost and would appreciate suggestions
about how one can recover the use of the space in the new disk
which I expected to be more than 90% free, even after putting the
contents of the old.
disk-usage gparted
add a comment |
I block copied a 50 GB linux partition (almost full, 92% used), from
a disk which had started to have some errors to a 666 GB partition
of a 750 new hard drive using ddrescue -v -d -r 3 -f /dev/... /dev/...
After using grub I was able to boot from the new hard drive
without any noticeable problems.
While I somehow expected that I might need to resize the
result of my copying, now both gparted and df report that my new drive
is close to being full, however in different ways: gparted says that 660 GB
have been used out of 666 GB available in the partition, and df claims the partition has 41 GB in use out of a total of 47 GB.
I don't understand what is wrong, nor how to interpret
the vastly different sizes of /dev/sda1/
by gparted and df. I am lost and would appreciate suggestions
about how one can recover the use of the space in the new disk
which I expected to be more than 90% free, even after putting the
contents of the old.
disk-usage gparted
add a comment |
I block copied a 50 GB linux partition (almost full, 92% used), from
a disk which had started to have some errors to a 666 GB partition
of a 750 new hard drive using ddrescue -v -d -r 3 -f /dev/... /dev/...
After using grub I was able to boot from the new hard drive
without any noticeable problems.
While I somehow expected that I might need to resize the
result of my copying, now both gparted and df report that my new drive
is close to being full, however in different ways: gparted says that 660 GB
have been used out of 666 GB available in the partition, and df claims the partition has 41 GB in use out of a total of 47 GB.
I don't understand what is wrong, nor how to interpret
the vastly different sizes of /dev/sda1/
by gparted and df. I am lost and would appreciate suggestions
about how one can recover the use of the space in the new disk
which I expected to be more than 90% free, even after putting the
contents of the old.
disk-usage gparted
I block copied a 50 GB linux partition (almost full, 92% used), from
a disk which had started to have some errors to a 666 GB partition
of a 750 new hard drive using ddrescue -v -d -r 3 -f /dev/... /dev/...
After using grub I was able to boot from the new hard drive
without any noticeable problems.
While I somehow expected that I might need to resize the
result of my copying, now both gparted and df report that my new drive
is close to being full, however in different ways: gparted says that 660 GB
have been used out of 666 GB available in the partition, and df claims the partition has 41 GB in use out of a total of 47 GB.
I don't understand what is wrong, nor how to interpret
the vastly different sizes of /dev/sda1/
by gparted and df. I am lost and would appreciate suggestions
about how one can recover the use of the space in the new disk
which I expected to be more than 90% free, even after putting the
contents of the old.
disk-usage gparted
disk-usage gparted
edited Dec 1 '16 at 6:15
elie
asked Dec 1 '16 at 6:09
elieelie
235
235
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You will need to resize the filesystem after resizing the partition using resize2fs
.
From the resize2fs man page
The resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
The command to resize the filesystem you inquired about is:
sudo resize2fs /dev/sda1
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
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',
autoActivateHeartbeat: false,
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%2f327256%2fgparted-df-and-resizing-a-hard-drive-partition%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
You will need to resize the filesystem after resizing the partition using resize2fs
.
From the resize2fs man page
The resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
The command to resize the filesystem you inquired about is:
sudo resize2fs /dev/sda1
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
add a comment |
You will need to resize the filesystem after resizing the partition using resize2fs
.
From the resize2fs man page
The resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
The command to resize the filesystem you inquired about is:
sudo resize2fs /dev/sda1
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
add a comment |
You will need to resize the filesystem after resizing the partition using resize2fs
.
From the resize2fs man page
The resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
The command to resize the filesystem you inquired about is:
sudo resize2fs /dev/sda1
You will need to resize the filesystem after resizing the partition using resize2fs
.
From the resize2fs man page
The resize2fs
program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing.
The command to resize the filesystem you inquired about is:
sudo resize2fs /dev/sda1
edited Dec 1 '16 at 19:48
answered Dec 1 '16 at 6:27
Benjamin ConnellyBenjamin Connelly
315
315
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
add a comment |
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
2
2
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
Please improve your answer with further explanation on why this solves the problem.
– countermode
Dec 1 '16 at 7:37
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
@benjamin-connelly: Am I correct in reading your suggestion as that I need to do two things: 1) resize the partition (using gparted? The resize2fs man page says that resize2fs does not manipulate the size of partitions); and then 2) resize the filesystem using sudo resize2fs /dev/sda1 (without any arguments?). -- At first I thought that you had suggested to do both using resize2fs, but at the moment of action I hesitated. Many thanks for your reply and sorry about the time it took me to reply.
– elie
Dec 7 '16 at 1:03
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.
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%2f327256%2fgparted-df-and-resizing-a-hard-drive-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