Results 1 to 4 of 4

Thread: Dual boot, win7, a disk error has occurred

  1. #1
    Join Date
    May 2008
    Beans
    5

    Dual boot, win7, a disk error has occurred

    I had a working dual boot Ubuntu 10.10/Win7 laptop setup. I swapped in an SSD and used Clonezilla to clone the original drive to the SSD.

    Ubuntu boots fine
    The Windows recovery partition boots fine(only does reinstall, not repair)
    The actual Win7 partition returns 'a disk read error has occurred'

    I ran the boot-repair cd with 'Recommended repair', but it didn't fix it.

    The bootscriptinfo is below. The only thing that looks odd to me is the boot sector info doesn't match what fdisk reports for the non-working Win7 partitions. Is that my problem? How do I fix it?


    Code:
                      Boot Info Script 0.61      [1 April 2012]
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector 
        1 of the same hard drive for core.img. core.img is at this location and 
        looks in partition 5 for (,msdos5)/boot/grub.
    
    sda1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        /BOOTMGR /BOOT/BCD
    
    sda2: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  According to the info in the boot sector, sda2 starts 
                           at sector 29362176. But according to the info from 
                           fdisk, sda2 starts at sector 29364224.
        Operating System:  
        Boot files:        /bootmgr /Boot/BCD
    
    sda3: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7: NTFS
        Boot sector info:  According to the info in the boot sector, sda3 starts 
                           at sector 29566976. But according to the info from 
                           fdisk, sda3 starts at sector 29569024.
        Operating System:  Windows 7
        Boot files:        /Windows/System32/winload.exe
    
    sda4: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info: 
    
    sda5: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 10.10
        Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda6: __________________________________________________________________________
    
        File system:       ext2
        Boot sector type:  -
        Boot sector info: 
        Operating System:  
        Boot files:        
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 128.0 GB, 128035676160 bytes
    255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1               2,048    29,364,223    29,362,176   7 NTFS / exFAT / HPFS
    /dev/sda2          29,364,224    29,569,023       204,800   7 NTFS / exFAT / HPFS
    /dev/sda3    *     29,569,024   141,641,727   112,072,704   7 NTFS / exFAT / HPFS
    /dev/sda4         141,641,728   250,068,991   108,427,264   5 Extended
    /dev/sda5         141,643,776   238,987,263    97,343,488  83 Linux
    /dev/sda6         238,989,312   250,068,991    11,079,680  83 Linux
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/sda1        20A46D60A46D3A04                       ntfs       PQSERVICE
    /dev/sda2        BA926DED926DAE97                       ntfs       SYSTEM RESERVED
    /dev/sda3        70266F52266F187C                       ntfs       Acer
    /dev/sda5        9f14a4cf-f63c-464f-b418-842d2605d83d   ext4       
    /dev/sda6        a9079654-a22f-4cd6-b40b-c2f830b6abb9   ext2       
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda5        /                        ext4       (rw,errors=remount-ro,commit=0)
    
    
    =========================== sda5/boot/grub/grub.cfg: ===========================
    
    --------------------------------------------------------------------------------
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by 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
      set have_grubenv=true
      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
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos5)'
    search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    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/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-32-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	linux	/boot/vmlinuz-2.6.35-32-generic root=UUID=9f14a4cf-f63c-464f-b418-842d2605d83d ro   quiet splash
    	initrd	/boot/initrd.img-2.6.35-32-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	echo	'Loading Linux 2.6.35-32-generic ...'
    	linux	/boot/vmlinuz-2.6.35-32-generic root=UUID=9f14a4cf-f63c-464f-b418-842d2605d83d ro single 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.35-32-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	linux	/boot/vmlinuz-2.6.35-31-generic root=UUID=9f14a4cf-f63c-464f-b418-842d2605d83d ro   quiet splash
    	initrd	/boot/initrd.img-2.6.35-31-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	echo	'Loading Linux 2.6.35-31-generic ...'
    	linux	/boot/vmlinuz-2.6.35-31-generic root=UUID=9f14a4cf-f63c-464f-b418-842d2605d83d ro single 
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.35-31-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos5)'
    	search --no-floppy --fs-uuid --set 9f14a4cf-f63c-464f-b418-842d2605d83d
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows Vista (loader) (on /dev/sda1)" {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set 20A46D60A46D3A04
    	chainloader +1
    }
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd0,msdos2)'
    	search --no-floppy --fs-uuid --set BA926DED926DAE97
    	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 ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_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    nodev,noexec,nosuid 0       0
    # / was on /dev/sda5 during installation
    UUID=9f14a4cf-f63c-464f-b418-842d2605d83d /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda6 during installation
    UUID=a4ec937a-c6d1-416b-a78c-a4e22e3a0074 none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda5: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
      79.669273376 = 85.544230912   boot/grub/core.img                             1
      99.976718903 = 107.349184512  boot/grub/grub.cfg                             2
      72.046035767 = 77.358841856   boot/initrd.img-2.6.35-31-generic              2
      71.805957794 = 77.101060096   boot/initrd.img-2.6.35-32-generic              2
      80.126121521 = 86.034767872   boot/vmlinuz-2.6.35-31-generic                 1
      80.141815186 = 86.051618816   boot/vmlinuz-2.6.35-32-generic                 1
      71.805957794 = 77.101060096   initrd.img                                     2
      72.046035767 = 77.358841856   initrd.img.old                                 2
      80.141815186 = 86.051618816   vmlinuz                                        1
      80.126121521 = 86.034767872   vmlinuz.old                                    1
    
    ========= Devices which don't seem to have a corresponding hard drive: =========
    
    sdb

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual boot, win7, a disk error has occurred

    Moved to Other OS as it is a Windows issue.

    Your copy did not copy the start & sizes exactly.

    Windows NTFS partition have inside the partition the start & size of partition that has to match partition table. That is the error that boot script is reporting that NTFS PBR does not match.

    You need a Windows repairCD and need to run chkdsk on both the boot & main install NTFS partitions. You may also need to run the fixBoot command to fix PBR also. You may need to run chkdsk more than once. If you run auto repairs from a Windows repair console, you have to run it 3 times to fix everything but it will also fix the MBR with the Windows boot loader and you have to reinstall grub2's boot loader to the MBR.

    How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10 - grub2) - talsemgeest
    https://help.ubuntu.com/community/Re...ta/7Bootloader
    Reinstall grub2 - Short version & full chroot version
    https://help.ubuntu.com/community/Gr...alling%20GRUB2

    Basics in links above, more detail:
    How to Boot to the System Recovery Options in Windows 7
    http://www.sevenforums.com/tutorials...y-options.html
    http://www.sevenforums.com/tutorials...ot-record.html
    http://windows7ultimate.windowsreins...indexthumbs.ht

    oldfred's Windows Vista/Win7 repair links posts #7:
    http://ubuntuforums.org/showthread.php?p=9826152
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




  3. #3
    Join Date
    May 2008
    Beans
    5

    Re: Dual boot, win7, a disk error has occurred

    Well, it's different now, but still doesn't work. Here is what I did.

    Made a repair disk from another machine
    Booted from it on the problem machine, winOS partition showed up as 0 size
    Ran chkdsk C: /r on all three ntfs partition, no error detected
    Ran bootrec.exe /fixboot and bootrec.exe /fixmbr , both commands said successfull
    Rebooted into a blinking cursor. No OS came up.
    Rebooted into the recovery disk. This time the winOS partition had the correct size listed.
    Ran the auto repair option. It deleted and entry, and added a new one.
    Rebooting into a blinking cursor agian.
    Booted into the repair cd again, it couldn't detect any problems
    Ran chkdsk again, no problems detected
    Rebooted into a blinking cursors again, no messages, no drive activity
    Reloaded grub2 with the boot-repair cd

    Grub2,Ubuntu boots again, selecting Windows results in a blinking cursor instead of a disk read error.

    Boot info script still shows the same partition start location mismatch.

    Did I miss a step?

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Dual boot, win7, a disk error has occurred

    Generally it is chkdsk or chkdsk & fixBoot that repair the partition boot sector.

    I had XP and ran chkdsk on it from a Windows 7 repairUSB. It worked better than the XP version of chkdsk but wrote a totally new PBR. When in testdisk you can compare backup BS to current BS and I could see a lot of differences and the backup had clear text ntldr and the Windows 7 version was bootmgr. I had to write a new BS. I could have used testdisk to restore backup.

    Another way to write a BS.
    Use bootsect.exe to repair XP & older or Vista/7 bootsectors - Use diskpart, then list volumes to see which drive to use
    bootsect.exe /nt52 c: *compatible* with operating systems older (XP) than Windows Vista.
    bootsect.exe /nt60 c: *compatible* with Windows Vista, Windows Server 2008 or later

    Not sure how to do it, to the hidden partition that is the boot partition.

    Did it repair the partition with the boot flag and not the other? If so try moving boot flag to other partition.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •