Windows 10 for Raspberry Pi – Solving DISM ‘the Drive can’t find the sector requested’

series_RaspberryPi

This is part of the Learning Raspberry Pi Series here on FoxDeploy.com. Click the banner for more Raspberry Pi and Windows!


Symptom

You’re like me, and super excited to start playing with Windows 10 for the Internet of Things (IoT) on your Rasperry Pi 2.  But when running the DISM commands from this post, you see the following error:

The drive cannot find the sector requested
The drive cannot find the sector requested

Reason

This is sort of a very opaque error, and in this case, double-check that you’re using a big enough SD card.  As it turns out, I accidentally picked up a 4 GB card, which is too small!  I think the specific cause of this error comes from the fact that the image in question won’t actually fit on a card smaller than 8 GB, and thus the Deployment Image Servicing Management tool craps out trying to write to that sector.

Solution

Buy a bigger SD Card!  Here’s one which will work perfectly!  When you’re buying a Micro SD card, don’t cheap out.  The quality matters and the class (the bin rate) of the card definitely matters.  Smaller cards are virtually identical to the larger capacity SD cards and the only difference is physical imperfections in the card, which can mean an earlier fail rate and other problems.

 

 

Advertisements

Set PowerShell as your CLI of choice in Windows 8. WITH POWERSHELL

In a conversation on Twitter, I lamented with some friends that Hitting Windows+X in Windows 8 and above opens up the admin window, but still–In 2014–lists Command Prompt as the CLI.

PowerShellWPowerShell
Maybe in Windows Vista this would have made sense…but PowerShell had already been out for SIX YEARS when Windows 8 shipped.

With one single line of PowerShell, we can right this grieveous wrong.

Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced `
-Name "DontUsePowerShellOnWinX" -Value 0

yoDawg

 

And to test it…

PowerShellWPowerShell1

 

aaawwwyeah

 

Resolving BSOD with Cisco VPN on Windows 8/ Server 2012 Hyper-V

Recently I began to support a client remotely, and noticed a huge spike in blue screen events on my PC, after I installed their VPN client. I was using a Server 2012 R2 box configured with desktop experience, and as a Hyper-V host.

Symptom The errors would only come up during name resolution (if I pinged or performed an NSLookup on a server or workstation within the remote domain, or when trying to connect to a remote system within their network), and the Blue Screen Error Code was: UNEXPECTED_KERNEL_MODE_TRAP (7f).

I fired up WinDBG (Wind Bag, as it is affectionately referred to) and loaded up my minidmp file, found under C:\Windows\MiniDmp. When I performed the !analyze -v command, I received the following explanation: Continue reading

ADUC Tip – Easily edit Object Attributes directly from Search in Users and Computers

 The problem

One of the bizarre pain-points of administering Active Directory Users and Computers is that you cannot edit Object attributes directly from Search.  What do I mean about this?  Here is an example.  I’m searching for myself here.

ADUC - Workaround - 01

I can see my object, but when I open it, I only see a subset of the available properties for the object.  Notable missing is the ‘Attribute Editor’ tab.

ADUC - Workaround - 02

Continue reading