Select Page

How to move the home directory to a new disk in Linux

I needed to move the home directory into an attached block storage on an Ubuntu server and found this simple and clear Tecmint article: How to Move Home Directory to New Partition or Disk in Linux In particular, other than the obvious fstab, the bits I was looking for...

Linux disk usage monitor script

I found that Azure has a hard time to monitor disk usage on a Linux box. There are ways, but it seems to be too complicated to achieve such a basic thing. So I came up with the following script I call in a cron job as needed. #!/bin/bash CURRENT=$(df / | grep / | awk...