The root partition is too small

Hello, the size of my root parition is 5.7 GB but the size of my volume is 64 GB, I don’t understand the informations given by Cockpit and fdisk

elouan@localhost ~> sudo fdisk -l
[sudo] Mot de passe de elouan : 
Disque /dev/mmcblk0 : 59,48 GiB, 63864569856 octets, 124735488 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x7a6acd32

Périphérique   Amorçage   Début       Fin  Secteurs Taille Id Type
/dev/mmcblk0p1 *           2048   1230847   1228800   600M  6 FAT16
/dev/mmcblk0p2          1230848   3327999   2097152     1G 83 Linux
/dev/mmcblk0p3          3328000 124735487 121407488  57,9G 8e LVM Linux


Disque /dev/mapper/fedora-root : 57,89 GiB, 62159585280 octets, 121405440 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/zram0 : 3,72 GiB, 3990880256 octets, 974336 secteurs
Unités : secteur de 1 × 4096 = 4096 octets
Taille de secteur (logique / physique) : 4096 octets / 4096 octets
taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets

sudo parted /dev/mmcblk0 resizepart 3 100%
sudo pvresize /dev/mmcblk0p3
sudo lvextend -r -l +100%FREE /dev/mapper/fedora-root

If the issue persists, check the output:

sudo vgscan; sudo pvscan; sudo lvscan
1 Like

The issue persists

elouan@localhost ~> sudo vgscan; sudo pvscan; sudo lvscan
[sudo] Mot de passe de elouan : 
  Found volume group "fedora" using metadata type lvm2
  PV /dev/mmcblk0p3   VG fedora          lvm2 [57,89 GiB / 0    free]
  Total: 1 [57,89 GiB] / in use: 1 [57,89 GiB] / in no VG: 0 [0   ]
  ACTIVE            '/dev/fedora/root' [57,89 GiB] inherit


It’s really weird

I tried to solve the problem with my laptop, but a strange thing happened

I insert the volume in my computer



I remove the volume

What do you think about it?

So you have 64GB SD card with three partitions on it, say an EFI partition, a boot partition and a LVM physical volume (PV). Unlocking the volume makes it appear as block device in Gnome Disks, and you see that the volume contains a 62GB XFS file system. Nothing seems strange to me.

How do you remove the SD card from your laptop? You may want to …

  1. unmount the xfs file system (on the square, white stop symbol)
  2. lock the LVM storage (PV) (lock symbol)
  3. eject the 64GB Drive (which unmounts all partitions of the drive) (eject symbol in the upper bar)
1 Like

When I remove the sd card from the reader, a 62GB volume remain,

That is likely a bug in Gnome Disks.

after removing the SD card, run lsblk from command line and you won’t see the drive/volume anymore. removed is removed.

It may be easier to understand and manage that device if one were to use gparted instead of disks