LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hello
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:

Code:
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 http://www.sousuke.org/wiki/Installi...ical_partition can be of help.


PS
this was my search: windows logical partition; there might be other useful links in there.
 
Old 10-11-2012, 06:49 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
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
Code:
bootrec.exe /fixboot
This should fix the problem.
 
Old 10-12-2012, 05:43 AM   #4
froff
Member
 
Registered: Nov 2005
Location: Poland
Distribution: Mint Mate, Ubuntu
Posts: 46

Original Poster
Rep: Reputation: 1
Unhappy

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.
Code:
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 windowsquestions.org 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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 06:14 PM.

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