Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-11-2012, 04:34 AM   #1
Registered: Nov 2005
Location: Poland
Distribution: Mint Mate, Ubuntu
Posts: 47

Rep: Reputation: 1
Question Problem to boot with grub into windows7 after ntfs partition clone

I had W7 installed on primary partition of second hdd and I was (and still I am) able to boot W7 with grub located in mbr of first hdd.
Now I decided to move W7 to first hdd (those with grub in mbr and linux installed). Due to lack of place in primary partition table I put it to extended partition (I don't know if it matters).
I made ntfs partition copy just with dd and after that I resized file system a bit with gparted to fit new partition size.
Then I updated grub and modified uuid of new ntfs copy (I can't remember in what order).
After that I marked new partition as "boot"
New partition is accessible with ntfs3g and everything looks ok.
But when I'm choosing in grub menu after reset to boot "new" windows it still boots from second hdd (old W7 installation). System disk is "C:" and all system paths has "C:" in them. New ntfs copy appears as "D:"

In grub.cfg I have entries as follows:

menuentry "Windows 7 (loader) (on /dev/sda5)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos5)'
	search --no-floppy --fs-uuid --set=root F6E8D3BCE8D37977
	chainloader +1

menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root F6E8D3BCE8D37977
	chainloader +1
/dev/sda5 is new one /dev/sdb1 is old one;
the same root uuid looks strange but maybe I updated grub before modified uuid on new copy.
So I decided to replace uuid on first entry with proper uuid of new partition.
After that windows does not boot when first entry choosen.
I have blank screen with cursor in left upper corner.

What can be the reason and how to repair it?
I'm not sure if problem lays on grub configuration or on moved windows boot sector. Or maybe on fact that new partition is not primary?

Last edited by froff; 10-11-2012 at 04:38 AM.
Old 10-11-2012, 06:49 AM   #2
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Parts of windows require a primary partition

Maybe can be of help.

this was my search: windows logical partition; there might be other useful links in there.
Old 10-11-2012, 06:49 AM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858Reputation: 4858
The Windows bootloader knows of UUIDs and serial numbers of disks to determine which is the disk to boot from.
Start the recovery console from your Windows 7 disk and launch the command
bootrec.exe /fixboot
This should fix the problem.
Old 10-12-2012, 05:43 AM   #4
Registered: Nov 2005
Location: Poland
Distribution: Mint Mate, Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 1

Unfortunately no effects.
Windows recovery console cannot be started because installer can't see new windows partition.
So I "converted" it manually with fdisk to be primary. Partition is still OK, mountable under linux and gparted shows no warnings.
After that, windows installer in "repair" mode shows it but says that it has zero length
However now it is possible to start recovery console.
bootrec.exe /fixboot
does it's job and announces success.
But nothing changes on boot. Blank screen.
Updating grub does not change anything.
Giving it last chance I copied original windows

I know that this is problem rather than here, so I don't ask for further help.
Finally I decided to leave windows as it was - on second hdd.
Windows7 sucks! Some time ago I duplicated Windows XP installation without such problems.


grub, partitiontable, windows 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I configure GRUB to boot Windows7 and Linux? bptknx Linux - Laptop and Netbook 7 01-25-2011 06:28 PM
dual boot problem: windows7 and ubuntu baxzius Linux - Newbie 2 02-03-2010 04:33 PM
Grub cannot boot XP partition that was created/modified by ntfs-3g krisheyrman Linux - General 9 12-25-2008 03:42 AM
Using dd to clone an NTFS partition from a strange partition table jgombos Linux - Software 2 10-26-2006 12:10 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration