Checking DFS referrals in 10.7

So, I had an issue where I could map the DFS share manually in Finder, but it wouldn’t automatically mount on login

The machine in question was bound to the Active Directory Domain, the DFS shares were hosted on other servers bound to the Domain Controller, so I opened Terminal & entered this to check that the referrals were working correctly

smbutil dfs smb://root.dfs.namespace/DfsRoot/DfsLink

this showed that the Mac was only looking to the Domain Controller for DFS shares/namespaces

To resolve this problem we started up the DFS Service on the Domain controller and added the DFS namespaces to it

check out this Microsoft article for how to do this

http://technet.microsoft.com/en-us/library/cc732807.aspx

After this had been done I opened Terminal and ran the command above and this time it returned my DFS namespaces, rebooting the Mac and logging back in resulted in the drive mounting automatically

Create a bootable Lion USB key

To make a bootable Lion USB key, you will need the following

1. A USB Key, minimum 8GB, I use these
2. The Install Mac OS X Lion App

Ok, so first, you need to start up your Mac

Now plug the USB key into your Mac

Next you will need to open Disk Utility, this is located in /Applications/Utilities

Format the USB Key so that it is Mac OS X Journaled and make sure you choose the ‘GUID Partition Table’ option, otherwise you will not be able to boot a Mac from it.

Then you need to locate ‘Install Mac OS X Lion.app’ which should be in /Applications

If you have deleted it since installing then you can redownload it by opening the App Store, then hold down ALT and click on Purchases, this will enable you to redownload it by clicking Install

Click on the ‘Install Mac OS X Lion.app’ to run it, click on ‘Continue’ then Agree to the license and you will be shown your main hard disk, under that there is an option to ‘Show All Disks’ click on that and choose your USB key, click on ‘Install’ and the process will begin, you will then have to restart the machine so the installation can complete, this usually takes around 40 minutes

After this has finished you will be able to boot from your USB key into a full Mac OS Environment, and providing you keep this OS fully updated then you should be able to use it to boot up any Mac.

Once it is fully patched, you can install any additional tools that you use for troubleshooting machines.