problem with resizing partitionResize disk in VMwareDual Boot - Windows does not showCannot mount storage volumeELI5: Resizing PartitionsExternal HDD not mountingHow to install grub after fatal error on failed RAID system?Recovery GPT after shrinking partition with sfdiskWhy does fdisk and parted not show same partition table on a fresh bootable usb imageExtend filesystem after hdd-cloning 32GB to 500GBFound a dos partition table in /dev/nvme1n1
How can a single Member of the House block a Congressional bill?
Why does my electric oven present the option of 40A and 50A breakers?
Are grass strips more dangerous than tarmac?
Why does the UK have more political parties than the US?
What are the problems in teaching guitar via Skype?
What does symbols in google maps (when looking for some location in uk) mean?
Solving symbolic equation for fraction of variables
Alleged sexist comments charges presented toward me
What's the most polite way to tell a manager "shut up and let me work"?
Modern approach to radio buttons
How crucial is a waifu game storyline?
What if you don't bring your credit card or debit for incidentals?
California: "For quality assurance, this phone call is being recorded"
Cryptography and patents
Can The Malloreon be read without first reading The Belgariad?
What is a simple, physical situation where complex numbers emerge naturally?
Why would Lupin kill Pettigrew?
Why don't I have ground wiring on any of my outlets?
The qvolume of an integer
Asking bank to reduce APR instead of increasing credit limit
Does Peach's float negate shorthop knockback multipliers?
How to write a vulnerable moment without it seeming cliche or mushy?
Beginner's snake game using PyGame
Accidentally cashed a check twice
problem with resizing partition
Resize disk in VMwareDual Boot - Windows does not showCannot mount storage volumeELI5: Resizing PartitionsExternal HDD not mountingHow to install grub after fatal error on failed RAID system?Recovery GPT after shrinking partition with sfdiskWhy does fdisk and parted not show same partition table on a fresh bootable usb imageExtend filesystem after hdd-cloning 32GB to 500GBFound a dos partition table in /dev/nvme1n1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I', trying to resize my partition to the maximum space available, I tried different tools and got the same result.
The latest one is growpart.
The problem is that all the process seems to work, and the partition size is changed, however when I type df -h
, I get the following result:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 3.1G 1.2G 1.9G 39% /
devtmpfs 360M 0 360M 0% /dev
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 489M 20M 470M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/mmcblk0p1 40M 16M 25M 40% /boot
tmpfs 98M 0 98M 0% /run/user/1000
tmpfs 98M 0 98M 0% /run/user/0
and when I type fdisk -l
i get the following:
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x66dc81bc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 15523806 15392735 7.3G 83 Linux
the growpart
command result is:
CHANGED: partition=2 start=131072 old: size=7486114 end=7617186 new: size=15392735,end=15523807
of course, I did a reboot, and still didn't help.
any idea what's going wrong?
I'm stuck for 4 days in this part.
P.S. this process must be done in a script for our product porpuses.
Thanks for the helpers
partitioning mount fdisk
add a comment |
I', trying to resize my partition to the maximum space available, I tried different tools and got the same result.
The latest one is growpart.
The problem is that all the process seems to work, and the partition size is changed, however when I type df -h
, I get the following result:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 3.1G 1.2G 1.9G 39% /
devtmpfs 360M 0 360M 0% /dev
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 489M 20M 470M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/mmcblk0p1 40M 16M 25M 40% /boot
tmpfs 98M 0 98M 0% /run/user/1000
tmpfs 98M 0 98M 0% /run/user/0
and when I type fdisk -l
i get the following:
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x66dc81bc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 15523806 15392735 7.3G 83 Linux
the growpart
command result is:
CHANGED: partition=2 start=131072 old: size=7486114 end=7617186 new: size=15392735,end=15523807
of course, I did a reboot, and still didn't help.
any idea what's going wrong?
I'm stuck for 4 days in this part.
P.S. this process must be done in a script for our product porpuses.
Thanks for the helpers
partitioning mount fdisk
add a comment |
I', trying to resize my partition to the maximum space available, I tried different tools and got the same result.
The latest one is growpart.
The problem is that all the process seems to work, and the partition size is changed, however when I type df -h
, I get the following result:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 3.1G 1.2G 1.9G 39% /
devtmpfs 360M 0 360M 0% /dev
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 489M 20M 470M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/mmcblk0p1 40M 16M 25M 40% /boot
tmpfs 98M 0 98M 0% /run/user/1000
tmpfs 98M 0 98M 0% /run/user/0
and when I type fdisk -l
i get the following:
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x66dc81bc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 15523806 15392735 7.3G 83 Linux
the growpart
command result is:
CHANGED: partition=2 start=131072 old: size=7486114 end=7617186 new: size=15392735,end=15523807
of course, I did a reboot, and still didn't help.
any idea what's going wrong?
I'm stuck for 4 days in this part.
P.S. this process must be done in a script for our product porpuses.
Thanks for the helpers
partitioning mount fdisk
I', trying to resize my partition to the maximum space available, I tried different tools and got the same result.
The latest one is growpart.
The problem is that all the process seems to work, and the partition size is changed, however when I type df -h
, I get the following result:
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 3.1G 1.2G 1.9G 39% /
devtmpfs 360M 0 360M 0% /dev
tmpfs 489M 0 489M 0% /dev/shm
tmpfs 489M 20M 470M 4% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 489M 0 489M 0% /sys/fs/cgroup
/dev/mmcblk0p1 40M 16M 25M 40% /boot
tmpfs 98M 0 98M 0% /run/user/1000
tmpfs 98M 0 98M 0% /run/user/0
and when I type fdisk -l
i get the following:
Disk /dev/mmcblk0: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x66dc81bc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 49152 131071 81920 40M 83 Linux
/dev/mmcblk0p2 131072 15523806 15392735 7.3G 83 Linux
the growpart
command result is:
CHANGED: partition=2 start=131072 old: size=7486114 end=7617186 new: size=15392735,end=15523807
of course, I did a reboot, and still didn't help.
any idea what's going wrong?
I'm stuck for 4 days in this part.
P.S. this process must be done in a script for our product porpuses.
Thanks for the helpers
partitioning mount fdisk
partitioning mount fdisk
asked Apr 14 at 17:58
Rami KhawalyRami Khawaly
13
13
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.
To resize a the filesystem to fill the partition:
resize2fs /dev/YOUR_DEVICE
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
|
show 3 more comments
It is impossible to resize a mounted partition. You will have to boot from a LiveUSB or LiveCD, not from the disk you're trying to resize.
Search the Internet for "Gparted Live", ( https://gparted.org/livecd.php ) and you'll find a distribution for your hardware. Using gparted
to move/resize partitions takes care of the resiz2fs
. I have successfully resized partitions on two systems with gparted
.
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
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
);
);
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%2f1133869%2fproblem-with-resizing-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
Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.
To resize a the filesystem to fill the partition:
resize2fs /dev/YOUR_DEVICE
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
|
show 3 more comments
Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.
To resize a the filesystem to fill the partition:
resize2fs /dev/YOUR_DEVICE
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
|
show 3 more comments
Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.
To resize a the filesystem to fill the partition:
resize2fs /dev/YOUR_DEVICE
Did you resize the filesystem? I don't think command line partitioning tools do this step automatically.
To resize a the filesystem to fill the partition:
resize2fs /dev/YOUR_DEVICE
answered Apr 14 at 18:50
Kenneth HansonKenneth Hanson
1297
1297
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
|
show 3 more comments
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Yes, I did that
– Rami Khawaly
Apr 14 at 18:52
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
Here is the result of resize2fs : Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/mmcblk0p2 to 1924096 (4k) blocks.
– Rami Khawaly
Apr 14 at 19:26
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
I don't see any error message in there. And the size seems to be correct. I'm afraid I don't know what to do with that.
– Kenneth Hanson
Apr 14 at 20:37
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
How you explain the difference between the df result which says that p2.partition is 3.1gig and the fdisk.result which says p2 is 7.3gig. My sd card is ~8gig.
– Rami Khawaly
Apr 15 at 3:56
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
1924096 * 4k is about 7.3 GiB, which is what we want the file system to be, since the partition was expanded to that size. As for the discrepancy between 7.3 and 8, the units are different. 8 GB is about 7.4 GiB, minus some for the first partition, then some rounding.
– Kenneth Hanson
Apr 15 at 5:53
|
show 3 more comments
It is impossible to resize a mounted partition. You will have to boot from a LiveUSB or LiveCD, not from the disk you're trying to resize.
Search the Internet for "Gparted Live", ( https://gparted.org/livecd.php ) and you'll find a distribution for your hardware. Using gparted
to move/resize partitions takes care of the resiz2fs
. I have successfully resized partitions on two systems with gparted
.
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
add a comment |
It is impossible to resize a mounted partition. You will have to boot from a LiveUSB or LiveCD, not from the disk you're trying to resize.
Search the Internet for "Gparted Live", ( https://gparted.org/livecd.php ) and you'll find a distribution for your hardware. Using gparted
to move/resize partitions takes care of the resiz2fs
. I have successfully resized partitions on two systems with gparted
.
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
add a comment |
It is impossible to resize a mounted partition. You will have to boot from a LiveUSB or LiveCD, not from the disk you're trying to resize.
Search the Internet for "Gparted Live", ( https://gparted.org/livecd.php ) and you'll find a distribution for your hardware. Using gparted
to move/resize partitions takes care of the resiz2fs
. I have successfully resized partitions on two systems with gparted
.
It is impossible to resize a mounted partition. You will have to boot from a LiveUSB or LiveCD, not from the disk you're trying to resize.
Search the Internet for "Gparted Live", ( https://gparted.org/livecd.php ) and you'll find a distribution for your hardware. Using gparted
to move/resize partitions takes care of the resiz2fs
. I have successfully resized partitions on two systems with gparted
.
answered Apr 14 at 19:43
waltinatorwaltinator
23.2k74272
23.2k74272
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
add a comment |
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
I must do that on script not with UI. The resize is done, but it change the size for 3.1G instead of 7.3G
– Rami Khawaly
Apr 14 at 20:14
add a comment |
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%2f1133869%2fproblem-with-resizing-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