Aller au contenu principal

How to restore bootable error-free WinXP partition?

Thread needs solution

The background is as follows:

(1) As a result of previous partition operations file system errors were introduced into my WinXP
FAT32 partition (/dev/sda3). However the partition was still accessible, bootable and apparently intact.

(2) I made a sector backup of the partition to hard disk using Acronis True Image 2012
from the WinXP environment. Then I tried to recover the volume using the Acronis True Image
Backup/Recover disk. The backup was verified and the recovery apparently succeeded.

(3) The recovered partition can still be mounted but the errors remain. I kind of expected
this since the file system errors were probably exported with the sector backup.

(4) In addition the recovered partition is no longer bootable and use of the WinXP recovery
console (fixboot, boorcfg/rebuild) fails to fix this problem.

My question: is it possible to reinstall a bootable error-free version of WinXP on the partition
and to restore system and data files from the backup? In other words restore the individual
files rather than the partition sectors, but still have a functioning OS.

Thanks for your help.

0 Users found this helpful

The only way you can restore individual files and have a bootable XP system is to first install XP from the Windows installation DVD (or have some other operational bootable XP partition) and then copy your data files to it. The applications will also have to be installed from their installation CDs or files. If you copied every file on your C drive to a different drive with the TI data backup command it would not produce a bootable drive.

As you are aware, True Image is a backup and recovery program and it does not fix errors - part of the garbage in=garbage out rules. In fact it is a good idea to run chkdsk /f every now and then before making a backup to ensure the filesystem is sound although TI is quite tolerant of a lot of problems but every now and then one will trip it up.

I don't know why you couldn't get XP to boot especially after the rebuilding. Just how bad is the disk?

@Seekforever, don't forget with XP install CD's there is the option of repair install, which might fix the booting problem whilst keeping the OP's data intact.

@Roger,

Try the repair route, you will lose all Windows updates and service packs that aren't on the install CD, but it will repair any Windows files that are incorrect and remake the MBR and booting files.

Insert the CD and select INSTALL, the Windows installer should then tell you (after accepting the MS licence stuff) it has found an installation already exists. You should now get the choice of NEW INSTALL or REPAIR - if the repair option does not exist don't go any further, there is a problem with the disk in as much the installer can't find your current non working installation. Otherwise, select REPAIR, all Windows' files will then be deleted and re-installed, your data and installed programs will still be accessible once the machine is rebooted at the end of the repair.

Thanks Seekforever & Colin,

Unfortunately the WinXP install/repair option didn't work for me. The partition was identified but classified as "Unknown"
Similarly chkdsk refuses to run. It's frustrating because everything else seemed to work e.g. Windows applications and other
programs ran without a hitch. The partition table as seen by sfdisk is

bash-3.1# sfdisk -d /dev/sda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 63, size= 4176837, Id=16
/dev/sda2 : start= 4176900, size=303018030, Id= 17
/dev/sda3 : start=307194930, size=204812685, Id=b,bootable
/dev/sda4 : start=614402082, size=762818238, Id= f
/dev/sda5 : start=614402111, size= 83911304, Id=83
/dev/sda6 : start=698313483, size= 20980808, Id=82
/dev/sda7 : start=719294373, size= 20980824, Id=83
/dev/sda8 : start=740275263, size=209728512, Id=83
/dev/sda9 : start=950003838, size=209728512, Id=83
/dev/sda10: start=1159732413, size=217487907, Id= b

The WinXP partition is /dev/sda3 and the backup partition is /dev/sda10.
However the partition size was misrepresented by some utilities: the start
and end sectors were correct, but the size was given as 2048 GB (significant?).

The question is, what to do now? It seems that a partition reformat and
a clean OS re-installation from the WinXP CD is a necessary first step.
Then data can be transferred and backed-up utilities can be re-installed
from the Acronis backup, but I haven't retained the installation packages
for many programs.

Thanks again,
Roger.

Is this XP partition on an Apple or Linux machine?

Colin B wrote:

Is this XP partition on an Apple or Linux machine?

?? The XP partition (/dev/sda3) is on an IBM PC, and I have a mixture of Linux/Windows
partitions on 3 hard disks. My boot manager is lilo installed in the MBR from a bootable
Linux partition (/dev/sda5)

BTW how do I access/view individual files in the Acronis backup (/dev/sda10)?

I mentioned above that some utilities gave a very large number for the WinXP partition
size (or more specifically the last sector). Here is a gparted log:

==================================================
GParted 0.9.0

Libparted 2.3
Check and repair file system (fat32) on /dev/sda3 00:00:00 ( ERROR )

calibrate /dev/sda3 00:00:00 ( SUCCESS )

path: /dev/sda3
start: 307194930
end: 532684799
size: 225489870 (107.52 GiB)
check file system on /dev/sda3 for errors and (if possible) fix them 00:00:00 ( SUCCESS )

dosfsck -a -w -v /dev/sda3

dosfsck 3.0.11 (24 Dec 2010)
dosfsck 3.0.11, 24 Dec 2010, FAT32, LFN
Checking we can access the last sector of the filesystem
Seek to 157287448064:Invalid argument
grow file system to fill the partition 00:00:00 ( ERROR )

using libparted
libparted messages ( INFO )

The file system is bigger than its volume!
========================================