Saturday, October 27, 2007, 09:35 AM - Tips and Tricks
I do a lot of photography and I have always been afraid of losing my images. What I am most afraid of is a hard drive failure more than anything else. Those large images will be gone forever. Taking regular backups on a separate drive is a good solution, but maintaining the backup software and updating it regularly is not a sustainable idea for me for a long term. RAID is a scheme at the hardware level that divides and/or replicate data among multiple hard drives. There are 3 basic concepts in RAID:
mirroring, the copying of data to more than one disk;
striping, the splitting of data across more than one disk; and
error correction, where redundant data is stored to allow problems to be detected and possibly fixed (known as fault tolerance).
If you have multiple hard disks to RAID, it can either be achieved via hardware or software. Hardware RAID is quite costly for a home user like me.
Of the different RAID types(levels), RAID-1 (also called mirroring) which takes a minimum of 2 disks to provide fault tolerance by writing the same data into two disks is a very good replacement for automatically taking backups of my precious pictures.
Windows XP (which I use) apparently does not support mirroring of disks. It is supported only on Windows 2000 Server, Windows 2000 Advanced Server, or Windows 2000 Datacenter Server. The how-to link from Microsoft is here.
If you try following these instructions on your Windows XP box, you will see that the options to support Mirroring are not available.
I came across an article on Toms Hardware (whose link I cant find currently) which said that RAID-1 support on Windows XP is actually only disabled. To make it working you need to edit 3 files and reboot your system. I have been running this mirrored setup on a two 500GB SATA hard-disks for more than a year now without any issues.
The three files that you need to edit are:
C:\WINDOWS\system32\drivers\dmboot.sys
C:\WINDOWS\system32\dmadmin.exe
C:\WINDOWS\system32\dmconfig.dll
Now the most important points on how to do this:
1. Take a backup of these files first. Microsoft does not support this and so you are doing this at your own risk. In worst case, you can go to the Windows Recovery Console by booting with your Win XP CD and replacing them.
2. You need to hand edit these 3 files using a Hex Editor. If you dont already have a good Hex editor I would recommend Cygnus Hex Editor FREE EDITION.
3. After editing, you just cant replace these files by copying them. Windows XP wont let you replace system files just like that. Keep the edited files somewhere and boot your system using the Windows XP CD and enter the Recovery Console. Its now when you can replace the 3 system files.
4. RAID-1(mirroring) is now enabled on your system. To mirror two hard drives, follow the instructions as described in the Microsoft Product documentation.
5. If you are every updating your system be careful to make sure those updates dont touch these files, else you will need to repeat these steps again. In short, once you do something into your system which is not officially supported, you are on your own.
Once you have mirrored two drives, you would see only 1 drive in place of the two in your Windows Explorer. I named it the M: drive. I copied some data into them. Then I manually broke the mirror, deleted the contents of one of the disk to simulate a disk failure. Then when I connected the disk back(its like connecting a new disk) and reconfigured the mirror, it replicated all the data into the new disk. It works!
So what are the changes in those 3 files that you need to hand edit. You need to search for certain hex patterns and replace them. Here are the screen shots of the differences of the 3 files. Each screen shot below shows the section of the original file which needs to be edited (with the hex pattern highlighted) with the changed file section below it.
1.C:\WINDOWS\system32\drivers\dmboot.sys

2.C:\WINDOWS\system32\dmadmin.exe

3. C:\WINDOWS\system32\dmconfig.dll
The above screen shots are of Apt Diff, a free software.
Does anybody know if Windows Vista support mirroring? I tried looking at the features but could not find, but did not look(or google) hard enough.
Happy RAIDing.//




( 2.9 / 58 )

Calendar




