Windows XP won't boot

How to use TestDisk to recover lost partition
Post Reply
Message
Author
Budge
Posts: 1
Joined: 04 Aug 2012, 07:33

Windows XP won't boot

#1 Post by Budge » 04 Aug 2012, 08:00

Hi. I'm not sure if this is a partition problem or a file system problem. My father's computer stopped booting, so I pulled the hard drive and attached it to my laptop with an external USB enclosure. I was not able to read the files or access the drive using Windows Explorer. I thought there might be some physical damage to the device, but then I was able to retrieve his data using the Recover My Files program.

So I'm trying to fix the partition (or file system) so that it will boot. When I first run Testdisk, it shows 2 partitions: a very small FAT16 Dell Utility partition (Primary) and the main NTFS 37 GB partition (Primary bootable). But when I do a Quick Search, the FAT16 partition changes to Primary Bootable and the NTFS partition changes to Primary. I'm not sure what to do at this point. Do I change them back manually? I tried doing a Deep Search, but the program hung on a read error at 8%.

Any guidance would be greatly appreciated. Thank you.

BTW, I'm getting a "The extension log is not allowed" when I try to attach the log file.

Code: Select all

Sat Aug  4 01:11:50 2012
Command line: TestDisk

TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Windows XP SP2
Compiler: GCC 4.3, Cygwin 1007.7
Compilation date: 2011-11-15T08:36:54
ext2fs lib: 1.41.8, ntfs lib: 10:0:0, reiserfs lib: 0.3.1-rc8, ewf lib: 20100226
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sda)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(/dev/sdb)=40000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive0)=120034123776
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\PhysicalDrive1)=40000000000
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\C:)=57659212800
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\D:)=58185630720
filewin32_getfilesize(\\.\E:) GetFileSize err Incorrect function.

filewin32_setfilepointer(\\.\E:) SetFilePointer err Incorrect function.

Warning: can't get size for \\.\E:
disk_get_size_win32 IOCTL_DISK_GET_LENGTH_INFO(\\.\F:)=39958410240
file_pread(4,1,buffer,234452609(14593/254/63)) lseek err Invalid argument
file_pread(5,1,buffer,78140159(4863/254/63)) lseek err Invalid argument
Hard disk list
Disk /dev/sda - 120 GB / 111 GiB - CHS 14593 255 63, sector size=512 - ST9120821AS, FW:3.06
Disk /dev/sdb - 40 GB / 37 GiB - CHS 4863 255 63, sector size=512 - WDC WD40 0BB-75CAA0, FW:0000

Partition table type (auto): Intel
Disk /dev/sdb - 40 GB / 37 GiB - WDC WD40 0BB-75CAA0
Partition table type: Intel

Analyse Disk /dev/sdb - 40 GB / 37 GiB - CHS 4863 255 63
Geometry from i386 MBR: head=255 sector=63
check_part_i386 1 type DE: no test
NTFS at 4/0/1
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4
Current partition structure:
 1 P Dell Utility             0   1  1     3 254 63      64197
 2 * HPFS - NTFS              4   0  1  4861 254 63   78043770
pread: Input/Output error
Failed to calculate number of free MFTs: Input/Output error.
Error reading $Mft record(s): Input/Output error.
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sdb - 40 GB / 37 GiB - CHS 4863 255 63
FAT16 at 0/1/1
FAT1 : 1-63
FAT2 : 64-126
start_rootdir : 127
Data : 159-64194
sectors : 64197
cluster_size : 4
no_of_cluster : 16009 (2 - 16010)
fat_length 63 calculated 63

FAT16 at 0/1/1
     FAT16 >32M               0   1  1     3 254 63      64197 [DellUtility]
     FAT16, 32 MB / 31 MiB
NTFS at 4/0/1
filesystem size           78043770
sectors_per_cluster       8
mft_lcn                   807577
mftmirr_lcn               4877735
clusters_per_mft_record   -10
clusters_per_index_record 1
     HPFS - NTFS              4   0  1  4861 254 63   78043770
     NTFS, 39 GB / 37 GiB
file_pread(5,2,buffer,78126143(4863/32/33)) lseek err Invalid argument
file_pread(5,1,buffer,78126143(4863/32/33)) lseek err Invalid argument
file_pread(5,2,buffer,78126206(4863/33/33)) lseek err Invalid argument
file_pread(5,1,buffer,78126206(4863/33/33)) lseek err Invalid argument
get_geometry_from_list_part_aux head=255 nbr=4
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=4

Results
   * FAT16 >32M               0   1  1     3 254 63      64197 [DellUtility]
     FAT16, 32 MB / 31 MiB
   P HPFS - NTFS              4   0  1  4861 254 63   78043770
     NTFS, 39 GB / 37 GiB


dir_partition inode=0
   * FAT16 >32M               0   1  1     3 254 63      64197 [DellUtility]
     FAT16, 32 MB / 31 MiB
Directory /
       2 -r-xr-xr-x     0      0    214836 24-Aug-1996 11:11 IO.SYS
     107 -r-xr-xr-x     0      0      1234 21-Aug-1997 11:37 MSDOS.SYS
     108 -r-xr-xr-x     0      0     93812 24-Aug-1996 11:11 COMMAND.COM
     154 drwxr-xr-x     0      0         0 22-Jul-2002 20:58 DELL
     155 -rwxr-xr-x     0      0     47507 29-Mar-2002 12:53 SEAL.EXE
   10936 -rwxr-xr-x     0      0      1310 22-Jul-2002 20:59 UPKEEP.LST
   10930 -rwxr-xr-x     0      0     10629 22-Jul-2002 20:59 SEAL.INI
     257 -rwxr-xr-x     0      0        77 29-Oct-1997 12:58 CONFIG.SYS
     179 -rwxr-xr-x     0      0    208949 18-Apr-2002 17:59 ADAPTEC.MDM
   11040 -rwxr-xr-x     0      0     32821 18-Apr-2002 17:59 AMI_RAID.MDM
   11057 -rwxr-xr-x     0      0     45109 18-Apr-2002 17:59 ATIDIAG.MDM
   11080 -rwxr-xr-x     0      0       208 15-May-2001 18:01 AUTOEXEC.UP
   11081 -rwxr-xr-x     0      0     16405 18-Apr-2002 17:59 BIOSMP.MDM
   11090 -rwxr-xr-x     0      0     77868 18-Apr-2002 17:59 CABLES.MDM
   11129 -rwxr-xr-x     0      0     28752 18-Apr-2002 17:59 CACHE.MDM
   11144 -rwxr-xr-x     0      0     12309 18-Apr-2002 17:59 CACI437.MDM
   11151 -rwxr-xr-x     0      0     12309 18-Apr-2002 17:59 CACVESUV.MDM
   11158 -rwxr-xr-x     0      0    180277 18-Apr-2002 17:59 CISCO.MDM
   11247 -rwxr-xr-x     0      0        77 29-Oct-1997 12:58 CONFIG.UP
   11248 -rwxr-xr-x     0      0        85  6-Nov-1997 09:10 COPYUP.BAT
   11249 -rwxr-xr-x     0      0     12309 18-Apr-2002 17:59 CPU.MDM
   11256 -rwxr-xr-x     0      0     98357 18-Apr-2002 17:59 CSAUDIO.MDM
   11305 -rwxr-xr-x     0      0      4117 18-Apr-2002 17:59 DDINIT.MIM
   11308 -rwxr-xr-x     0      0      2590 18-Apr-2002 18:00 DDINIT.MLM
   11310 -rwxr-xr-x     0      0      2613  8-Mar-2002 15:26 DELLBOOT.EXE
   11312 -rwxr-xr-x     0      0      9793  7-Nov-2001 10:24 DELLDIAG.COM
   11317 -rwxr-xr-x     0      0    810757 18-Apr-2002 17:59 DELLDIAG.EXE
   11713 -rwxr-xr-x     0      0     53269 18-Apr-2002 17:59 DELLSYS.MSM
       0 -rwxr-xr-x     0      0         0 25-Jul-2002 14:18 BOOTLOG.TXT
   11741 -rwxr-xr-x     0      0    151648 18-Apr-2002 17:59 DISK.MDM
   11816 -rwxr-xr-x     0      0     49173 18-Apr-2002 17:59 DISKETTE.MDM
   11841 -rwxr-xr-x     0      0     32812 18-Apr-2002 17:59 DRSC.MDM
   11858 -rwxr-xr-x     0      0     20542 18-Apr-2002 17:59 DSLEEP.MDM
   11869 -rwxr-xr-x     0      0     12332 18-Apr-2002 17:59 DVD.MDM
   11876 -rwxr-xr-x     0      0     32821 18-Apr-2002 17:59 ES2828.MDM
   11893 -rwxr-xr-x     0      0     36908 18-Apr-2002 17:59 ESM.MDM
   11912 -rwxr-xr-x     0      0     86093 18-Apr-2002 17:59 ESM2.MDM
   11955 -rwxr-xr-x     0      0     81973 18-Apr-2002 17:59 ESM3.MDM
   11996 -rwxr-xr-x     0      0     28729 18-Apr-2002 17:59 ESM6100.MDM
   12011 -rwxr-xr-x     0      0     53301 18-Apr-2002 17:59 ESSAUDIO.MDM
   12038 -rwxr-xr-x     0      0    155796 18-Apr-2002 17:59 GENAUDIO.MDM
   12115 -rwxr-xr-x     0      0     32824 18-Apr-2002 17:59 GRFXMEM.MDM
   12132 -rwxr-xr-x     0      0     12332 18-Apr-2002 17:59 I2C8584.MDM
   12139 -rwxr-xr-x     0      0     28734 18-Apr-2002 17:59 I440XX.MDM
   12154 -rwxr-xr-x     0      0     20533 18-Apr-2002 17:59 I450NX.MDM
   12165 -rwxr-xr-x     0      0     20542 18-Apr-2002 17:59 I820MCH.MDM
   12176 -rwxr-xr-x     0      0     20542 18-Apr-2002 17:59 I840MCH.MDM
   12187 -rwxr-xr-x     0      0     41013 18-Apr-2002 17:59 IAUDIO.MDM
   12208 -rwxr-xr-x     0      0     24629 18-Apr-2002 17:59 IEEE1394.MDM
   12221 -rwxr-xr-x     0      0     20542 18-Apr-2002 17:59 IMCHECC.MDM
   12232 -rwxr-xr-x     0      0     49205 18-Apr-2002 17:59 INSPIRON.MDM
   12257 -rwxr-xr-x     0      0       900 30-Oct-2001 16:20 INT15_88.COM
   12258 -rwxr-xr-x     0      0     41016 18-Apr-2002 17:59 IOAPIC.MDM
   12279 -rwxr-xr-x     0      0     20501 18-Apr-2002 17:59 IOCTLR.MDM
   12290 -rwxr-xr-x     0      0     41004 18-Apr-2002 17:59 IPMI.MDM
   12311 -rwxr-xr-x     0      0     73784 18-Apr-2002 18:00 IPMI10.MDM
   12348 -rwxr-xr-x     0      0     53292 18-Apr-2002 18:00 IR.MDM
   12375 -rwxr-xr-x     0      0    106549 18-Apr-2002 18:00 ISAAUDIO.MDM
   12428 -rwxr-xr-x     0      0    139310 18-Apr-2002 18:00 KEYBOARD.MDM
   12497 -rwxr-xr-x     0      0     94261 18-Apr-2002 18:00 L56XMF.MDM
   12544 -rwxr-xr-x     0      0     49205 18-Apr-2002 18:00 LAGUNA.MDM
   12569 -rwxr-xr-x     0      0     32821 18-Apr-2002 18:00 LSI.MDM
   12586 -rwxr-xr-x     0      0     65674 18-Apr-2002 18:00 MEMORY.MDM
   12619 -rwxr-xr-x     0      0    124756 18-Apr-2002 18:00 MINI3COM.MDM
   12680 -rwxr-xr-x     0      0     24620 18-Apr-2002 18:00 MISCPCI.MDM
   12693 -rwxr-xr-x     0      0     32821 18-Apr-2002 18:00 MJVBAT.MDM
   12710 -rwxr-xr-x     0      0     41013 18-Apr-2002 18:00 MJVFAN.MDM
   12731 -rwxr-xr-x     0      0     36917 18-Apr-2002 18:00 MJVTEMP.MDM
   12750 -rwxr-xr-x     0      0     57409 18-Apr-2002 18:00 MOUSE.MDM
   12779 -rwxr-xr-x     0      0     20526 18-Apr-2002 18:00 NBBATT.MDM
   12790 -rwxr-xr-x     0      0     24622 18-Apr-2002 18:00 NBFAN.MDM
   12803 -rwxr-xr-x     0      0     32842 18-Apr-2002 18:00 NBSVC.MDM
   12820 -rwxr-xr-x     0      0     36910 18-Apr-2002 18:00 NBTHERM.MDM
   12839 -rwxr-xr-x     0      0     49205 18-Apr-2002 18:00 NEOAUDIO.MDM
   12864 -rwxr-xr-x     0      0    163902 18-Apr-2002 18:00 NIC.MDM
   12945 -rwxr-xr-x     0      0     69685 18-Apr-2002 18:00 NIC8254X.MDM
   12980 -rwxr-xr-x     0      0     36919 18-Apr-2002 18:00 PARALLEL.MDM
   12999 -rwxr-xr-x     0      0     53269 18-Apr-2002 18:00 PBS.MDM
   13026 -rwxr-xr-x     0      0     12309 18-Apr-2002 18:00 PCI.MDM
   13033 -rwxr-xr-x     0      0     24620 18-Apr-2002 18:00 PERC2ADA.MDM
   13046 -rwxr-xr-x     0      0     20501 18-Apr-2002 18:00 PNP.MDM
   13057 -rwxr-xr-x     0      0     24629 18-Apr-2002 17:59 PROFUSN.MDM
   13070 -rwxr-xr-x     0      0     53292 18-Apr-2002 18:00 RAID.MDM
   13097 -rwxr-xr-x     0      0    159896 18-Apr-2002 18:00 SCSI.MDM
   13176 -rwxr-xr-x     0      0     41022 18-Apr-2002 18:00 SERIAL.MDM
   13197 -rwxr-xr-x     0      0     94262 18-Apr-2002 18:00 SMBIOS.MDM
   13244 -rwxr-xr-x     0      0     16446 18-Apr-2002 18:00 SMBUS.MDM
   13253 -rwxr-xr-x     0      0     24620 18-Apr-2002 18:00 SMI.MDM
   13266 -rwxr-xr-x     0      0     20542 18-Apr-2002 18:00 SWECC.MDM
   13277 -rwxr-xr-x     0      0     24620 18-Apr-2002 18:00 SYMBIOS.MDM
   13290 -rwxr-xr-x     0      0     49219 18-Apr-2002 18:00 SYSBDMON.MDM
   13315 -rwxr-xr-x     0      0     57400 18-Apr-2002 18:00 SYSTEM.MDM
   13344 -rwxr-xr-x     0      0     16405 18-Apr-2002 18:00 TDIR.MDM
   13353 -rwxr-xr-x     0      0     45109 18-Apr-2002 18:00 USB.MDM
   13376 -rwxr-xr-x     0      0     36917 18-Apr-2002 18:00 USB2.MDM
   13395 -rwxr-xr-x     0      0     65332 18-Apr-2002 18:00 VD3XJS.MDM
   13427 -rwxr-xr-x     0      0    240202 18-Apr-2002 18:00 VDEAUDIO.MDM
   13545 -rwxr-xr-x     0      0    159726 18-Apr-2002 18:00 VDICCF.MDM
   13623 -rwxr-xr-x     0      0     16437 18-Apr-2002 18:00 VIAECC.MDM
   13632 -rwxr-xr-x     0      0    110636 18-Apr-2002 18:00 VIDEO.MDM
   13687 -rwxr-xr-x     0      0     65589 18-Apr-2002 18:00 YAMAHA.MDM
     256 -rwxr-xr-x     0      0       208 15-May-2001 18:01 AUTOEXEC.BAT
file_pread(5,16,buffer,3009588(187/86/16)) read err: No such file or directory
file_pread(5,1,buffer,3009588(187/86/16)) read err: No such file or directory
NTFS filesystem need to be repaired.


dir_partition inode=5
   P HPFS - NTFS              4   0  1  4861 254 63   78043770
     NTFS, 39 GB / 37 GiB
file_pread(5,16,buffer,6555636(408/17/46)) read err: No such file or directory
file_pread(5,1,buffer,6555636(408/17/46)) read err: No such file or directory
ntfs_readdir failed
Directory /
       5 dr-xr-xr-x     0      0         0  3-Apr-2012 14:08 .
       5 dr-xr-xr-x     0      0         0  3-Apr-2012 14:08 ..
   11695 -r--r--r--     0      0      3278 22-Jul-2002 21:07 DELL.SDR
   11499 -r--r--r--     0      0    250048  4-Jan-2010 11:32 NTLDR
   14446 dr-xr-xr-x     0      0         0  4-Jan-2010 02:13 Documents and Settings
   11501 dr-xr-xr-x     0      0         0 22-Jul-2002 20:57 DRIVERS
   50527 dr-xr-xr-x     0      0         0 27-Aug-2003 11:40 hardcopy
   51653 -r--r--r--     0      0 2145443840  3-Apr-2012 09:35 hiberfil.sys
   11722 dr-xr-xr-x     0      0         0  4-Jan-2010 02:58 I386
   11698 -r--r--r--     0      0         0 31-Aug-2001 09:02 IO.SYS
      90 -r--r--r--     0      0       317 22-Jul-2002 21:30 IPH.PH
   11699 -r--r--r--     0      0         0 31-Aug-2001 09:02 MSDOS.SYS
    1269 dr-xr-xr-x     0      0         0 22-Jul-2002 21:30 My Music
   11500 -r--r--r--     0      0     47564 10-Feb-2005 18:31 NTDETECT.COM
   62578 dr-xr-xr-x     0      0         0  4-Jan-2010 13:33 075f30c8c7779b5ea217093ee3eea045
   77219 dr-xr-xr-x     0      0         0 22-Feb-2007 19:19 12f947ac1c1d2309caf660
   61269 dr-xr-xr-x     0      0         0 19-Nov-2006 11:02 424756cd6d64e237940c6f
   63804 -r--r--r--     0      0     94662  5-Aug-2002 03:00 AFC.VI0
   42004 -r--r--r--     0      0     92068 18-Nov-2031 19:11 AFC.VI1
   11697 -r--r--r--     0      0         0 31-Jul-2003 17:01 AUTOEXEC.BAT
   41441 -r--r--r--     0      0         0 31-Jul-2003 16:58 AUTOEXEC.CAM
   11693 -r--r--r--     0      0       211 10-Feb-2005 18:46 BOOT.INI
      70 -r--r--r--     0      0       512 31-Aug-2001 08:45 BOOTSECT.DOS
   57095 dr-xr-xr-x     0      0         0 17-Nov-2005 13:52 cabs
   55111 dr-xr-xr-x     0      0         0  4-Jan-2010 01:27 Case2004
   49123 dr-xr-xr-x     0      0         0 12-Sep-2005 10:53 Centennial Backup
   11696 -r--r--r--     0      0         0 31-Aug-2001 09:02 CONFIG.SYS
   65389 -r--r--r--     0      0        81 21-Jul-2004 14:18 CTX.DAT
   13762 dr-xr-xr-x     0      0         0 14-Mar-2010 20:45 DELL
   22582 -r--r--r--     0      0 402653184  3-Apr-2012 09:35 pagefile.sys
   14897 dr-xr-xr-x     0      0         0 25-Mar-2012 14:13 Program Files
   22110 dr-xr-xr-x     0      0         0  4-Jan-2010 02:06 RECYCLER
   63807 -r--r--r--     0      0     93374  1-Jul-2003 13:43 Rights.VI0
   63814 -r--r--r--     0      0     88459 21-May-2003 09:17 Rights.VI1
   46710 -r--r--r--     0      0     33315 31-Mar-2004 17:52 swfout.txt

interface_write()
 1 * FAT16 >32M               0   1  1     3 254 63      64197 [DellUtility]
 2 P HPFS - NTFS              4   0  1  4861 254 63   78043770
simulate write!

write_mbr_i386: starting...
write_all_log_i386: starting...
No extended partition

TestDisk exited normally.

Sponsored links

wargo
Posts: 8
Joined: 02 Aug 2012, 11:05
Location: Poland

Re: Windows XP won't boot

#2 Post by wargo » 09 Aug 2012, 20:32

Budge wrote:My father's computer stopped booting, so I pulled the hard drive and attached it to my laptop with an external USB enclosure.
What error are shown?

User avatar
Fiona
Posts: 2836
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Windows XP won't boot

#3 Post by Fiona » 09 Aug 2012, 23:10

BTW, I'm getting a "The extension log is not allowed" when I try to attach the log file.
Almost no forum supports log files because they're not a standard format.
That's why it should be renamed from testdisk.log to testdisk.txt or another supported format.
But most users easily zip it.
Then it should be uploadable.

TestDisk was listing your data and able to copy them.
After retrieving your data, you can have a try to to repair your file system to make your partition accessible.
You can try to run;
chkdsk driveletter: /r from a command prompt as administrator.
Running a command prompt as administrator an explanation here;
http://forum.cgsecurity.org/phpBB3/post ... ator#p3895

Fiona

Post Reply

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest