Skip to main content

Clone SSD to larger SSD, and how to fix Windows 10 afterwards...

Once in a while, one needs new challenges. Or one simply buys a new SSD drive because she likes the idea of more hard drive space. Big mistake?

As you might have already guessed, I recently acquired a Crucial 750GB SSD drive to upgrade my Lenovo u430 touch machine. The plan was to "simply clone the old SSD to the new SSD", so I got myself a "SSD to USB adapter" and connected the empty drive to my machine. There are various tools out there which claim to be able to clone the drives, but none of them worked for me. Booting into (USB-)Ubuntu, I opened up GParted and noticed that my old SSD already had 8 partitions, some of which could not be read properly...

Long story short, I ended up formatting the new SSD into a GPT (not MBR!) drive, created the same partitions (just allocated a bit more space to the main ones) and, after chatting with a friend, who mentioned the "DD"-command to me (learn something new everyday, right?) cloned all partitions from old drive to new drive, partition by partition, like sudo dd if=sda1 of=sdc1. 

Worked like a charm (at least that's what I tought). I switched drives and fired up the machine - only to run into a BSOD. First it said something like winload.efi was missing, but didn't allow me to enter recovery, later on I was getting the dreaded BDC files missing or corrupted message. 

I figured out I could use the original SSD to get into recovery, but that didn't help much, so I'll just skip over the next 24 hours. By then, I also had issues on the old SSD - I couldn't use the bootrec command any more to fix the MBR / Boot sectors.  That's when I (accidentally?) disconnected the new drive while working in recovery - and voila, seems like bootrec has issues with two drives (probably with similar volumes). I managed to fix the original SSD like this:

bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

Since I figured that I won't be able to use the old SSD's recovery console to fix the new one, I finally created a recovery / installation disk (I didn't have any disk / USB media holding a Win 10 installation, so I googled the Microsoft Windows Media Creation Tool and used it to create a recovery DVD). 

Now the bootrec /fixmbr, bootrec /fixboot and bootrec/scanos worked, but I couldn't manage /rebuildbcd to complete successfully (it couldn't access the drive somehow, claiming it couldn't find the required system device). I tried it all, bcdboot, diskpart, renaming drives, chkdsk, you name it.

Some more googling, and someone mentioned somewhere that it could help to boot the installation media dvd (U)EFI version instead of the (legacy) CD-Drive. I gave it a try and voilĂ  - bootrec /rebuildbcd finished without any complaints. Reboot, done. If only someone had told me earlier to use this damn disk, would have saved like a week of work, aggression and frustration... :-D
  

Comments

Popular posts from this blog

Joomla! 2.5: Multiple views, one model

Here goes MVC again: I was a bit confused that every time I created a second or third view for a component, I had to create a separate model for it. Did not make sense to me - I had the necessary algorithms in the model for the first view, did I really need to do copy & paste? I hate it! Redundancy, redundancy, redundancy. That case occurred in my current project - I created user profiles and needed an "edit" view. The data is the same, but I need to have the data in editable text fields instead of fixed labels, and maybe some other buttons here and there...  Well, some time later I realized that I just did not quite understand what Joomla! acutally means by "view".  And that there is something called "layout". Long story short: If you have a model that provides all necessary information and you just want to have a different presentation of it, just add a new .php file to your views/<yourviewname>/tmpl folder - let's call it "layo...

Joomla / Eclipse: Use Eclipse to edit files

Even though I could use any Editor or Notepad, after some days of Joomla! I was yearning for some syntax highlighting and maybe even automatic code completion... I did some Java programming in the past, and I am really used to the Eclipse IDE. Eclipse IDE for JavaScript Web Developers seemed to be a good deal for what I was up to do, so I gave it a try. I feel kind of stupid even posting about this, but upon starting up Eclipse, I started to wonder how I would do that - being that Eclipse works with projects, and I didn't want to put all of my components into an Eclipse workspace, and I didn't want to put up a subversioning system. Turns out it is quite simple: Right-click somewhere in the package explorer,  select 'New', 'Project...'. In the dialog, open the folder 'General' and select 'Project'. Click 'Next'. For the name, I usually put the com_componentname / mod_modulename, as in my file system. But I don't think it matters....

Joomla! 2.5: Component as Article

Can you put a component on a page together with other articles? Like, for example, to have a component and a blog layout on the "Home" page? Yes, you can! There are some nice extensions that allow for this. I used the "Plugin Include Component" plugin, which is available on extensions.joomla.org . With this plugin, you simply create an article that contains a special tag, indicating the component to include. Just like this: Install the plugin and put the following code in whatever article you need it in (substitute 'componentName' and 'viewname' for your component's and view's name...). {component url='index.php?option=com_ componentName &view= viewname '}