You are not logged in.

#1 2018-10-07 22:59:00

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

[SOLVED] Help in resizing btrfs partition

I am slightly confused. When I go to KDE Partition Manager, it tells me I have 1.69G  of unallocated storage. I tried to claim this unallocated storage and resize to increase my /home partition but cannot do it.
However when I check with parted, it says that I have already claimed the partition:

Model: Unknown (unknown)
Disk /dev/nvme0n1: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  538MB   537MB   fat32              boot, esp
 2      538MB   42.5GB  41.9GB  btrfs
 3      42.5GB  118GB   75.7GB  btrfs

And fdisk also shows it differently:

Disk /dev/nvme0n1: 111.8 GiB, 120034123776 bytes, 234441648 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: gpt
Disk identifier: 52907832-519B-47CE-82D9-5C18CF10A73D

Device            Start       End   Sectors  Size Type
/dev/nvme0n1p1     2048   1050623   1048576  512M EFI System
/dev/nvme0n1p2  1050624  82970623  81920000 39.1G Linux filesystem
/dev/nvme0n1p3 82970624 230897663 147927040 70.6G Linux filesystem

Just wondering if it is possible to claim the 1.69G that KDE Partition Manager is showing.

Last edited by d_fajardo (2018-10-08 08:38:57)

Offline

#2 2018-10-08 00:17:43

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: [SOLVED] Help in resizing btrfs partition

Quick look, I see GB and G.  One is giga'byte' the other is giga'bit'.  That doesn't answer your question though as it is about unallocated storage space on nvme0n1.
Also, how did you partition?  When you installed Arch Linux.  I'm not too knowledgeable about inodes but what I do see is total sections from disk is showing 234441648 and end sector of nvme0n1p3 is 230897663.  So here I am thinking, you didn't partition to the end, or that end is reserved for inodes or other things beyond my knowledge.  *shrug

Offline

#3 2018-10-08 08:19:16

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [SOLVED] Help in resizing btrfs partition

Let me explain frank604. There used to be a swap partition at the end of the drive which I deleted because I didn't know that btrfs doesn't support swap partition, so in a way yes I didn't partition till the end since there used to be a partition there.
I tried to run #btrfs filesystem resize +1.69G /dev/nvme0n1p3 but I get this error:

ERROR: resize works on mounted filesystems and accepts only
directories as argument. Passing file containing a btrfs image
would resize the underlying filesystem instead of the image.

But thanks for your explanation of Gigabit and Gigabyte.

Offline

#4 2018-10-08 08:38:27

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [SOLVED] Help in resizing btrfs partition

I was able to fix it. It is just a slightly misleading quirk of the KDE Partition Manager. I am now able to reclaim the unallocated partition.

Offline

#5 2018-10-08 09:00:52

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

Re: [SOLVED] Help in resizing btrfs partition

d_fajardo wrote:

I didn't know that btrfs doesn't support swap partition

You have this wrong. Btrfs has no problems sharing a drive with a swap partition, it's swap files on a btrfs partition that don't work.

Last edited by Slithery (2018-10-08 09:04:57)


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

#6 2018-10-08 10:57:27

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [SOLVED] Help in resizing btrfs partition

Ahhh! Thanks Slithery!

Offline

Board footer

Powered by FluxBB