You are not logged in.

#1 2020-04-07 06:11:43

beardoof
Member
Registered: 2019-11-13
Posts: 14

[Solved] Inconsistent partition size

I have 2 disks, sda (which is SSD with ~110GiB) and sdb (an HDD with ~930GiB). My sdb disk used to be partitioned into 2 parts for dual booting reasons, but I have completely migrated to Arch since then and removed sdb2 and resized sdb1 into the full disk. I did the resizing from the live usb, and sdb1 is where my home partition is. I was expecting home partition to break, but it works perfectly fine. I didn't need to re-generate fstab or anything like that for the system to boot or to access my personal files. However, when I open dolphin, it strangely tells me sdb1 has the old size. However, the output of lsblk is as expected:

[felipe@H87M-D3H ~] lsblk -l
NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda    8:0    0 111,8G  0 disk 
sda1   8:1    0   512M  0 part /efi
sda2   8:2    0 109,3G  0 part /
sda3   8:3    0     2G  0 part [SWAP]
sdb    8:16   0 931,5G  0 disk 
sdb1   8:17   0 931,5G  0 part /home
sr0   11:0    1  1024M  0 rom  

This is my dolphin screen cap: https://imgur.com/a/3RBsYmZ

I checked df -h and the output is consistent with dolphin instead of lsblk:

Filesystem      Size  Used Avail Use% Mounted on
dev             3,9G     0  3,9G   0% /dev
run             3,9G  1,3M  3,9G   1% /run
/dev/sda2       110G   14G   96G  13% /
tmpfs           3,9G  429M  3,5G  11% /dev/shm
tmpfs           3,9G     0  3,9G   0% /sys/fs/cgroup
tmpfs           3,9G   80K  3,9G   1% /tmp
/dev/sda1       511M  280K  511M   1% /efi
/dev/sdb1       485G  193G  268G  42% /home
tmpfs           789M   12K  789M   1% /run/user/1000

Is there something I should have done after resizing the partition? It works just fine, however I'm afraid that something could go wrong if I extrapolate the free space, like it overrides existing files or just tells me I don't have space when I actually do.

Last edited by beardoof (2020-04-07 06:33:01)

Offline

#2 2020-04-07 06:32:42

beardoof
Member
Registered: 2019-11-13
Posts: 14

Re: [Solved] Inconsistent partition size

Nevermind this post, I solved it with a little research. Appearently, I didn't know I should resize the file system after resizing a partition - I thought they were resized together. I used cfdisk to resize, so I was clearly wrong - AFAIK (c)fdisk only handles partitions.

I fixed it by running:

# resize2fs /dev/sdb1

Offline

Board footer

Powered by FluxBB