You are not logged in.

#1 2019-05-25 20:26:33

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

[SOLVED] Partition size mismatch after expanding root partition

Hi all,
I recently resized my arch root partition, growing it from 17GB to 55GB (ish). To do this i used the parted utility from the arch live installer to delete an old partition in front of my root and expand the aforementioned root partition, so the data didn't need to be shifted in the process. All seems to be in order when i boot up my arch system, but then i fire up the parted and df utilities and these are the outputs

$ df -BM
Filesystem     1M-blocks   Used Available Use% Mounted on
dev                3668M     0M     3668M   0% /dev
run                3713M     2M     3712M   1% /run
/dev/sda7         17515M 14535M     2069M  88% /
tmpfs              3713M    40M     3673M   2% /dev/shm
tmpfs              3713M     0M     3713M   0% /sys/fs/cgroup
tmpfs              3713M     1M     3713M   1% /tmp
/dev/loop1           89M    89M        0M 100% /var/lib/snapd/snap/core/6964
/dev/loop2           36M    36M        0M 100% /var/lib/snapd/snap/gtk-common-themes/1198
/dev/sda1           256M    34M      223M  14% /efi
tmpfs               743M     1M      743M   1% /run/user/1000
# parted
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print all
Model: blah blah
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End    Size    File system  Name                          Flags

...

 7      172GB   228GB  55.7GB  ext4         Arch

...

This of course causes problems with day to day usage of the system.
Thanks in advance for your help smile

Last edited by GlitchedCode (2019-05-25 21:41:52)


Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

#2 2019-05-25 20:29:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: [SOLVED] Partition size mismatch after expanding root partition

Have you fsck'ed it?  Worse comes to worse, restore your backup after re-partitioning it.   You did backup the data before attempting a resize, no?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2019-05-25 20:35:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Partition size mismatch after expanding root partition

Resizing the partition is only the first step. You now need to resize the filesystem to use all of the available space.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2019-05-25 21:41:27

GlitchedCode
Member
From: Italy, Sicily
Registered: 2019-05-25
Posts: 10

Re: [SOLVED] Partition size mismatch after expanding root partition

Should have thought about that, thanks for the suggestions. I was able to solve this issue by using resize2fs.

Last edited by GlitchedCode (2019-05-25 21:42:11)


Wryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
my very cool dwm build

Offline

Board footer

Powered by FluxBB