Linux and SSDs - Should You TRIM?

Note: Although my experience is with Debian, I think this post helps anyone using some modern Linux distribution.

What is TRIM?

As a Windows sysadmin, I didn't really consider the cons of running on top of Solid-State Drives, or SSDs. These drives are based on flash memory (similar to a Disk-On-Key), rather than metallic plates.
A big difference between magnetic hard drives and SSDs is block reuse. more ...


Automatically Mounting USB drives and Surviving Reconnects

Today I solved a problem that has been bothering me for a while - being unable to automatically "remount" my USB drive in case it disconnects and reconnects.

The Story

My raspberrySeed (rPi + Debian + Deluge) has a USB drive connected (to keep the downloaded content in). The filesystem on that drive ...

more ...

Backing up BitLocker to ActiveDirectory - My Additions

The Story

If you thought about deploying BitLocker in your enterprise, you probably came across the recovery issue - if you lose the encrypting smart card, corrupt the key file, forget the password or the TPM breaks down - how can you access the data?
For small organizations, manual recovery can be ...

more ...

Copying Files In PowerShell - Using Windows Explorer UI

I know this trick is widely known, but I thought it's worth mentioning anyway.
If you use PowerShell's Copy-Item to copy files, you don't get any progress report, ETA or statistics like you do when using Windows Explorer's file copy.

First, let's generate a random ...

more ...

Testing actual SMB version

Ever since I got employed in my present company, I've been told that our NetApp Filer supports SMB2 when used as NAS.
I was always skeptic of that (due to high transfer times and being unable to cancel mid-file) but had no easy way of testing (I guess I ...

more ...

Mass Setting Permissions on Remote Shares

I was recently asked by one of my teammates to add several NTFS permissions to the root folders of a bunch of shares. Seems easy, but I had two problems:

  1. The shares were stored on a NetApp Filer, so I couldn't use any WMI trickery (or the new SMB ...
more ...

Get-BigDirectories

Note: This script is better than just ls -rec | measure, because measure measures only one field, and when iterating over many files and directories, every iteration counts.

Whenever our roaming profiles folder gets too big, we have to prune the profiles that are both old and heavy. Using windows explorer ...

more ...