Search This Blog

Monday, February 8, 2016

Setup Plex to Transcode using RAM & Speed Up Plex

My family uses my Plex server from several locations so there are times I will have multiple videos transcoding on my machine which can cause delays and slow transcoding.  I noticed that even though my main disk was SSD, it could not keep up with transcoding more than two streams at a time.

I found some info on this on reddit and then searched around a bit before I found the entire process I would need to do this so that it created the disk on every startup.

My system is Windows 7 Pro so these directions are for Win 7 but can likely be adapted for other OSes with a little research.

Since my machine has an extreme amount of RAM in it I use 32gb of the ram as a disk on startup and then set my Plex to use this to transcode videos. Mind you, I will not use all of this space for transcoding but I'm not using this RAM for anything else right now and I plan to move my Temp space for Windows and some browser files to this ramdisk in the future.  The great part is that it can be changed anytime by editing the batch file we will create below.

Keep in mind, that doing this takes active RAM (memory) away from your system so if you only have 2gb of RAM and you're running Windows this probably isn't a great solution for you without upgrading the RAM on your system.

It's really easy to make this change.

Create your RAMdisk batch file


  • First, download and install IMDisk here:  http://www.ltr-data.se/opencode.html/

  • Then open a notepad file and put this line in it:
    • imdisk -a -s 2g -m T: -p "/fs:ntfs /q /y"
Customize this line to your system by changing the 2 to whatever number of gigabytes of ram you want to use for this disk.  If you want to use mb instead then just change the 2g to 512mb intstead.

The T: is the drive letter so you can change this to any letter you want.  


  • Save the notepad file to your hard drive to a location like C:\ImdiskStartup and name it imdisk-startup.bat

Setup a Startup Task to create your RAMdisk on every boot

  • Search for Task Scheduler on your PC and open it
  • Open Task Scheduler Library > Microsoft > Windows and then make sure Windows is highlighted.  Then right click in the empty pane and click Create New Task
Settings for task:

General
Name:  Doesn't really matter, named mine 'IMDisk RAM startup'
Description:  Not required
Security Options:  Click Change User or Group, type SYSTEM in all Uppercase and click OK.  This should change the user account to NT AUTHORITY\SYSTEM
Check the box that says "Run with highest priveledges" 

Triggers
Click New > On Begin the task choose At startup and click OK

Actions
Click New > Click Browse > Browse to the .bat file you saved earlier in the C:\IMdiskStartup folder (imdisk-startup.bat), choose the file and click OK

Conditions
Turn off Start the task only if computer is on AC power

Settings
Click box for Run task as soon as possible after a scheduled start is missed

Click OK to save the schedule

Change Plex to use the new RAMdisk

  • Login to your Plex server and go to Settings > Server > Transcoder
  • Click Show Advanced
  • Change Transcoder Temporary Directory to your new drive letter
  • Click Save


Friday, September 4, 2015

Dell Monitors Are A Ripoff for Businesses - Buy monitors elsewhere

We are a mostly Dell shop with several hundred Dell PCs.

I stopped buying Dell monitors at work about a year ago. Why?


  1. They are overpriced, check and compare the specs to what you can purchase on Amazon, at Best Buy, etc.  You will ALWAYS find a better monitor at a better price.
  2. They purposely devise their warranty replacements in a way that make using the warranty ridiculously painful
This is not the first time I have had this issue.  We typically order our computers in multiples.  Sometimes we will get stacks of them in our offices all on the same day/same order.  We do not deploy the monitor with the computer it was shipped with originally.  We typically pull the PCs out of the boxes, run them through our build process, put the monitors in the stock room and then deploy the machines as needed.   Most times, the user already has a monitor or two and we may or may not replace those depending on the age of the monitor when we give them a new PC.

Here's where Dell screws the customer/business.  If you have a Dell monitor go bad, no matter what the age, they want you to give them the service tag of the machine it was shipped with originally.  Given most businesses do not pair them up upon receiving them this allows Dell to screw over their business customers by demanding a service tag.  They put the problem in the customers lap rather than documenting the serial number when shipped so as to associate it with the order number.  

If you do not have the original service tag with which it was shipped they will not replace it.

It seems like a convenient way for Dell to complete screw their larger business customers out of warranty replacements.

Anyway, we started buying really nice HP monitors at 15-20% less than the Dell prices and we don't have to track what PC they come with to get a warranty replacement.  You should too.


Thursday, April 30, 2015

Group Policy Import Fails w/ Error "Directory Not Empty" Solution

I exported a policy from one site and tried to import it into another domain.  It failed with an error due to the policy having one auth item in it that wsa not for the new domain.  I removed that part of the policy, exported it again and then tried to import it and then I received a "Directory Not Empty" error and it failed the import.  

This is apparently caused by DFSR replicated a temp directory for AD.  

I found all sorts of solutions online that didn't work or were overly complicated.

The solution is to create a new GP in the domain and then try the import again.  Delete the old one you tried to import to and caused the failure.  Importing a policy overwrites the original so deleting this shouldn't be an issue.

Monday, February 23, 2015

How to Virtualize OEM Windows XP Install & Change to Volume License Version

I thought I was finished dealing with Windows XP in our environment and then this situation popped up.

We had a developer who worked here four years ago and when he left we kept his hard drive for reference in case we needed something from his drive.  Well, that day came last week when it was discovered some code was never entered into source safe.  I located the old drive and put it in the same model system it came from previously and then performed a p2v on the machine to put a copy of it on our ESXi system.

I booted the machine and it asked me to activate Windows XP.   The Dell PC that this ran on was apparently loaded with the OEM disk rather than our VL image and key (we had an ex-IT guy here who was too lazy to reimage the PCs when they were received from Dell).  Given this is OEM this cannot legally run on our ESX system so we need to change this install of XP to the VL version.

When virtualizing this system I originally used the IDE controller (as recommended in the converter).  The machine would not boot.  Googling, I found some users that said to set the controller to scsi so I did the conversion again and this time it booted.

When I attempted to boot the VM XP guest with the XP VL image and was met with this error "Setup did not find any hard disk drives installed in your computer" message.  This is because Windows does not have the drivers needed for the controller.


The BusLogic driver comes bundled with VMware products:

  • VMware Workstation: %Program Files%\VMware\VMware Workstation\Resources\vmscsi.flp
  • VMware ESX: /vmimages/vmscsi.flp

You can also download it here: http://download3.vmware.com/software/vmscsi-1.2.0.4.flp.

Upload this file to a volume accessible to vmware, I just have a folder on a volume where I keep all my iso and driver files.

Attach the file to the floppy drive on your vm.  Note:  Your path will be different for your environment.


Now you can reboot the VM guest, press ESC to get into the boot menu (I generally set a boot delay of 1200 ms to make this easier) and boot to your XP image again.

The XP setup is so fast on this system that I had a hard time getting it to accept the F6 command to install the drivers.  It goes by fast so I found the easiest way was to get into the window for that machine and then force a reboot with Ctrl-Alt-Insert and then hit the ESC, boot the XP and start tapping F6 then as it's booting.  Once it boots and says it didn't find you can choose to install drivers.



At this point you want to open your floppy settings on the VM and click the "connected" box that will no longer be greyed out.  After this you will be free to hit Enter to continue the install.


Now you can just hit enter and go through the prompt.  This will bring you to the normal XP setup screen when it's complete.

DO  NOT PRESS R or select the option "To repair a Windows XP installation using the Recovery Console,..."  Just press enter to install XP.

Accept the license agreement and the install will search for existing installations of XP and find your current install.  If not selected already, select it and then hit 'R' for repair.

Setup will now run and start copying some files for the repair.  It will reboot the machine during the repair and run the repair on the machine.


It will ask you to click next, put in your VL Key, etc, just as it does with a new install of XP.

Once complete you can reboot the guest VM and your system should be running the new version of XP for VL.  Login, put in your key, activate!

Tuesday, October 28, 2014

Geek Magazine geekexchange.com Discontinued; Boosts Sound & Vision Subscriptions by Force

I'm annoyed and disappointed.  One of my favorite magazines, Geek Magazine, was discontinued.  What annoys me the most is the way it was handled by the company running these magazines (TEN The Enthusiast Network).  They sent me a post card saying they were discontinuing the magzine and that I would be receiving Sound & Vision Magazine in it's place.  Never mind that I have never heard of Sound & Vision Magazine and that being a Geek does not mean that I would necessarily want Sound & Vision Magazine. The point is that there should be some choice here.



Whomever handled this discontinuation process stinks.

First, give us options.  ON THE CARD.  Don't make me call to ask.

Second, you apparently posted about Geek Magazine being discontinued on your site on Oct 7th.  You then at some point, within just a couple of weeks, took down that post and setup crappy forwarding from the GeekExchange site to the Sound & Vision site.  Move the freaking post about the Geek Magazine being discontinued to the new site it's being forwarded to....  PUT A GRAPHIC ON YOUR FRONT PAGE FOR GEEK MAGAZINE SUBSCRIBERS so that we have a place to get information about the discontinuation, info on our shiny new subscription to Sound & Vision like how does a bi-monthly subscription convert to a 10 issues per year subscription?  Do we get four more issues if we only had four more of Geek left or do we get 8 months of Sound & Vision for four (eight months) of Geek?  What if we don't want Sound & Vision?

I called the subscriber services and you can get a refund for the remainder of the subscription if you don't want Sound & Vision.  The number is 1-877-388-7761.  Keep in mind, they AUTO-RENEW! Another question, do they intend to auto-renew this Sound & Vision on us? ???  :)  So yes, if you are meh about Sound & Vision, cancel it before the end of your Geek Magazine renewal or you may be paying to renew Sound & Vision.

Loved Geek Magazine, but you handled this discontinuation terribly.


Thursday, March 27, 2014

Converting an Evaluation/Trial SQL Server 2008/2012 Built with VL Media to Full Licensed Version

I built a new 2008 R2 SQL Standard server using Microsoft Volume Licensed media.   The media comes with the product keys built in to the ISO/setup.  I built it on an evaluation/trial because I was still waiting on purchase approval for the core licenses and since Microsoft gives a generous trial period of 180 days I had plenty of time to buy my licenses before the trial would run out.

A couple of months into the trial and I had my licenses ready to deploy.  I came across this tip on a message board:

"Go to Microsoft SQL Server Configuration Tools, navigate to SQL Server installation Center and click the Maintinance link and choose Edition Upgrade"

The problem with this is that if you do this from the server installation instead of from media, you will get an error and it will ask you for the product key.  Your upgrade will fail, leaving you to cancel the upgrade and therefore you will have a partial install.  It seems as if the evaluation license was even deactivated when this happened because I tried to go back and choose evaluation and it would not let me complete the setup.

I thought I may have to do an uninstall/reinstall of SQL but then I decided to try and run the upgrade from the media I used to install it originally.  It gave me the same options as the Edition Upgrade that I originally used except this time it filled out the Product Key field for me.  Excellent.  Upgrade completed in a few minutes.

You can also do this via command line.  Open cmd.exe and launch setup.exe with the following command line:

Setup.exe /q /ACTION=editionupgrade /INSTANCENAME=<MSSQLSERVER or instancename> /PID=<PID key for new edition>" /IACCEPTSQLSERVERLICENSETERMS

Wednesday, March 12, 2014

3 reasons I like Crashplan more than Carbonite

I have been a Carbonite fan for many years.  I've used it at home and at work.  Previously, I used it on home office employees in order to capture backups of their work data.  I've used it to backup my home server and home laptops and desktops.  I'm also currently using Carbonite for Business in order to backup some email archives that exist only on users local machines.  It's extremely reliable and it's saved me a few times through the years.

That being said... I have tried out Crashplan's similar service and I'm loving it.  Here is why:
  1. I LOVE the weekly email reports that I receive from Crashplan.  Particularly for my home server because I don't look at it often.  It lets me know when the backup size has increased/decreased and if it loses connection with Crashplan and can't do a backup.


  2. Crashplan's basic plan ($69 per year) lets me backup my large external USB drives that are plugged into the machine being backed up.  Carbonite makes you subscribe to a more expensive $99 (Carbonite Personal Plus) per year plan to backup your connected external drives.  This makes Crashplan a more economical choice if you need to backup external drives.
  3. Crashplan has the Backup to a Friend feature and it's just awesome.  This is something done in business all of the time, offsite backups to a secondary location.  Even if you can't afford Crashplan Central (any one of their current paid subscriptions), you can use it to backup your data to a friend, neighbor or relative's computer.  If you both have space to support your files and your friends you can essentially swap backup space.  They can backup all of their information to your PC and you can backup all of your information to their PC.  It's all encrypted so your friend/relative/etc cannot actually view and use your data.  If your computer crashes, you can use Crashplan to recover your files and it will move them from your backup on the other machine to your new machine!  Pretty cool given it's free!