PDA

View Full Version : [ubuntu] Re: New Dual Boot setup causes XP to BSOD revisited



beyercj
September 5th, 2010, 02:09 PM
I already posted this on http://ubuntuforums.org/showthread.php?t=1392524&page=2 because I had an almost identical problem trying to dual boot Windows XP Home edition and Ubuntu Lucid Linux. I checked my hard drives in Ubuntu and they are ok. Windows XP does not recognise my hard disk anymore. When I tried to list volumes with diskpart, I only saw my empty USB drives and the Vista repair disk but not the hard drive, neither with the Windows XP installation disk nor with the Vista Repair Disk as described in this threat. I also tried chkdsk on both, the XP and Vista Repair Disk, ntfsprogs on Ubuntu and deleted mounted devices in regedit but had no luck.

Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

Finally I ran the bootscript disk mentioned in the threat and here are the results:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders, total 398297088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 186,578,909 186,578,847 7 HPFS/NTFS
/dev/sda2 186,578,910 398,283,479 211,704,570 5 Extended
/dev/sda5 186,578,973 395,295,389 208,716,417 83 Linux
/dev/sda6 395,295,453 398,283,479 2,988,027 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 1A7C1EA07C1E772B ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 212acf8d-7658-4ba9-919d-c8bd2abfca4a ext4
/dev/sda6 6ea3c3e3-40dd-4485-93a7-47ebdd5cbd4a swap
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro)


================================ sda1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect

=================== sda1: Location of files loaded by Grub: ===================


??GB: boot/grub/core.img

=========================== sda5/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/05_debian_theme.BACKUP ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme.BACKUP ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
echo 'Loading Linux 2.6.32-22-generic ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
echo 'Loading Linux 2.6.31-14-generic ...'
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 212acf8d-7658-4ba9-919d-c8bd2abfca4a
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1a7c1ea07c1e772b
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=212acf8d-7658-4ba9-919d-c8bd2abfca4a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=6ea3c3e3-40dd-4485-93a7-47ebdd5cbd4a none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# DazukoFS ...
# Example of mounting one dir onto dazukofs (directory to be protected by AVIRA Guard)
#/home/shared /home/shared dazukofs
/home /home dazukofs
# ... DazukoFS

=================== sda5: Location of files loaded by Grub: ===================


95.6GB: boot/grub/core.img
101.6GB: boot/grub/grub.cfg
96.1GB: boot/initrd.img-2.6.31-14-generic
96.8GB: boot/initrd.img-2.6.32-21-generic
97.4GB: boot/initrd.img-2.6.32-22-generic
95.7GB: boot/vmlinuz-2.6.31-14-generic
96.4GB: boot/vmlinuz-2.6.32-21-generic
97.3GB: boot/vmlinuz-2.6.32-22-generic
97.4GB: initrd.img
97.3GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sdb sdc sdd sde Is there any way to mend the dual boot?

Any help would be greatly appreciated.

Rubi1200
September 5th, 2010, 04:39 PM
Well somehow you managed to get a GRUB file onto the XP partition!?!


sda1 /boot.ini /ntldr /NTDETECT.COM /boot/grub/core.imgNot sure what the solution would be probably to delete it or reinstall GRUB but I would wait until one of the more experienced members comes along to advise you on this. Other than that, the bootscript results look normal.

oldfred
September 5th, 2010, 08:42 PM
+1 on Rubi1200's suggestion.

Just delete the grub folder /boot in your windows. Make sure there are no windows files in the /boot but XP does not normally have a /boot.

But Vista & 7 do have /Boot and get very confused with a /boot since windows does not recognize a difference with capitals and small letters where linux does.

beyercj
September 7th, 2010, 10:35 PM
Hi guys,

thanks for your quick replies. I made sure that there are no window files in /boot/grub/*.* and removed this directory after checking for a Boot directory with a capital B (there was none). I still get the BSOD.

Any more ideas?

oldfred
September 7th, 2010, 11:14 PM
If grub has turned the boot over to windows then you must have a windows problem.

You can try doing the windows repairs.

Most of these links are about repairing windows boot. If you run the command fixmbr it will put the windows boot loader in the MBR and you will have to reinstall grub's bootloader to the MBR.

XP CD fixboot
http://www.ehow.com/how_4891476_reinstall-xp-bootloader.html
http://support.microsoft.com/kb/291980
http://pcsupport.about.com/od/fixtheproblem/ht/repairbootini.htm

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

beyercj
September 7th, 2010, 11:24 PM
Thanks again for your quick reply, Oldfred. I tried chkdsk and diskpart. The bootcfg option sounds promising. I will try it tomorrow or so (it is now 23.22h in Greenwich (GMT)). I keep you posted.

beyercj
September 8th, 2010, 09:34 PM
Just tried bootcfg from Vista repair CD. This did not work as bootcfg /default asks for an ID which I do not know.

Then I tried bootcfg from a Windows XP Service Pack 2 CD. This did not recognise any bootable system and recommmended to run chkdsk first.

Chkdsk reports one or more unrecoverable errors although Ubuntu reads the Windows partition just fine.

Diskpart could not identify any drive or partition.

When I tried fixmbr nothing happened at all (probably luckily as that saved me reinstalling GRUB).

Any more ideas?

oldfred
September 8th, 2010, 09:46 PM
The Vista disk will not repair the boot sector of XP. The MBR probably does not matter and you can use the Vista disk to run chkdsk. You do have to keep running chkdsk until all problems are solved. My XP worked but one day gparted would not see the entire drive. I ran chkdsk and then gparted would see it.

XP CHKDSK info:
The chkdsk command checks the specified drive and repairs or recovers the drive if the drive requires it. The command also marks any bad sectors and it recovers readable information.
chkdsk drive: /p /r
You can use the following options:
/p Does an exhaustive check of the drive and corrects any errors.
/r Locates bad sectors and recovers readable information.
Note If you specify the /r option, the /p option is implied. When you specify the chkdsk command without arguments, the command checks the current drive with no options in effect.

beyercj
September 8th, 2010, 10:53 PM
Hi Oldfred,

I tried chkdsk on the Vista Repair CD and fiddled around with diskpart again and tried also the startup repair tool. The startup repair tool reports that it does not recognize a hard disk or that the disk is not responding. Diskpart only lists removable drives and my DVD drive but not the hard disk either. The problem is that Windows does not recognize the hard disk and hence I can not access or check it.

More thoughts?

oldfred
September 8th, 2010, 11:12 PM
Vista or 7 will not repair XP, but should run chkdsk on any NTFS partition. Any repairs should be run from an XP repair disk.

Perhaps:
If Microsoft's Checkdisk (chkdsk) failed to repair the MFT, run TestDisk, also rebuild boot sector
http://www.cgsecurity.org/wiki/Advanced_NTFS_Boot_and_MFT_Repair

beyercj
September 10th, 2010, 09:29 PM
Hi Oldfred,

thanks again for your quick replies. I ran testdisk from Ubuntu. I could not run the Windows version from my memostick under the DOS prompt (access denied).

There seems to be a problem with the MFT but I can not repair it. Here my testdisk log.




Sat Sep 11 07:41:33 2010
Command line: TestDisk

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32-22-generic (#36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010)
Compiler: GCC 4.4 - Jun 23 2009 17:11:34
ext2fs lib: 1.41.11, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size 398297088 sectors
/dev/sda: user_max 398297088 sectors
/dev/sda: native_max 12421120 sectors
/dev/sda: dco 398297088 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63, sector size=512 - ATA Maxtor 6B200M0
Disk /dev/sdb - 4012 MB / 3827 MiB - CHS 1019 124 62, sector size=512 - SanDisk Cruzer Blade

Partition table type (auto): Intel
/dev/sda: Device Configuration Overlay (DCO) present.
Disk /dev/sda - 203 GB / 189 GiB - ATA Maxtor 6B200M0
Partition table type: Intel

Analyse Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=10
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=10
Current partition structure:
1 * HPFS - NTFS 0 1 1 11613 254 63 186578847
2 E extended 11614 0 1 24791 254 63 211704570
5 L Linux 11614 1 1 24605 254 63 208716417
X extended 24606 0 1 24791 254 63 2988090
6 L Linux Swap 24606 1 1 24791 254 63 2988027
Ask the user for vista mode
Allow partial last cylinder : No
search_vista_part: 0

search_part()
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63
NTFS at 0/1/1
filesystem size 186578847
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 11660375
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB

recover_EXT2: s_block_group_nr=0/796, s_mnt_count=31/33, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 26089552
recover_EXT2: part_size 208716416
Linux 11614 1 1 24605 254 62 208716416
EXT4 Large file Sparse superblock Recover, 106 GB / 99 GiB
Linux Swap 24606 1 1 24791 254 44 2988008
SWAP2 version 1, 1529 MB / 1458 MiB
get_geometry_from_list_part_aux head=255 nbr=6
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=6

Results
* HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
L Linux 11614 1 1 24605 254 63 208716417
EXT4 Large file Sparse superblock Recover, 106 GB / 99 GiB
L Linux Swap 24606 1 1 24791 254 63 2988027
SWAP2 version 1, 1529 MB / 1458 MiB

interface_write()
1 * HPFS - NTFS 0 1 1 11613 254 63 186578847
2 E extended LBA 11614 0 1 24791 254 63 211704570
5 L Linux 11614 1 1 24605 254 63 208716417
6 L Linux Swap 24606 1 1 24791 254 63 2988027

search_part()
Disk /dev/sda - 203 GB / 189 GiB - CHS 24792 255 63
NTFS at 0/1/1
filesystem size 186578847
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 11660375
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
NTFS at 11613/254/63
filesystem size 186578847
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 11660375
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS found using backup sector!, 95 GB / 88 GiB

recover_EXT2: s_block_group_nr=0/796, s_mnt_count=31/33, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 26089552
recover_EXT2: part_size 208716416
Linux 11614 1 1 24605 254 62 208716416
EXT4 Large file Sparse superblock Recover, 106 GB / 99 GiB

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/796, s_mnt_count=0/33, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 26089552
recover_EXT2: part_size 208716416
Linux 11614 1 1 24605 254 62 208716416
EXT4 Large file Sparse superblock Backup superblock, 106 GB / 99 GiB
NTFS at 23202/254/63
filesystem size 372756132
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 23297258
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 23202 254 63 372756132
NTFS found using backup sector!, 190 GB / 177 GiB

recover_EXT2: s_block_group_nr=0/25, s_mnt_count=8/21, s_blocks_per_group=8192, s_inodes_per_group=2016
recover_EXT2: s_blocksize=1024
recover_EXT2: s_blocks_count 208844
recover_EXT2: part_size 417688
Linux 23203 0 1 23228 254 61 417688
EXT2 Sparse superblock, 213 MB / 203 MiB

block_group_nr 3

recover_EXT2: "e2fsck -b 24577 -B 1024 device" may be needed
recover_EXT2: s_block_group_nr=3/25, s_mnt_count=0/21, s_blocks_per_group=8192, s_inodes_per_group=2016
recover_EXT2: s_blocksize=1024
recover_EXT2: s_blocks_count 208844
recover_EXT2: part_size 417688
Linux 23203 0 1 23228 254 61 417688
EXT2 Sparse superblock Backup superblock, 213 MB / 203 MiB
NTFS at 23227/254/63
filesystem size 373157757
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 23322359
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 23227 254 63 373157757
NTFS found using backup sector!, 191 GB / 177 GiB

recover_EXT2: s_block_group_nr=0/44, s_mnt_count=2/25, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1453874
recover_EXT2: part_size 11630992
Linux 23229 1 1 23952 254 58 11630992
EXT4 Large file Sparse superblock Recover, 5955 MB / 5679 MiB

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/44, s_mnt_count=0/25, s_blocks_per_group=32768, s_inodes_per_group=8144
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1453874
recover_EXT2: part_size 11630992
Linux 23229 1 1 23952 254 58 11630992
EXT4 Large file Sparse superblock Backup superblock, 5955 MB / 5679 MiB

recover_EXT2: s_block_group_nr=0/44, s_mnt_count=2/31, s_blocks_per_group=32768, s_inodes_per_group=8112
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1459899
recover_EXT2: part_size 11679192
Linux 23953 1 1 24679 254 63 11679192
EXT4 Large file Sparse superblock Recover, 5979 MB / 5702 MiB

block_group_nr 3

recover_EXT2: "e2fsck -b 98304 -B 4096 device" may be needed
recover_EXT2: s_block_group_nr=3/44, s_mnt_count=0/31, s_blocks_per_group=32768, s_inodes_per_group=8112
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1459899
recover_EXT2: part_size 11679192
Linux 23953 1 1 24679 254 63 11679192
EXT4 Large file Sparse superblock Backup superblock, 5979 MB / 5702 MiB
Linux Swap 24606 1 1 24791 254 44 2988008
SWAP2 version 1, 1529 MB / 1458 MiB
Linux Swap 24720 1 1 24791 254 46 1156600
SWAP2 version 1, 592 MB / 564 MiB
NTFS at 24790/254/63
filesystem size 398267352
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 24891709
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 24790 254 63 398267352
NTFS found using backup sector!, 203 GB / 189 GiB
get_geometry_from_list_part_aux head=255 nbr=20
get_geometry_from_list_part_aux head=8 nbr=8
get_geometry_from_list_part_aux head=16 nbr=6
get_geometry_from_list_part_aux head=32 nbr=4
get_geometry_from_list_part_aux head=64 nbr=4
get_geometry_from_list_part_aux head=128 nbr=4
get_geometry_from_list_part_aux head=240 nbr=5
get_geometry_from_list_part_aux head=255 nbr=20

Results
HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
HPFS - NTFS 0 1 1 23202 254 63 372756132
NTFS found using backup sector!, 190 GB / 177 GiB
HPFS - NTFS 0 1 1 23227 254 63 373157757
NTFS found using backup sector!, 191 GB / 177 GiB
HPFS - NTFS 0 1 1 24790 254 63 398267352
NTFS found using backup sector!, 203 GB / 189 GiB
Linux 11614 1 1 24605 254 63 208716417
EXT4 Large file Sparse superblock Recover, 106 GB / 99 GiB
Linux 23203 0 1 23228 254 63 417690
EXT2 Sparse superblock, 213 MB / 203 MiB
Linux 23229 1 1 23952 254 63 11630997
EXT4 Large file Sparse superblock Recover, 5955 MB / 5679 MiB
Linux 23953 1 1 24679 254 63 11679192
EXT4 Large file Sparse superblock Recover, 5979 MB / 5702 MiB
Linux Swap 24606 1 1 24791 254 63 2988027
SWAP2 version 1, 1529 MB / 1458 MiB
Linux Swap 24720 1 1 24791 254 63 1156617
SWAP2 version 1, 592 MB / 564 MiB

interface_write()

No partition found or selected for recovery
simulate write!

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

Interface Advanced
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
get_geometry_from_list_part_aux head=255 nbr=10
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=10
1 * HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
2 E extended 11614 0 1 24791 254 63 211704570
5 L Linux 11614 1 1 24605 254 63 208716417
EXT4 Large file Sparse superblock Recover, 106 GB / 99 GiB
X extended 24606 0 1 24791 254 63 2988090
6 L Linux Swap 24606 1 1 24791 254 63 2988027
SWAP2 version 1, 1529 MB / 1458 MiB

ntfs_boot_sector
1 * HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
NTFS at 0/1/1
NTFS at 0/1/1
filesystem size 186578847
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 11660375
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.
Failed to open inode: Input/output error.
repair_MFT
NTFS at 0/1/1
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS Volume is dirty.
ntfs_readdir failed
NTFS listing using MFT:
Directory /
5 dr-xr-xr-x 0 0 0 18-Feb-2010 00:48 .
5 dr-xr-xr-x 0 0 0 18-Feb-2010 00:48 ..
ntfs_device_testdisk_io_ioctl() unimplemented
ntfs_device_testdisk_io_ioctl() unimplemented
NTFS filesystem need to be repaired.
ntfs_dir: ntfs_inode_open failed
MFT and MFT mirror are bad. Failed to repair them.
MFT and MFT mirror are bad. Failed to repair them.

ntfs_boot_sector
1 * HPFS - NTFS 0 1 1 11613 254 63 186578847
NTFS, 95 GB / 88 GiB
NTFS at 0/1/1
NTFS at 0/1/1
filesystem size 186578847
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 11660375
clusters_per_mft_record -10
clusters_per_index_record 1
Boot sector
Status: OK

Backup boot sector
Status: OK

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

TestDisk exited normally.Any more thoughts?

oldfred
September 10th, 2010, 09:48 PM
Well teskdisk says it needs repairs:

NTFS filesystem need to be repaired.

You have to run chkdsk until there are no errors.

beyercj
September 11th, 2010, 09:07 PM
My problem is, that chkdsk keeps telling me that there is at least one unrecoverable problems and Windows does not recognise my hard disk.
I browsed the internet for an equivalent of CHKDSK under Linux and came across a program called ntfsfix which is part of ntfsprogs. eHow suggested to "run chkdsk /[drive letter]" in terminal under Ubuntu but the run program does not exist.

What do you think?

oldfred
September 11th, 2010, 11:04 PM
ntfsfix only can repair minor things and then sets the flag so chkdsk is run on the next reboot of windows. There is no chkdsk in Ubuntu for NTFS partitions.

beyercj
September 28th, 2010, 08:10 PM
I have been on holidays. Tried ntfsfix in Ubuntu and chkdsk /R in Windows. Still no luck (Windows keeps telling me that there is at least one unrecoverable error. Is there anything else I could try or do I need to re-install Windows and Ubuntu?

oldfred
September 29th, 2010, 12:17 AM
If chkdsk and testdisk cannot repair the problem I am concerned that the hard drive may not be reliable. Be sure you have good backups. You can try just reinstalling windows which will put its boot loader in the MBR and then reinstall grub.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

beyercj
October 3rd, 2010, 08:56 PM
I tried to re-install Windows from the original disks. The Windows installation does not recognise a hard disk at all. Instead I get the following BSOD:


Problem probably cause by: setupdd.sys
PAGE_FAULT_IN_NONPAGED_AREA
STOP: 0X00000050 (0xE10E5004, 0x00000000 0xF84BC96C, 0x000000001)

...

setupdd.sys-Address F84BC96C base at F849B000, DateStamp 41107c8fDoes this mean anything to anybody else?

Browsing through the Ubuntu Documentation I came across the following link https://help.ubuntu.com/community/MultiOSBoot which might explain my problem:

About Windows bootloaders

The Windows bootloaders store information about how big the partitions are. If you change the partition size, Windows checks the new partition size at the very next reboot (using either chkdsk in XP or a new utility in Vista/Windows 7). It then writes the info to its bootloader configuration file. If you start mucking around with other partitions before it has a chance to reset itself, the Windows bootloader will not be able to read the partition table properly (and will refuse to boot entirely).
Grub boots Windows merely by chainloading the Windows bootloader (which is stored in the Windows partition). If the Windows bootloader doesn't work (i.e. doesn't recognize its own changed partition), then you are sunk.
If you ignore these warnings, I almost guarantee you will fry your Windows partitioning scheme and be unable to boot up Windows.

I fear I am...sunk.