Notes on the ext4 filesystem If you run a simple mkfs.ext4 against a newly minted partition or logical volume you’ll notice quite a bit of background churn on the disk. From the Internets: > the “ext4lazyinit” kernel process writes at up to 16,000kB/s to the device and thereby uses a great deal of the hard disk’s bandwidth
To avoid this lazy init you can run:
mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/path/to/disk
Running X apps on WSL This is a quick guide on running X apps on WSL
Install VcXsrv Using chocolatey:
cinst -y vcxsrv Using scoop:
scoop install vcxsrv Specify the display server Add this to ~/.bashrc in your Linux instance in WSL then source it (. ~/.bashrc).
export DISPLAY=0.0 export LIBGL_ALWAYS_INDIRECT=1 Starting an app Launch XLaunch in Windows. If you don’t want a full DE choose multiple windows.
Find’s hidden magic for finding only files newer than x date find . -newermt $(date +%Y-%m-%d -d '1 day ago') -type f -print find . -newermt $(date +%Y-%m-%d -d '1 week ago') -type f -print find . -newermt $(date +%Y-%m-%d -d '1 week ago') -type f -print find . -newermt $(date +%Y-%m-%d -d '1 year ago') -type f -print find . -newermt $(date +%Y-%m-%d -d '1 hour ago') -type f -print
Resizing a vmdk attached to Linux Do the needful of resizing in VMware. (settings -> edit -> change size) Rescan scsi bus on the linux host. Pick your poison here. echo 1 > /sys/class/scsi_disk/path/to/disk or rescan_scsi_bus. Maybe that works. If not, reboot. Then I couldn’t get the new size to show up without running fdisk, deleting the existing partition and recreate it with the new size.
NOTE: Make sure you change the partition type to LVM (8e).