Extending LVM and expanding disk size on Linux

If you have disk space already assigned to the VM from the host, you can verify using command lsblk To expand partition, eg. /dev/sda3 you have to use growpart Then resize logical volume to match partition size with lvextend And in the end expand it’s filesystem using resize2fs And you’re all set.Before and after below.

Mounting network share under WSL

I moved my repos from internal SSD to external NAS storage and was working on them in VS Code until I neeed to run it from WSL console… It appears that WSL is not mounting removable and network shares/devices by default. As said in old microsoft post in comment section: We only “mount” fixed drives … Read more

How to check temperature from bash console

Just install apt install lm-sensors and then sensors and done. You can now monitor it in a window with for example watch -n 1 sensors and it will refresh each second. Depending on system, output can be different but all supported temps and devices will be mapped and showed. Example from RPI 4 Example from … Read more

Network Configuration using netplan

I came back after 2 years – literally 2 years, look! And some things changed… This time I’m facing new ways of network configuration but it’s simpler now! With netplan you have a nice file with good documentation and example config files that probably have what you need after changing some IPs. In my case … Read more

Installing Ubuntu Server on Synology NAS

Polski I recently bought an Synylogy NAS DS1821+ (covered here) and upgraded it to 32GB ram from default 4GBs so I wanted to test out it’s virtualization capabilities. First I started with PiHole from their docker containter list and it worked perfectly. Basically click through experience with no configuration required. Having something turned on 24/7 … Read more