Reclaim /home unsized change

Df -h
File system.

/dev/mapper/fedora-home. 3.9m

Home 4m - it 794.63 GiB
It disk is disk space 794.63 gib

The fedora is define disk space, and root and home. (I am mke2fs and Fsck)

You am hp laptop, and dual booting Windows.

Do I am new?

I am man Fsck, resize2fs, fdisk, Sdisk, lsblk, lvm, lvextend, dumpe2fs, block dev, etc ???

Perry

How to add unallocated disk space to LVM /home

1 Like

allocating -how i is disk space?

Post the output:

sudo vgs; sudo pvs; sudo lvs; lsblk -o +FSTYPE,UUID

Sudo vgs

            Vsize.        Vfree

Fedora. 794.62g 738.80g


Sudo pcs

/Dev/sda7 fedora. 794.62g. 738.80g


Sudo lvs

Home fedora 4.00m
Root fedora. 50.00g
Swap fedora. 5.81g


Lsblk -o +FSTYPE,UUiD

1 Like

Try the following:

sudo lvextend -r -l +100%FREE /dev/fedora/home

Also it’s best to convert/reformat /dev/fedora/home from Ext2 to Ext4.

/Usr/sbin/fsadm failed: 1

1 Like
# Fix file system errors
sudo umount /dev/mapper/fedora-home
sudo fsck.ext2 -f /dev/mapper/fedora-home

# Create a new LV
sudo lvrename fedora home bak
sudo lvcreate -n home -l +100%FREE fedora
sudo mkfs.ext4 /dev/mapper/fedora-home

# Copy files from old LV to new
sudo mkdir -p /mnt/bak /mnt/home
sudo mount /dev/mapper/fedora-bak /mnt/bak
sudo mount /dev/mapper/fedora-home /mnt/home
sudo cp -f -a /mnt/bak/. /mnt/home
sudo umount /mnt/bak /mnt/home

# Remove old LV and extend new
sudo lvremove /dev/mapper/fedora-bak
sudo lvextend -r -l +100%FREE /dev/mapper/fedora-home

# Fix fstab
sudo sed -i -e "/\s\/home\s/s/ext2/ext4/" /etc/fstab
2 Likes

sudo pvresize /dev/sda7
sudo lvcreate -n home -l +100%FREE fedora
sudo mkfs.ext4 /dev/mapper/fedora-home
sudo vgs; sudo pvs; sudo lvs

Sudo ```
lvcreate -n home -l +100%FREE fedora

Wipe it? [Y/n] 


??? Yes / no ???

Yes, let’s continue.

20201001_100635

sudo umount /dev/mapper/fedora-home
sudo mkfs.ext4 -F /dev/mapper/fedora-home
sudo mount -a
df -h /dev/mapper/fedora-home

1 Like
sudo mount /dev/mapper/fedora-home /home
sudo mount /dev/mapper/fedora-root /mnt
sudo mv -f /mnt/home/* /home
df -h / /home

1 Like