Acronis True Image – Clone Disc Operation Failed

For all of us in the IT industry, we specialize in our very own craft…whether it be programming, networking, etc.  Along all those years becoming experts in what we do, a majority of us picked up a few things about personal computers, its hardware and the do’s and do not’s around the OS.  This knowledge becomes valuable to us as we one-up our buddies in knowing and getting the latest and greatest.  All is grand until it happens…when just one family member finds out what you know, you then become their free personal IT support whenever their PC goes haywire.  Last year, I spent close to an hour convincing a family member that Win 7 Antispyware 2012 is NOT a real application and to NOT click the shiny “click” button. Later, I had to convince someone else that their hard drive didn’t have any hard disk issues and to NOT click the glowing “Start the backup process”.  My latest escapade was a little doozie.  I was swapping out hard drives from a 640 gig HD to a 120 gig SSD.  My software of choice has always been Acronis True Image simply because it has never failed me so I never bothered with the other ones.  Even when going from a larger to a smaller drive, it just works.

So it came time for the cloning.  Everything was simple clicks.  The process started and I left the room.  Came back about 30 minutes later only to have the message Clone Disc Operation Failed in the middle of my screen.  Somehow it made it to step 5 of 6 when it threw the error.  Fortunately, Acronis creates a log.  I opened it up and low and behold it screamed MFT bitmap is corrupted.  Here is a little info about it from Acronis.

I didn’t bother with SnapAPI as Acronis mentions.  Instead, I went straight to my Windows 7 recovery and ran the infamous chkdsk DISK: /r.  It took a couple of hours on a 640 gig notebook HD.  It successfully repaired the errors.  Side note, if you are walking through this with the same issue and if chkdsk can’t repair your drive, then go with a clean install onto the new drive.  Back to where I as at…oh yes, so I go back into Acronis, started the cloning process again with just a few clicks, left the room, came back in about 20 minutes and it successfully cloned the drive.

I put the new SSD drive into the notebook and SHAZAAM!!!  One of the greatest upgrades you could ever do to a notebook…and how I solved my Acronis True Image – Clone Disc Operation Failed issue.

 

 

Posted in (new Random()).Next() | Leave a comment

Attach Event without JQuery

Found myself working on a website so old and with so much old JavaScript that when I attempted to reference JQuery the site just bombed with a ton of client-side errors.  When time is of the essence, I didn’t bother to get the site working with JQuery but instead went with what was already there and did things the ole’ fashioned way.  One of which I had to attach a client-side event to a drop-down.

For cross-browser support, you have to implement both element.addEventListener and, for IE and Opera, element.attachEvent.  Here is a good reference: site.

To make it a little more generic, wrap it up in a method to where you can pass in the name of the event, the element and the function.  Here is what I did:

function addEvent(evnt,elem,func){
evnt=evnt.replace('on','');
if(func){
if(elem.addEventListener){
elem.addEventListener(evnt,func,false);
}else if(elem.attachEvent){
var r = elem.attachEvent("on"+evnt,func);
return r;
}
}
}

Using the above, you can then use something similar to the following:

var element = document.getElementById(elementName);
addEvent('change', element,function(){alert(element.value)});

Of course, all this is useless now a days due to JQuery. This is how you would do the same as the aforementioned example:

$("#elementID").change(function(){
var str='';
$("#elementID option:selected").each(function(){
str+=$(this).text()+" ";
});
alert(str);
});

Unfortunately, JQuery wasn’t an option at the time.

 

Posted in Caffeine Almanac | Leave a comment