ubuntu install onto to windows7 disc, boot sector sees missaligned partition starting points

Asked by J Chapman on 2013-12-10

Hi I have installed ubuntu 12.04lts with WUBI to find that it was very slow, I than shrank the c: partition to accomodate a seperate Ubuntu installation restarted to find that dual boot was not working Windows would get to the loading windows part of start up and then restart (looping). I then tried to fix the MBR with gparted and now the system doesn't even go that far.

I can still explore the hard drive with the Ubuntu live usb but cannot find a way to undo the shrink of the disk so that I can start again. GParted has pasted a log of the last attempt to sort out the problem and it says that the boot partition says one thing and fdisk another and fails to mount drive.

this is the link.
http://paste.ubuntu.com/6545029/

below is an excerpt from the full log.

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. The info in boot sector on
                       the starting sector of the MFT is wrong. According to
                       the info in the boot sector, sda1 has 407551 sectors,
                       but according to the info from fdisk, it has 1984
                       sectors.
    Mounting failed: fuse: mount failed: Device or resource busy
fuse: mount failed: Device or resource busy

sda2: __________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows 7/2008: NTFS
    Boot sector info: According to the info in the boot sector, sda2 starts
                       at sector 409600. But according to the info from
                       fdisk, sda2 starts at sector 2048. The info in boot
                       sector on the starting sector of the MFT is wrong.
                       According to the info in the boot sector, sda2 has
                       459065464 sectors, but according to the info from
                       fdisk, it has 407551 sectors.
    Operating System: Windows 7
    Boot files: /bootmgr /boot/bcd /boot/BCD
                       /Windows/System32/winload.exe /wubildr /wubildr.mbr

Please all you linux masters help me resolve this issue.

I don't have a Windows disc as it was an OEM installation.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
J Chapman
Solved:
2013-12-12
Last query:
2013-12-12
Last reply:
2013-12-10

You can resize NTFS in WIndows

I can't start windows. I have made a windows7 installation disc as windows7 was oem installed on this HP laptop. I went into repair installation opened a command prompt and used the following commands bootrec.exe /fixboot and bootrec.exe /fixmbr then the fixboot came back with an error and the fixmbr said completed successfully then tried to restart and the message came 'Missing Operating System'. So I tried to use the windows7 install disc again to enter repair installation and then it tells me that I am using the wrong version of windows to be able to use this disc.

what the hell microsoft????

Solved, fixed ntfs partition problems with testdisk worked a treat.
No I just have to work out how install ubuntu with out messing up the windows partition.