I am currently working on a review of an open source software item that model rocketry people will just love. OpenRocket is an application that allows users to create model rockets. More than just a canvas, OpenRocket allows users to simulate flights, analyze rocket performance and to optimize the design according to the results. Watch this space for more info.
So, horror or horrors, Windows has crashed and you’re having trouble getting it to boot properly. Don’t panic, because I’m here to tell you how you can possibly fix your damaged operating system and get your computer to boot up like the crash never happened.
“Chris,” you want to ask, “how do I do this? Please cut to the chase and enlighten me.” I am only too happy to oblige. To rescue your computer, you will need two things: a blank writable media (e.g. DVD-R) and a live Linux distribution. You probably already have the necessary media or can readily acquire it. What is this “live Linux distribution?” you probably want to ask. A live Linux distribution is a Linux distribution that can be placed on removable media and then, by booting from this media, allows you to run Linux on your computer without installing it. That’s right. You can run Linux on your computer without installing it. Live distributions will not adversely affect your computer or data in any way. You can test drive a new car, so why you shouldn’t you be able to test drive a new operating system?
So how do you go about choosing a live Linux distribution (known in the vernacular as a “live Linux distro”)? According to DistroWatch.com, there are 178 live operating systems from which to choose. For the purposes of this article, I’m going to use Xubuntu Linux as it is a personal favorite. If you’d like to see DistrWwatch.com’s very comprehensive list, click here.
First of all, we need to get the Xubuntu Linux ISO image (the live operating system). Go to Xubuntu’s download page here and download the ISO image (be aware that there are two options:
32-bit and 64-bit. I leave it to you to determine which is right for your computer system). When the download is complete, open the Downloads folder. Place the blank media in your DVD-RW drive. Copy the downloaded file and paste it into the DVD drive folder. Right-click on the icon and choose Burn Image. The Windows Disc Image Burner window will open and guide your through the burn process. When the process is done, the disc will be ejected. Remove it and place it back into the drive, as we’re going to boot from it.
To complete the next few steps, you need to know a few things. The first is the location, physically, of the hard drive upon which Windows resides. The second thing is that though the Computer folder may list two hard drives (C: and D: (or C: and FACTORY IMAGE/RESTORE respectively) the truth is that you most likely have only one hard drive. In many respects, a hard drive is like an empty building. As with an empty building, sometimes it is desirable to create two smaller, separate spaces, rather than to have one big room. With a hard drive, this is done through partitioning. The two drives listed in the Computer folder (not including your DVD drive) are actually one hard drive divided into two partitions. one of which, C:, actually holds the operating system and your files. You need to be aware of this as you will need to know which partition you are going to attempt to repair.
Restart your computer. The moment the boot up screen appears, enter the BIOS. BIOS stands for Basic Input/Output System. This is where settings can be adjusted on your computer such as date and time, boot device priority and settings pertaining to hardware built into your motherboard, for example. Sometimes the initial boot screen will display the keyboard key needed to be pressed to enter the BIOS near the bottom of the screen. If not, try pressing the Delete key. For Compaq computers, it’s usually F10. You may have to consult the manual that came with your computer to learn how to enter the BIOS. Your BIOS may look like mine, shown in the screenshot to the right.
Once in the BIOS, you will want to modify the boot device sequence (this is under Advanced BIOS features in my BIOS). You will want to set the DVD drive containing the bootable media as your first boot device. Make a note of your current first boot device so that you can restore it to this capacity when you reboot. When finished, press F10 and choose Yes when asked if you want to save the current settings and exit.
The system will boot from the DVD. You will be prompted to touch the keyboard. After choosing the appropriate language (English-US is default), choose Try Xubuntu without installing from the menu that appears. Once the system has booted, you’ll see the Xubuntu Linux Desktop, as shown in the screenshot at left. Open the Terminal Emulator (command line) window (there’s a button to do this on the panel (application dock) at the bottom of the screen (it’s set to AutoHide, so just move the mouse pointer to the bottom of the screen to view it). First, we need to see where Linux has put your C: partition. Type )or copy and paste) the following command into the terminal:
sudo fdisk /dev/sda
Sudo tells Xubuntu that you want to run the command as a system administrator. Fdisk is a hard drive partitioning program. Don’t worry. We’re not editing any partitions. We’re just using fdisk to view the partitions on /dev/sda (your primary hard drive). The /dev/sda portion of the command tells Linux that we want to look in the devices (/dev) directory for the primary or first hard drive (/sda). At the question mark prompt (?), type p to print the partition table. My partition table is shown in the screenshot (note that I changed the Terminal Emulator’s default color scheme for the sake of legibility in this blog). Most likely, your C: drive is listed as /dev/sda1. Press q to quit fdisk.
At last we’ve reached the next to last step. In the Terminal Emulator window, type the following:
sudo ntfsfix /dev/sda1
A report of errors found may be generated. Reboot the system using the Session Menu. The system will shut down Linux and eject the disc. Remove the DVD and press Enter as the prompt on the screen asks and, upon reboot, enter the BIOS to restore your boot device settings to their original status, save and reboot. If all went well, Windows will boot to its former functional status. Don’t thank me. Thank the developers behind the ntfsfix program. They’re the real heroes.