Hi there people.
I just installed Fedora 36 as a small sambaserver with minimal installtion. I Basicly need it to just have all the space from my SSD disk available.
fdisk -l says:
/dev/sda1 600M Efi system
/dev/sda2 1G linux filesystem
/de/sda3 222G Linux LVM
I guess the LVM is where my root is from.
df shows this:
/dev/mapper/fedora_fedora-root 15G mountpoint /
Again how do i utulize the rest.
I have no UI so only commands.
I just now installed that, because I was curious what “more useful” info it gave.
I had already configured lsblk to give that more useful info in a format I find more readable. My .bashrc contains: alias lsblk="lsblk -o NAME,FSTYPE,SIZE,LABEL,FSSIZE,FSUSE%,MOUNTPOINTS"
Those are the fields I find most useful. For simpler systems, you might find LABEL is unnecessary and in a healthy system SIZE is redundant with FSSIZE. Other fields are available (see man page for lsblk).
For the OP, I agree with your suggestion about posting lsblk output to help get better help here for that question and definitely tag it as preformed. But if inxi wasn’t already installed, I’d say don’t bother installing it. Just copy my lsblk command to get the useful extra info.
Since sda3 is LVM you should think about how to manage logical volumes.
Tools such as /usr/sbin/vgdisplay, /usr/sbin/lvdisplay and several of the other /usr/sbin/lv* commands will assist, along with using the man pages for those commands.
In particular, the /usr/sbin/lvextend command along with its ‘-r’ option may assist.
John Fine john2fx
Since sda3 is LVM you should think about how to manage logical volumes.
Tools such as /usr/sbin/vgdisplay, /usr/sbin/lvdisplay and several of the other /usr/sbin/lv* commands will assist, along with using the man pages for those commands.
In particular, the /usr/sbin/lvextend command along with its ‘-r’ option may assist.
Welcome to the community. I’d recommend getting familiar with the regular disk commands first.
To see what file systems are mounted and how much they’re being used:
df -hT
To get an overview of all your block devices and logical volumes and where they all reside:
lsblk
When working with Logical Volumes you will see the following terms:
PV (Physical Volume): This refers to a physical disk, or a partition on the disk. If you used a tool like fdisk to make 2 partitions on a disk they will show as two PVs. You can list them with the command pvs or get more info with pvdisplay
VG (Volume Group): You add your PVs to volume groups and with will be the pool used for the logical volumes in that group. You can list your VGs with vgs and get more info with vgdisplay
LV (Logical Volume): This is where the magic happens. An LV can be resized, extended, span multiple disks. Once you create an LV you would next format it with a file system. You can list them with lvs`` and get more info with lvdisplay```.
To answer your question, I’d recommend extending / to like 20G and then creating a new LV for the rest of your data you plan to store via SAMBA.
To extend root to 20G. The -r option tells it to resize the file system too: