Page 1 of 1

windows and raid 1 corrupted

Posted: 24 Jul 2017, 11:04
by NickSee
Hi there - first of all thank you so much for all the work you do for all of us - hugely appreciated.

I've been struggling for over a week to try to resolve my main PC corrupted boot and file system. The long story is here:
https://www.tenforums.com/bsod-crashes- ... 5-2.html

but the short story is some sort of power/DIMM failure left me in a loop of windows 'your device needs repair error 0xc0000225' and absolutely NO windows based recovery tools will boot. Anything Linux based boots and runs happily for hours. (I have weeded out any suspect DIMMs by the way and run memtest successfully on the current configuration for the required 8 passes).

The log from Ubuntu Boot Rescue Disk ma ... /25161338/

The most useful tool has been Test Disk (thank you again )

it throws quite a lot of repeat errors on boot are these significant? Examples: ata1(or 2 or 3): soft reset failed (device not ready), ldm_parse_tocblock(): cannot find TOCBLOCK database may be corrupt, and "blk_update_request: I/O error, dev sr0, sector 559704" (139926 and 139927 also occur). Buffer I/O error on dev sr0, logical block 69963, async page read.

The other thing to mention is that my USB keyboard and mouse don't seem to load drivers correctly on about 50% of occasions of running test disk. Makes me start to question my motherboard/usb controller but the fact that keyboard works 100% of time in BIOS and when selecting keyboard map for Test Disk makes me think it is an issue with this Debian setup? Symptoms are: mouse cursor in middle of screen and frozen, keyboard unresponsive numlock on. Just tried it again and numlock became unresponsive about 5 seconds before X loaded on screen.

System details:

Windows 10 (from windows 7 original DVD upgraded online) was running on SDB / C: (Crucial M550 128Gb SSD) with 2 data HDD SDA and SDC in Windows controlled RAID 1

status:

cannot boot, have been able to copy some of the data from c: to an external drive. would settle for being able to install fresh from win7 dvd as long as I can still recover data from the other 2 HDD that were in Windows controlled RAID 1 mirror array? Whenever I've been brave enough to select 'write' in testdisk the next time I run it, it appears the partitions are still marked D; the only permanent change I seem to have achieved is in the boot record (actually I think this is my misunderstanding as there is a partition marked boot in the first screen below). I have tried to take screenshots throughout but unfortunately all the terminal ones have come out graphically garbled (I assume there's a trick concerning my radeon graphics device driver for me to learn)

testdisk analyse

Current partition structure:
1* HPFS - NTFS 0 1 1 15565 254 63 250067727

quick search:
Disk /dev/sdb - 128GB / 119 GiB - CHS 15566 255 63
The hardisk seems too small!
The following partition can't be recovered:
HPFS - NTFS 15565 254 63 31131 252 61 250067663


Continue:

D HPFS - NTFS 0 1 1 15565 254 63 250067727 (P = Can't open filesystem - seems damaged)
D HPFS - NTFS 0 2 2 15565 254 63 250067663 (P lists all directories and files but "can't be recovered"?)

If I mark the latter as boot (structure ok) and select deeper search:
It seemed to find 3 partitions briefly but then screen quickly returned to this:


Disk /dev/sdb - 128GB / 119 GiB - CHS 15566 255 63
The hardisk seems too small!
The following partition can't be recovered:
HPFS - NTFS 15565 254 63 31131 252 61 250067663


Selecting 'continue':
Disk /dev/sdb - 128GB / 119 GiB - CHS 15566 255 63

D HPFS - NTFS 0 1 1 15565 254 63 250067727
D HPFS - NTFS 0 2 2 15565 254 63 250067663
D HPFS - NTFS 15451 54 28 15508 147 63 921600 (P lists files - Windows Recovery winre.wim, boot.sdi etc and chkdisk log)

it looks to me like windows recovery has overwritten the middle useful partition which has all my c: structure and data in it - is there anything I can do? what would you do next please?

thank you again

Nick

Re: windows and raid 1 corrupted

Posted: 24 Jul 2017, 17:07
by cgrenier
If you want to recover the second partition, set it as *(bootable) and on next screen, choose Write, confirm, Quit and restart your computer.

Re: windows and raid 1 corrupted

Posted: 24 Jul 2017, 20:58
by NickSee
thank you. I have tried that. will try again but currently on my 4th boot with no kb or mouse so cannot confirm results ;)

Re: windows and raid 1 corrupted

Posted: 24 Jul 2017, 21:15
by NickSee
OK so eventually got in and did as you suggest marked middle partition as boot, write, quit. Reboot (removing Gparted Live DVD) and get Recovery> your PC/Device needs to be repaired Error 0xc0000225

Re: windows and raid 1 corrupted

Posted: 26 Jul 2017, 06:33
by NickSee
Hi Monsieur Christophe

thank you for finding the time to reply to all of us lost sheep individually - and in English :-)

do you have any further advice for me please - as the 'mark bootable write quit' approach still results in no boot?

less important but did you have any view on my other questions (are errors on testdisk startup 'normal', are usb kb/mouse issues sometimes seen or do i have a hardware instability, am I likely ever to recover this c: drive enough to be able to remount the raid array or should I just reformat partition and start again)?

sorry for so many questions but I am really stuck

Nick

PS sorry for broken link in one of my posts it should have been http://paste.ubuntu.com/25161338 which has a lot of useful looking (at least to me!) information like:

Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 23Nov2014]


============================= Boot Info Summary: ===============================

=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda.
=> Testdisk is installed in the MBR of /dev/sdb.
=> Windows 7/8/2012 is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 7/2008: NTFS
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 2048. But according to the info from fdisk,
sda1 starts at sector 63. According to the info in the
boot sector, sda1 has 567166975 sectors, but according
to the info from fdisk, it has 976771056 sectors.
Operating System:
Boot files:

sdb1: __________________________________________________________________________

File system:
Boot sector type: Windows 7/2008: NTFS
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sdc1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 7/2008: NTFS
Boot sector info: According to the info in the boot sector, sdc1 starts
at sector 2048. But according to the info from fdisk,
sdc1 starts at sector 63. According to the info in the
boot sector, sdc1 has 567166975 sectors, but according
to the info from fdisk, it has 976771056 sectors.
Operating System:
Boot files:

Re: windows and raid 1 corrupted

Posted: 27 Jul 2017, 12:39
by cgrenier
Did you run this utility to check the boot sector before or after using testdisk ?
If testdisk has been able to list the files, the boot sector should be ok.

If you still have problems
* Run ``bootrec.exe /fixmbr`` from Windows Recovery Console
* Check c:\boot.ini
* Run ``bootrec.exe /fixboot`` to repair NTFS boot sector.

Re: windows and raid 1 corrupted

Posted: 27 Jul 2017, 17:57
by NickSee
thanks Christophe

I ran it initially before using testdisk but the have various logs you can see before and after testdisk. I will try to run bootrec.exe but I don't think I can get into windows recovery console :-(

Re: windows and raid 1 corrupted

Posted: 27 Jul 2017, 18:51
by cgrenier
If necessary, start the Recovery Console from Windows DVD. Do not use a System Restore DVD from your computer manufacturer but the Microsoft DVD.

Re: windows and raid 1 corrupted

Posted: 27 Jul 2017, 21:42
by NickSee
ahh I understand, but I cannot run any windows based install DVD or recovery tool - they all end up in the repair loop evidenced by my first link I'm afraid. I think the ONLY way I will be able to re-install windows from a DVD will be to wipe all partitions and reformat the drive?