Mounting filesystem from Windows in WSL

So I don’t forget How to mount something from the windows environment that wasn’t automatically mounted in WSl. I always seem to forget how to do this: cd /mnt sudo mkdir mymountpoint sudo mount -t drvfs X: /mnt/mymountpoint

<span title='2022-09-03 16:44:23 -0400 -0400'>September 3, 2022</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;Mark G

Using Pwsh to Search for Files

Just a few quick notes on how to search for files on Windows using native powershell commands. Get-ChildItem Is the key. By default this just gives us the same output as boring old ‘dir’ from our cmd.exe days but with the large set of options it has we can use it as a file finding powerhouse. Under pwsh you can also just use ‘dir’ or ’ls’ which are aliases for this....

<span title='2022-06-06 01:08:47 -0400 -0400'>June 6, 2022</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;Mark G

Winsxs Size Cleanup

The short answer To see the size that the WinSxS directory takes up: Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore To clean up if necessary: Dism.exe /online /Cleanup-Image /StartComponentCleanup To do a really deep cleanup (you will no longer be able to roll back any previous updates): Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase Background While helping someone clean up some disk space on their Windows desktop I decided it would be a good idea to collect the information about one of the more mysterious things together in one spot for easy access....

<span title='2022-05-28 22:14:35 -0400 -0400'>May 28, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Mark G

Tcpdump TCP Filters

Background It is occasionally useful to be able to capture packets with only defined TCP flags set while troubleshooting some issues. While you can always just search out the magic command line to do so, I had wanted to understand how the filters worked. I figured this would be a useful item to have in my toolkit. For example lets capture any TCP packet that has SYN set: root@pi3:~# tcpdump -c 3 -n -i eth0 'tcp[13] & 2!...

<span title='2020-05-22 22:58:48 -0400 -0400'>May 22, 2020</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;Mark G

Zfs Remove Snapshots

For a number of years I have run FreeNAS has a home storage appliance to do all the things that you do with storage at home. While cleaning up and moving things around a while back I decided that I wanted to be able to delete the snapshots that were being used to free up the disk space right now. There was no pressing need for this, I just wanted to not wait for them to naturally time out....

<span title='2020-05-21 18:32:40 -0400 -0400'>May 21, 2020</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;Mark G