LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-01-2012, 09:29 AM   #1
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Using Grub for BCD commands in Win7


Hey Folks,

Have a dual boot desktop with gentoo and windows.
I have a small problem, in windows I am running a number of games and need to allocate virtual memory to them. In order to do this I have to use bcdedit, but I believe that because I am using grub there are no bcd files in my windows installation. I get the error file not found when I try. Is there a way to do this with grub?

this is the command that I need to execute
C:\ bcdedit /set increaseuserva 2500

Is there a way to tell grub to pass this to windows on boot?
BTW am I correct that grub replaces bcd on a dual boot system?

Last edited by aljones15; 01-01-2012 at 09:34 AM.
 
Old 01-01-2012, 01:32 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You're correct - there is only *one* "Master Boot Record".

Typically, you install Windows Vista/Win7 first, install Linux afterward, and allow Grub(2) to select Windows or Linux at boot time. Grub replaces the Vista bootloader, but "everything works". This is exactly how I have all my dual-boot systems configured (I've have XP, Vista, Server 2008, Win7, Grub and Grub2).

*However* - I've never needed to fiddle with bcdedit on a dual boot system.

Here are links that allows *both* Grub2 and the Win7 bootloader to *coexist* (each on a different partition):

http://www.iceflatline.com/2009/09/h...using-bcdedit/

http://my.opera.com/Wutske/blog/2009...nstead-of-grub
 
Old 01-01-2012, 02:04 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,284

Rep: Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661
Chain load from grub to bcd.
 
Old 01-01-2012, 04:20 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Actually, this is probably the easiest solution: just run bcedit from Windows.

Code:
EXAMPLE: c:\windows\system32\bcdedit /set increaseuserva 2500  c:\boot\BCD
Look here:
http://technet.microsoft.com/en-us/l...8WS.10%29.aspx

1. "BCD" is the boot database, stored in XXX:\boot\BCD (where "XXX:" is your boot drive)

2. This is true regardless of whether you're booting via grub or BCD. The BCD file is there for any viable Vista/Server 2008/Win7 install.

3. "Bcedit" the BCD database, and you've set your configuration.

Voila. It should really be as easy as that!

'Hope that helps!
 
Old 01-01-2012, 09:15 PM   #5
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
It's not that easy win7 says I have nothing to bcdedit.
 
Old 01-02-2012, 11:26 AM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,284

Rep: Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661
Cause grub overwrote the bcd?
 
Old 01-02-2012, 09:29 PM   #7
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah not sure if that's what happened, but I did have to reinstall grub after installing windows hence there does seem to be a conflict between the two.
 
Old 01-03-2012, 12:22 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,337

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
This isn't making a lot (any) sense. The BCD is in the NTFS filesystem. Nothing to do with grub - unless you happened to (incorrectly) install grub into that partition. In which case Win7 wouldn't boot at all, so it appears you didn't do that.
You need to be admin to run bcdedit - try it from the install DVD (recovery centre).
Quote:
I get the error file not found when I try.
Let's see the (entire) message.
 
1 members found this post helpful.
Old 01-03-2012, 10:06 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,284

Rep: Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661Reputation: 3661
Might use easybcd to fix it. http://en.wikipedia.org/wiki/EasyBCD

See down the page to linux.
 
  


Reply

Tags
gentoo, grub, win7


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Chainloading GRUB from Win7 TheStarLion Linux - Software 4 04-13-2011 10:19 AM
Grub 2 deleted after reinstalling Win7 auroraborealis Linux - Newbie 1 02-04-2011 04:24 PM
Grub - Have XP and Ubuntu, want to add Win7 scoob8000 Linux - Newbie 9 06-14-2010 08:54 PM
[SOLVED] No GRUB bootscreen after mint4win install on Win7 Leon14344 Linux Mint 4 09-08-2009 11:39 PM
Behringer BCD 2000 fleamour Linux - Desktop 0 01-15-2007 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration