The Jake project, which allows you to embed a standalone CakePHP app within the Joomla framework, turned out to be rather popular. So I went ahead and built CakePress, which lets you do the same thing with WordPress. Enjoy.
Yesterday I was working as usual, when suddenly my 18-month-old PC shut off. At first I thought it was a power outage, but when I restarted it, and it just spun the fan without beeping (much less booting), I knew something was seriously wrong. I got out the tools and removed the CMOS battery, then the graphics card (since that was the major power draw and most likely to burn out), then the extra hard drives, and then all the memory. No effect. I was seriously up a creek, since this meant that it couldn’t even boot into the BIOS so was probably the power supply, motherboard, or CPU. In any case, it’s too expensive in time and money to try to find a replacement and fix it (even if I did know which of those was the culprit).
This is what the power supply outlet looked like – that burned prong doesn’t look good for sure!
So I hunted online and decided that what I needed was a mid-range tower that I could replace the SSD drive, memory, and graphics card(s) into – to get a box that was at least as good as my previous one, and mostly new. I ended up with an HP Envy from Best Buy and brought it home. It turned out to be a lot more complicated than it should have been. My overarching goal was to not lose any data – and this required some heavy lifting, much more than could be expected of an average user.
- First off, I had a 128GB SSD running Windows 7 and hoped to just drop it in. I removed the 2TB hard drive and swapped it in.
- I got a BIOS message that “no bootable media could be found”. After some Googling (fortunately my laptop was still running!) I found out what my motherboard model was, and used that to find out how to enter the BIOS setup (since this is nowhere to be found in the HP Envy User Guide I found online).
- I entered the BIOS setup and turned off “Fast Boot”, enabled POST messages, enabled Legacy storage, and disabled everything to do with Secure Boot. My old SSD drive was certainly not “signed” for this new hardware and so I didn’t want that blocking me.
- Still no luck. So I got out my Win7 disk and launched that to try Startup Repair. It was able to fix the bootloader, but still couldn’t boot Windows 7 (not even in safe mode) and just crashed immediately.
- At this point I decided to try either reinstalling Windows 7, or upgrading to Windows 8 (keeping my files and programs intact). But I found out you can’t do this unless Windows is already running. My guess is that most of the time when you have resorted to this, it’s for the very reason that Windows is not running.
- I resigned myself to doing a clean install of Windows (and decided on 8 just to get it over with). I didn’t want to use the OS that came with my system since it was on a 2TB ordinary drive, I really wanted the SSD as it is faster, more reliable, and separated from my files. I tried to install it and got an error the the drive was in MBR boot format, not GPT which is needed by Windows 8.
- The only way to switch the boot format, if you don’t have Windows running already, is to manually wipe the boot sectors and delete all the partitions in GParted. Fortunately I had a Live CD of this created awhile back, so I booted that up and deleted the partitions of the SSD. I then followed these instructions to wipe the first block, hence clearing the MBR code.
- I rebooted with the Windows 8 CD, and finally it let me create a new partition on the SSD and install Windows 8 to it. That was the easy part.
- Now I was left with my “documents” drive, which is around 500GB of files for personal and work. At this point I was glad this was physically separated from my system drive (the SSD) or else I would have lost it all. So I found a few more SATA cables and dropped in that drive, along with the 2TB drive that came from HP. My task was to clone the first to the second, and then extend that partition to t he full 2TB so I’d have plenty of room to grow, and on a new hard drive.
- My first choice was using GParted. I wiped all the existing partitions off the destination drive, and then it seemed to run the copy operation just fine, but then kept spinning (on the last, ntsfclone step) for 6 hours. Since there’s no definite progress displayed in the UI, you don’t know how long it’s supposed to take. After Googling I came across this post which described how to decipher the progress based on the “stat” output. But after monitoring the blocks written for an hour, the number wasn’t changing so I was forced to conclude Gparted was stuck in a loop. I canceled out and to no surprise found that the new drive partition wasn’t visible in Windows yet.
- I then tried CloneZilla, which works similarly to GParted, but offers progress feedback. It took about an hour to copy the partition over, said it completed OK, but no difference – the partition was still not visible.
- I then tried a Windows-based program, AOMEI – simply because it showed up first in the Google results. The free Standard version ran for about an hour (I didn’t even need to reboot Windows!).
- Next problem was getting all 3 monitors to work. I eventually determined that the Kaili motherboard used by the HP Envy cannot have a PCI graphics card and the onboard video, run at the same time. So I went out and spent 60 bucks on a USB-DVI video adapter.
I think I’m pretty much running now. It only took 72 hours!
If you are using Google Apps for email delivery, but your domain is still running on an external server that needs to deliver to those accounts, you can run into a lot of trouble with mail delivery. In the case of a server running Plesk, the MTA is qmail, but sendmail has the same type of problem. Basically it, by default, ignores the DNS settings and tries to deliver mail locally when it can – which is clearly not what you want.
These steps are needed:
- Turn off any DNS server that might be running locally.
- Comment out the instances of the domain from the 3 configuration files listed here.
- Restart the qmail service.
Hope this helps.
I recently got a new Mac Mini with OSX Lion for testing, and had a bear of a time getting it able to share a folder from a Windows 7 Ultimate PC. In the end, these were the key steps:
- Make sure the Mac is on the same workgroup your PC’s are on as per this tutorial. Unlike in Windows, there’s no “welcome” message when you join a workgroup so I don’t know if rebooting is needed. I rebooted the Mac to be safe.
- More worrisome are the 2 registry hacks needed to prevent error messages when you try to “Connect to server” from the Mac. But after applying these and rebooting the PC, file sharing worked like a charm.
Let’s hope Microsoft has fixed #2 for Windows 8!
Following on this previous post, this short DOS script does the equivalent of
@echo off REM forcewritable.cmd REM Usage: Open an Administrator command prompt and run this, e.g., REM forcewritable C:\path\to\folder echo Taking ownership of %1... takeown /f %1 /r /d y icacls %1 /grant Everyone:F /t