On Saturday 15 Mar 2014 17:17:19 »Q« wrote: > On Mon, 10 Mar 2014 13:33:20 +0000 > > Mick <[email protected]> wrote: > > On Saturday 08 Mar 2014 20:22:12 »Q« wrote: > > > On Sat, 08 Mar 2014 08:23:21 +0100 > > > > > > grub booted Gentoo just fine, but Windows booting failed, something > > > about not finding partitions or files. Instead of troubleshooting > > > that, I disabled os probing for grub (GRUB_DISABLE_OS_PROBER=true > > > in /etc/default/grub) and added Windows via /etc/grub.d/40_custom , > > > > > like so: > > If you moved the MSWindows OS or boot partitions then the UUIDs would > > have changed. > > I moved the OS partition, and it's UUID did indeed change. > > > You'll need to edit the MSWindows boot menu (in the MSWindows boot > > partition) and change their entrie(s) accordingly. > > If somebody can post a link to a recipe for doing that, I'd appreciate > it. I don't understand the Windows boot stuff.
Like most things MSWindows related you will need patience which in my case
runs short - at some subconscious level I consider spending time on MSWindows
a resentful waste of my life ... but YMMV.
It used to be simple enough, until the Vista-disaster was launched. In any
post Vista OS you will find that the boot system files have changed somewhat.
First of all from Windows 7 onward there is usually a separate boot partition.
Second, you now have to use the bcdedit.exe command to edit the 'boot.ini'
file. Third, the plain text 'boot.ini' file is no longer called "boot.ini"
and it is no longer a plain text file, but binary. :-(
So, the new boot.ini is called BCD and if you search for it through your
MSWindows partitions you will eventually find the partition with the boot
files. The BCD file is in the hidden (for MSWindows) Boot directory, in a
separate from the OS boot partition:
ls -la /mnt/Win7/Boot/BCD
-rwxrwxrwx 1 root root 36864 Mar 9 08:57 /mnt/iso/Boot/BCD
(here I have mounted the MSWindows boot partition under /mnt/Win7/)
To view its contents, boot into MSWindows and run in a console:
C:\Windows\system32>bcdedit /v
(assuming that your OS partition is mapped to C:\ drive).
You will need to change the UUIDs for the MSWindows OS and for the boot
partitions (called GUID in MSWindows) using the bcdedit command, one line at a
time. It is primitive compared to a Linux text editor and painful if you make
a typo, but that's MSWindows for you.
The MSWindows boot partition will have the "identifier" {bootmgr}, while the
OS would have {current}, or {default}.
To find out what GUIDs your moved MSWindows partitions (Volumes) have, you can
use the diskpart command. Start>run>cmd>diskpart>list disk and diskpart>list
volume. If that doesn't show what you're after, use the GWMI command in
MSWindows powershell:
GWMI -namespace root\cimv2 -class win32_volume | FL -property
Label,DriveLetter,DeviceID,SystemVolume,Capacity,Freespace
For more info have a look here, from when I fought setting up a MSWindows dual
boot system by chainloading grub:
http://thread.gmane.org/gmane.linux.gentoo.user/226452/focus=227265
PS. For bcdedit options see these links:
http://technet.microsoft.com/en-us/library/cc709667(v=ws.10).aspx
http://diddy.boot-land.net/bcdedit/files/commands.htm#enum
HTH.
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

