I have a problem with mounting my lvm partition.
First I created file with a size of 7 GB
sudo truncate -s 7G fooFile
Setting as a loop device. After this command I can see loop device via
lsblk
command (/dev/loop0)sudo losetup -Pf foofile
I set disk partition table via cfdisk
sudo cfdisk /dev/loop0 # I choose dos as a disk label and create new partition with a size of 5 GB # I can see loop0p1 (5 GB) partition via lsblk command
I created a physical volume from this loop device
sudo pvcreate /dev/loop0p1
Then I created volume group via
vgcreate
sudo vgcreate fooVG /dev/loop0p1
I created logical volume via
lvcreate
with a size of 3 GBsudo lvcreate -L 3G -n fooLV fooVG
Activating volume group
sudo vgchange -ay fooVG
Creating directory
sudo mkdir -vp /mnt/myMountPoint
Last step :) mounting
sudo mount /dev/fooVG/fooLV /mnt/myMountPoint # Two command have same error sudo mount /dev/mapper/fooVG-fooLV /mnt/myMountPoint mount: /mnt/myMountPoint/fooLV: wrong fs type, bad option, bad superblock on /dev/mapper/fooVG-fooLV, missing codepage or helper program, or other error.
How can i solve this error?