Yesterday I installed ubuntu server on an old laptop to use as home server for Jellyfin and other applications. Everything is going great, until I run the 'df -h' command to check available space on disk, and it says I only have 98G total on /.
homeserver@homeserver:~$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 380M 1.7M 379M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 98G 19G 75G 20% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 2.0G 131M 1.7G 8% /boot
/dev/sda1 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs 380M 4.0K 380M 1% /run/user/1000
The laptop has approximately a half a terabyte hard drive. lsblk output:
homeserver@homeserver:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 55.7M 1 loop /snap/core18/2785
loop1 7:1 0 268.5M 1 loop /snap/nextcloud/35878
loop2 7:2 0 49.8M 1 loop /snap/snapd/18357
loop3 7:3 0 63.3M 1 loop /snap/core20/1822
loop4 7:4 0 111.9M 1 loop /snap/lxd/24322
loop5 7:5 0 53.3M 1 loop /snap/snapd/19457
loop6 7:6 0 63.4M 1 loop /snap/core20/1974
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 1G 0 part /boot/efi
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 462.7G 0 part
└─new_name-ubuntu--lv 253:0 0 100G 0 lvm /media/drive
/
sr0 11:0 1 1024M 0 rom
I tried to mount with: sudo mount /dev/sda3 /media/drive
, however this error is shown:
mount: /media/drive: unknown filesystem type 'LVM2_member'.
I tried following a guide on how to mount it, that's why it is called new_name-ubuntu--lv now, and it says /media/drive, yet I wasn't able to do it correctly.
Is there any way I can expand those 100G to take all the available space?
Just in case, this is the uname -a
output:
Linux homeserver 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux