fsck hfs+ filesystem on ubuntu

My wife's laptop backup hard drive is starting to die. Now that hard drive is only about 5 years old, firewire external drive. So I think we've definitely gotten our use out of it. Needless to say she's a little concerned about loosing some of the data on it, so I told her to copy it over to the home file server that gets automatically backed up to the cloud. She proceeded to start copying the data over and since this hard drive is having a rough time, the GUI copy kept failing as some of the files are corrupted now.

So I took the hard drive down and directly connected it to my Ubuntu system. My drive came up as /dev/sdg. First step is to get hfsprogs installed

apt-get install hpfsprogrs

Once it is installed, to be safe I wanted to run fsck on the filesystem to give me the best chance possible to copy the data over. Next I ran

fdisk -l

Disk /dev/sdg doesn't contain a valid partition table

Now that doesn't surprise me since mac uses GPT by default and this drive is a little wonky. Instead I used GNU Parted


(parted) select /dev/sdg
Using /dev/sdg
(parted) print
Model: Ext Hard Disk (scsi)
Disk /dev/sdg: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: mac

Number Start End Size File system Name Flags
1 512B 32.8kB 32.3kB Apple
2 32.8kB 61.4kB 28.7kB Macintosh
3 61.4kB 90.1kB 28.7kB Macintosh
4 90.1kB 119kB 28.7kB Macintosh
5 119kB 147kB 28.7kB Macintosh
6 147kB 410kB 262kB Macintosh
7 410kB 672kB 262kB Macintosh
8 672kB 934kB 262kB Patch Partition
10 135MB 500GB 500GB hfs+ Untitled

Now I know that I'm looking to run fsck on partition 10.

fsck.hfsplus -f /dev/sdg10

Once that completed successfully, I mounted it with

mount -t hfsplus /dev/sdg /media/usbdrive

Finally a way to allow this to run a couple times and not just stop on the first failure due to Read Errors or IO errors I used

rsync -avE /media/usbdrive /media/backupsystem

Enjoy.. HFS+ support is very good in linux from my experience now. This copy took about 12 hours with many retries to get what I could off of it.

Continue reading »

Windows 10 GA VMware Template

An interesting change with App Store and Windows Update has made creating a VMware template a little more unique now. I attempted to create one doing the normal process of building from ISO, logging in, making the modifications we want to have done such as installing VMware Tools and then gracefully powering the system off. Then the Deploy from Template option and select a guest customization to Sysprep the system. That doesn't work as any Windows Store application such as the start menu or the Windows Store, simply doesn't start.

VMware says Windows 10 guest customization works just fine per the Guest OS instruction page.


This is a tad misleading as this set of instructions does not allow you to actually get SysPrep with a Guest Customization option to run correctly. To make SysPrep work with Windows 10, the Windows 10 system needs to be put into Audit mode.

The easiest way to enter audit mode when setting up a VMware template (at least a way it worked for my setup).

  1. Provision a blank system from DVD.
  2. When the system boots for the first time at the Welcome Screen/Customize Privacy settings, press + + .

Make the legacy configuration settings and setups (such as creating a local ID you want on the system using Computer Management or other fun legacy non-Windows Store apps).

  1. Do a graceful shutdown.
  2. Turn the system into a template

This worked very well for my setup. Any better ways to setup a clean Win10 template?

Continue reading »

Windows 10 Build 9926 Sysprep Fails

I've been working on getting Windows 10 available in our private cloud as blueprint and kept having the deploy fail when trying to sysprep it. When logging in directly to the system and running sysprep, we see this error.

Setup Error message

When digging further we find in the C:\Windows\System32\Sysprep\Panther\setuperr.log this text.

SYSPRP Package Microsoft.Getstarted_1.5.22.1_x64_8wekyb3d8bbwe was installed for a user, but not provisioned
SYSPRP Failed to remove apps for the current user

This is caused by Windows App Store installing things while the template is online and connected to the network.


Two solutions I've found so far

  1. When installing the OS, have it disconnected from the network.
  2. Clean up the template if that doesn't work by running the commands
    get-appxpackage -name *packagename* | remove-appxpackage

Continue reading »

Monster VMs Mass Storage & How to check storage used

Jason Boche posted an ESXi Heap Size interesting discovery with regards to Monster VMs and the amount of storage one would be sticking to them. One of the large projects being designed today has the likely reason to hit this limit with just a single VM. This is pretty easy for that project to hit that as a single VM will have about 75TB assigned to it. Since this design has 4 or 5 VMs of this size, which then means our standard ESXi Host will have around 300+ TB assigned to it. Thankfully RDM isn’t impacted by this limit in theory, so there is a workaround available. Not ideal and yet doable.

Continue reading »

EUC1453 - Managing from the Middle with Horizon

The Post-PC world is not Mac vs Windows. It is all about the changes of multi-device, data mobility & anywhere access. As such applications and means of access need to change.

Complexity for end clients has gotten much more complicated due to multiple devices, types of applications and so on. So the management of the environment is very complex behind the scenes. The requirements for cost management, easy to use & security still exist. Those basic back end necessities are crucial to IT.

How did this happen? Its the piecemeal approach. IT had to get a tool to manage it for the Mac. Then had to manage it for iOS. Then Android and so forth. This is for Web tools, SaaS tools, Mobile Apps etc.

Consumeration of IT really means it has to be easy or the end user will go somewhere else. Now to deliver this, VMware's approach is to manage from the middle. My Apps, My Files, Native Experience.

Now Horizion suite is aiming to managed in the middle and be the portal to facilitate access and control for all the various end user computing space to the application and devices. By doing this a Catalog can be offered, file sharing can be offered and controlled. Central management is required to offer security policy controls also.

The three ways of managing in Horizon view point is Identity, Policy & Context. In Identity, who are you. Context is what are you trying to access and from and what OS. This is different than before where the PC was a known entity. Now there are more choices and options here.Policy takes Identity and Context to apply rules across both of them.

Horizon offers a place to manage, security, track, delivery and make functional. Their goal is to encourage them to opt-in instead of force down. End customers will find a way around IT wherever possible. Getting them to buy in is the future.

Continue reading »