View previous topic :: View next topic |
Author |
Message |
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Wed Feb 23, 2011 8:50 pm Post subject: dual boot with windows 7 |
|
|
bought a new primary harddrive, decided to go for a dual boot enviroment again
so what i had was
sda1 windows7
sda2 data
what i did then was create an image of my windows partition with ntfsclone, repartioned my sda to
sda1 boot (grub)
sda2 /
sda3 empty ntfs partition
installed gentoo and moved my windows 7 partition back to sda3 with ntfsclone
gentoo ofc boots fine but i cannot figure out why grub just wont boot my windows7 os.
this is what i have in my grub.conf for booting windows
title Windows 7
rootnoverify (hd0,2)
makeactive
chainloader +1
and this is what i get on my screen when i pick windows from my grub boot menu
rootnoverify (hd0,2)
makeactive
chainloader +1
and a flashing cursor below.....
any idea what might fix my problem?
Last edited by h0mer`- on Wed Feb 23, 2011 9:37 pm; edited 1 time in total |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Wed Feb 23, 2011 9:18 pm Post subject: |
|
|
Hi,
here is my grub.conf:
Code: | title Windows 7 x64
rootnoverify (hd1,0)
chainloader +1
makeactive |
what I have different: Windows is on the first partition (second HD):
Code: | disi-desktop opt # fdisk -l
Disk /dev/sda: 63.2 GB, 63233327104 bytes
255 heads, 63 sectors/track, 7687 cylinders, total 123502592 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xffffffff
Device Boot Start End Blocks Id System
/dev/sda1 * 63 224909 112423+ 83 Linux
/dev/sda2 224910 123491654 61633372+ 83 Linux
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x17e3e9a0
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 511999999 255896576 7 HPFS/NTFS/exFAT
/dev/sdb3 512000000 1953520064 720760032+ 83 Linux
|
As you see, it has this extra partition, not sure if you have that as well.
It might work, if you put Linux on the third partition. In general most people say to first install Windows and then Linux. I removed the Linux HD completely, installed Windows(so it thought it's the main OS) and then fixed the bootloader AFAIR. _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Wed Feb 23, 2011 9:44 pm Post subject: |
|
|
tried your grub config and same result - it just hangs.
point is sda is a ssd.
sdb stupid normal drive - so putting windows on the second drive is kinda meh.
this is my fdisk -l
Code: | Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x46f446f3
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 83 Linux
/dev/sda2 6 1964 15735667+ 83 Linux
/dev/sda3 * 1965 9798 62926605 7 HPFS/NTFS
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x588aa2da
Device Boot Start End Blocks Id System
/dev/sdb1 1 31331 251666226 7 HPFS/NTFS
/dev/sdb2 31332 38913 60902415 5 Extended
/dev/sdb5 31332 31593 2104483+ 82 Linux swap / Solaris
/dev/sdb6 31594 34205 20980858+ 83 Linux
/dev/sdb7 34206 38913 37816978+ 83 Linux |
and i am pretty sure i didnt have that extra partition when windows7 was my main os sitting on sda1. |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Wed Feb 23, 2011 9:50 pm Post subject: |
|
|
Can you "repair" your Windows installation? Then you could boot from a liveCD and write grub back into the mbr...
That's all I could think of _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Wed Feb 23, 2011 10:26 pm Post subject: |
|
|
yeah, i thought about this too - windows found something and said its gonna repair and reboot - but nothing happens after that.
when i started from the windows dvd a second time this message wasnt displayed any more and i was able to click through the menus and run the repair process. all tests came back positive but again that didnt help with the booting problem.
i read in another forum that if u move a windows installation from one to another partition u have to edit the boot.ini but since windows7 doesnt have a boot.ini any more i have no idea where to look next... i have absolutely no idea what to do next. and its funny that there is nothing to be found on google about this issue.
thanks for your help. |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Wed Feb 23, 2011 10:36 pm Post subject: |
|
|
I have no system to test on atm. is there no recovery console on the Windows 7 DVD?
From there it should be bcdedit to configure the bootloader.
//edit: here is what I get from my Ultimate win7
start command prompt and then bcdedit
http://ompldr.org/vN2piMQ _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Wed Feb 23, 2011 10:49 pm Post subject: |
|
|
i will check that tomorrow and report back - i am going to bed now |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Thu Feb 24, 2011 6:52 pm Post subject: |
|
|
ok, i checked bcdedit and tried to change the device and osdevice partitions to
\Device\HarddiskVolume3
but windows as stupid as it is changes it instantly to C:
maybe thats ok but it doesnt help me at all and i have no idea what really happens when the cursor just sits there and flashes after i picked windows from my grub menu.
i mean it looks like as if it just doesnt find the correct files to boot and just hangs because of it. |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Thu Feb 24, 2011 8:55 pm Post subject: |
|
|
what i did now is i installed w7 on sda3, bootet into my linux reinstalled grub and ofc w7 boots as expected.
so it has to do with my ntfsclone image. if i just knew what files are involved in the w7 boot process.
bcdedit looks different now - no idea why.... |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Fri Feb 25, 2011 9:11 am Post subject: |
|
|
h0mer`- wrote: | what i did now is i installed w7 on sda3, bootet into my linux reinstalled grub and ofc w7 boots as expected.
so it has to do with my ntfsclone image. if i just knew what files are involved in the w7 boot process.
bcdedit looks different now - no idea why.... |
It's probably documented somewhere...
Anyway, glad you got it working, as I said first install Windows and then Linux
I used ntfsclone before, but with a whole disk (clone some laptops), worked fine there as single OS on the harddrive.
ntfsclone does not copy the mbr, so I had to repair the installations anyway. _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
Ph0eniX Guru
Joined: 24 Sep 2004 Posts: 502 Location: New York, U.S.
|
Posted: Fri Feb 25, 2011 11:54 pm Post subject: |
|
|
h0mer`- wrote: |
but windows as stupid as it is changes it instantly to C:
|
At that point I would have tried assigning C: to the NTFS volume using diskpart and after that:
bootrec /fixmbr
bootrec /fixboot
I haven't tested this procedure though. |
|
Back to top |
|
|
h0mer`- Apprentice
Joined: 02 Aug 2004 Posts: 215
|
Posted: Sat Feb 26, 2011 10:39 pm Post subject: |
|
|
didnt know you can assign volume letters to partitions with diskpart but i'll keep that in mind for later |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
|
Back to top |
|
|
kimmie Guru
Joined: 08 Sep 2004 Posts: 531 Location: Australia
|
Posted: Mon Mar 21, 2011 6:49 am Post subject: |
|
|
I just installed a laptop dual-booting with Windows 7; the boot has changed a lot since XP. Like disi says, I think you need that small boot partition.
I also read reports of suspend/hibernate issues when booting grub -> Windows, so I decided to play it as safe as possible and boot the other way around (Windows boot loader -> grub). I left the windows partitions alone except for shrinking the large C: partition from within Windows 7 using disk manager, and then I pretty much followed this guide: http://www.iceflatline.com/2009/09/how-to-dual-boot-windows-7-and-linux-using-bcdedit/ - it covers a great deal about the windows boot process as well as the dual-boot howto. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon Mar 21, 2011 9:07 am Post subject: |
|
|
am I the only one with a single partition for Win7 that isn't having any issues?
I keep seeing people say it needs multiple partitions. I have two machines here, two installations of Win7Ultimate (x64), both only have their one single solitary partition. Neither had any complaints during the install process.
I *did* get mine from MSDN, but I can't imagine that makes a difference. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
disi Veteran
Joined: 28 Nov 2003 Posts: 1354 Location: Out There ...
|
Posted: Mon Mar 21, 2011 9:14 am Post subject: |
|
|
Updates work fine, it's just SP1 that fails for me... and Windows Virtual PC (needed for XP Mode and only tried once) didn't want to install.
p.s. the last time I booted into Win7 was before SP1 was released, that's why I noticed.
Date Published: 3/15/2011 _________________ Gentoo on Uptime Project - Larry is a cow |
|
Back to top |
|
|
kimmie Guru
Joined: 08 Sep 2004 Posts: 531 Location: Australia
|
Posted: Mon Mar 21, 2011 4:43 pm Post subject: |
|
|
Hmmmm.... Ok, I'm not sure sure about that extra partition now... at a closer look, it's a Windows PE environment (customised by Lenovo) for system recovery. Seems the system boots first there, puts up a sign saying "press the blue button for system recovery" and then if I don't press anything it chain loads the Windows 7 bootloader on the C: partition.
My guess is that Microsoft has decided that having a recovery environment as standard is a good idea, especially since a lot of machines are sold without any installation media at all. No problem booting without it, but some installers etc. are going to expect it to be there. |
|
Back to top |
|
|
|